Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 14 2020 19:42
    florimondmanca closed #334
  • Mar 14 2020 19:41
    florimondmanca commented #334
  • Mar 14 2020 19:39

    florimondmanca on pip

    (compare)

  • Mar 14 2020 19:39
    dependabot-preview[bot] commented #342
  • Mar 14 2020 19:39
    florimondmanca closed #342
  • Mar 14 2020 02:00

    dependabot[bot] on npm_and_yarn

    (compare)

  • Mar 14 2020 02:00
    dependabot[bot] commented #343
  • Mar 14 2020 02:00
    florimondmanca closed #343
  • Mar 13 2020 23:34
    codecov-io commented #343
  • Mar 13 2020 23:33
    codecov-io commented #343
  • Mar 13 2020 23:32
    codecov-io commented #343
  • Mar 13 2020 23:29
    dependabot[bot] labeled #343
  • Mar 13 2020 23:29
    dependabot[bot] opened #343
  • Mar 13 2020 23:29

    dependabot[bot] on npm_and_yarn

    Bump acorn from 6.1.1 to 6.4.1 … (compare)

  • Mar 09 2020 05:28
    codecov-io commented #342
  • Mar 09 2020 05:28
    florimondmanca commented #342
  • Mar 09 2020 05:27
    codecov-io commented #342
  • Mar 09 2020 05:26
    codecov-io commented #342
  • Mar 09 2020 05:23
    dependabot-preview[bot] labeled #342
  • Mar 09 2020 05:23
    dependabot-preview[bot] opened #342
Ivan
@iovanom
the pipenv install --dev -e . working
;)
Ivan
@iovanom
should I open an issue first?
or for this small fix is not necessary
Florimond Manca
@florimondmanca
Nice! Yes let’s skip the issue since we’ve just discussed it here :)
Ivan
@iovanom
ok
toastmasterbee
@bevennyamande
@florimondmanca howfar with that issue we discussed
Florimond Manca
@florimondmanca
Hi, @bevennyamande, are you referring to the blog example app? Unfortunately didn’t have the time to dig into it during the holidays... and it actually kind of collides with #16. Plus, I’m not sure a blog is the kind of app that Bocadillo and async would provide a significant benefit to.
So I was thinking, what if we merged the two, ie use the blog example for a how-to guide explaining how to plug an async ORM with Bocadillo?
It’s kind of all tangled together, that’s what complicated. The blog example is really just a support and I’m not sure it should be done as a standalone, separate from a how-to guide or a tutorial...
toastmasterbee
@bevennyamande
Yes true the blog can be a guide
Tobias SN
@TobiasSN
Does anyone know how to use a wildcard in a route path?
Something like this:
import bocadillo

api = bocadillo.API()

@api.route("*")
async def index(req, res):
    res.text = "Hello, world!"

if __name__ == "__main__":
    api.run()
Florimond Manca
@florimondmanca
Hi @TobiasSN , I don’t believe this is something we support at the moment. However, we’re using parse to match routes (https://pypi.org/project/parse/) and my guess is you should be able to use “/{}” 🤔
Tobias SN
@TobiasSN
Yeah I tried that. Doesn’t work with empty
Florimond Manca
@florimondmanca
So it works when accessing /foo but not /?
Anyway I think that’s a valuable usage hint and there’s perhaps something to fix there. I’ll create an issue for a quick howto guide on that :)
Tobias SN
@TobiasSN
Exactly.
Florimond Manca
@florimondmanca
Yes, I was able to replicate that, I pushed a fix in #129, will release 0.10.3 later today :)
Tobias SN
@TobiasSN
In that case, I'll be waiting.
Florimond Manca
@florimondmanca
@TobiasSN 0.10.3 just released to PyPI ;-)
Tobias SN
@TobiasSN
:D
Florimond Manca
@florimondmanca
Let me know how that goes, although the tests say it should now work ;)
Tobias SN
@TobiasSN
Yeah seems to work now.
Florimond Manca
@florimondmanca
👍
Florimond Manca
@florimondmanca
Hey, what’s everyone opinion on #124? How is the API class name relevant or irrelevant? We’re not specifically targetting REST APIs and this is a very early-days design choice, so now is a good time to challenge that :-)
Tobias SN
@TobiasSN
Yeah I think that App would be a much better choice. The
Tobias SN
@TobiasSN
Say you had a Recipe for your API. Now, you would most likely have named the main object api just because that’s how it is in the snippets. But what would you then name your Recipe? You could name it api_recipe or rest_api, but that’s a bit verbose. So you could rename the main object to app, and your recipe to api, but now people will see routes decorated with @api.route(“/foo”) and think they be accessible bypage/foo, instead of something likepage/api/foo` which it would actually be. Worst case, they'll make new routes decorated with the API Recipe and not the main object, and end up putting those under the API path, getting confused when they can’t access it from the exact path they specified.
Florimond Manca
@florimondmanca
A recipe for a REST API could be named api, yes, although I think that could also be a totally different app that you would mount onto the main one.
The idea is that we update references to api as the main object too. For example, app = App(). I’m also concerned that might be confusing to some people, but I don’t think they have an api recipe (since that name was already taken by the main object).
Florimond Manca
@florimondmanca
Hey! I got to fiddle with logos this weekend and posted an attempt on #24. What do you guys think? Does it fit the project? :-)
Florimond Manca
@florimondmanca
Quick poll about better naming for the API class, following up on our discussions here: https://twitter.com/bocadillopy/status/1095594986731646982?s=21
Marwan Rabbâa
@waghanza
Hi, I've created the-benchmarker/web-frameworks#951 to compare bocadillo with others python frameworks
if anyone want to contrib it will be :heart:
Florimond Manca
@florimondmanca
Great stuff @waghanza ! Didn’t know about this benchmark project, looks very thorough and having Bocadillo on there would be a great addition for sure. :-) I’ve already tinkered with benchmarking over https://github.com/bocadilloproject/benchmarks, I’ll link to it on the issue in case anywant wants to tackle it!
Marwan Rabbâa
@waghanza
yeah nice, but the purpose is also to gather some benchmarks
I've seen than japronto, sanic, vibora has their own
and why not having one reference one python world
Florimond Manca
@florimondmanca
Yes, I’m 100% in favor of adding Bocadillo to both of those projects
Marwan Rabbâa
@waghanza
;-) trying now
Florimond Manca
@florimondmanca
Benchmarking is quite hard and not sure the ones I did were very reliable.
Cool, if you make a PR feel free to request my review :+1:
Marwan Rabbâa
@waghanza
cool, thx
benchmarking is hard, but very helpful learning different cases ...
Florimond Manca
@florimondmanca
Hey all! Can I ask for feedback on a new idea before I dig into the code? If you’re interested, and in order to keep this channel focused on help and welcoming new people, I’ve posted something in the dev room: https://gitter.im/bocadilloproject/dev
Marlysson Silva
@Marlysson

Hey @florimondmanca how did you build the bocadillo's documention ?

Some themes or all built by hand..?

Tobias SN
@TobiasSN
AFAIK it uses Vuepress with a customized version of the default theme.
Florimond Manca
@florimondmanca
Yes @Marlysson, I’m using Vuepress :-) https://vuepress.vuejs.org
Florimond Manca
@florimondmanca
@Marlysson For completeness, I’m also using Pydoc-Markdown to generate API reference in the Markdown format (making them Vuepress-friendly): https://github.com/NiklasRosenstein/pydoc-markdown
Marwan Rabbâa
@waghanza
@florimondmanca do you know https://readthedocs.org/ ?
Florimond Manca
@florimondmanca
I do, and used it once a while ago. Why? :)