florimondmanca on pip
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump acorn from 6.1.1 to 6.4.1 … (compare)
__version__
attribute error is very odd. Bocadillo has had that exposed since 0.1!
I ran :
sudo apt-get install python3.6-dev libssl-dev
to be able install bocadillo without errors..
Good stuff @Marlysson! I think we could add this to a troubleshooting section in the FAQ.
Would you mind opening an issue with as many details as you can on the problem and your setup (OS, Python version before/after the fix, any tracebacks, etc)? It would be better than handling this via the chat.
If you know how to use Docker you can try to reproduce the issue in a Linux container, and post the Dockerfile so that we can see how/why this happens. Otherwise I can have a shoot at it myself. :)
create
command, it should give you an example of a full-featured project file structure: https://github.com/bocadilloproject/bocadillo-cliHi Ilyes! Thanks for pitching in, this is an interesting question!
Actually, Bocadillo uses Starlette as an ASGI toolkit, not as a framework. For example, we reuse Starlette’s HTTP request representation (the Request class), as well as various ASGI middleware classes (eg the CORS middleware) and some other features (eg background tasks). But Bocadillo has a different design for views, and other features completely separate from Starlette (eg dependency injection). This hasn’t happened yet, but I’d be very much keen to bring generic enough features back into Starlette (in fact, I am personally a contributor to Starlette and uvicorn). :)
OTOH, it is true that FastAPI can be seen as a framework of a framework. For example, its app class is a direct subclass of ‘Starlette’ class. I think tiangolo is involved in both Starlette and uvicorn as well though.
+---demo
¦ +---demo
¦ ¦ +---app.py
¦ ¦ +---asgi.py
¦ ¦ +---providerconf.py
¦ ¦ +---settings.py
¦ ¦ +---__init__.py
¦ +---templates