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)
but readthedocs and sphinx support markdown
Do you refer to https://www.sphinx-doc.org/en/master/usage/markdown.html? :-) For some reason I didn’t find that page while looking for solutions! It supports CommonMark though, and the Vuepress Markdown is supercharged in comparison — you can write Vue components and use them right into the Markdown page.
@florimondmanca I ran this command to install bocadillo:
pip install bocadillo
After installed bocadillo and run the app.py starter file are getting this error message:
Traceback (most recent call last):
File "app.py", line 1, in <module>
from bocadillo import App, Templates
ImportError: cannot import name 'App'
There are something that I'm forget about it?
__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.