3 ms·
I tried their Python Runtime Beta semi-recently out of similar curiosity. I expected the base Python use case to support common Python function deploy setups,
by tedmiston 4y ago
I tried their Python Runtime Beta semi-recently out of similar curiosity.
I expected the base Python use case to support common Python function deploy setups, say Flask, FastAPI / Starlette, etc.
It didn't seem like that's actually possible (if it is, the docs should mention it!)... and instead this is "Advanced Usage".
I really don't consider Hello World running in Flask to be "Advanced Usage".
But the alternative with the verbosity of using BaseHTTPRequestHandler with no framework is just nuts. Of course, no one is doing that on other platforms.
Python is still a second-class citizen on Vercel.
Heroku made this smooth... a decade ago... I really don't understand why Vercel doesn't make a serious investment in Python. It would unlock so much more potential for their platform. [Vercel, my email is in bio if you're listening ;).]
- cercatrova 4y agoIf you're looking for a Heroku like experience, I've heard good things about fly.io.
- rmnclmnt 4y agoI have been using Vercel with Python for a few years now, it’s pretty good! Be it Flask, FastAPI or Datasette, it does the job pretty well. I admit there were some rough edges when it was still called Now but Python is now officially supported.
- leerob 4y agoSending you an email. I'd like to improve our Python on Vercel docs (lee at vercel.com if anyone else has Python feedback).
- simonw 4y agoI've run Starlette apps and Flask apps on Vercel just fine. I wrote some notes here that you might find useful: https://til.simonwillison.net/zeit-now/python-asgi-on-now-v2 https://til.simonwillison.net/zeit-now/python-asgi-on-now-v2