3 ms·
A python equivalent to "express" would be Flask https://palletsprojects.com/p/flask/ https://palletsprojects.com/p/flask/ I see 4 dependencies in the setup.py,
by dgellow 7y ago
A python equivalent to "express" would be Flask https://palletsprojects.com/p/flask/ https://palletsprojects.com/p/flask/
I see 4 dependencies in the setup.py, and they are all from the same team of maintainers (i.e the Pallet team):
- Werkzeug
- Jinja2
- itsdangerous
- click
https://github.com/pallets/flask/blob/master/setup.py https://github.com/pallets/flask/blob/master/setup.py
https://github.com/pallets/flask/network/dependencies https://github.com/pallets/flask/network/dependencies
- awinter-py 7y ago'pip freeze' results from a few other py web frameworks: sanic = 18, fastapi = 3 but one of them is a 7MB download (pydantic) yeah it's less, but also python has an amazing stdlib
- oefrha 7y agoTo be fair, express is a production server itself whereas werkzeug is not, so you need to add something like gunicorn or uwsgi (yeah I know nginx supports uwsgi_pass natively). click is not necessary in production though (it's only used in the dev CLI). That said, 4 dependencies is the norm in Python land, whereas 13 dependencies is an outlier in JS land. Edit: oops, misread, gp said express has 51 deps, not 13.
- wffurr 7y agoThe Python standard library is a lot more capable than the JS equivalents (Node or browser API). That eliminates the need for a lot of dependencies. There's been a TC39 proposal for a JS stdlib for about 2 years now: https://github.com/tc39/proposal-javascript-standard-library https://github.com/tc39/proposal-javascript-standard-library