2 ms·
Will this be available for Python, too? The example code is all JavaScript, but presumably this uses APIs under the hood that could be called by other languages
by simonw 4y ago
Will this be available for Python, too? The example code is all JavaScript, but presumably this uses APIs under the hood that could be called by other languages.
I've been a happy user of Python on Vercel for years, but I often feel like languages other than JavaScript are very poorly represented, both in the community and the documentation.
My notes on running Python on Vercel: https://til.simonwillison.net/zeit-now/python-asgi-on-now-v2 https://til.simonwillison.net/zeit-now/python-asgi-on-now-v2
- cramforce 4y agoYes! Any postgres and redis client will just work. And the blob store has a REST API.
- simonw 4y agoBased on this code example: import { sql } from '@vercel/postgres'; const { rows } = await sql` INSERT INTO products (name) VALUES (${formData.get('name')}) `; Presumably authentication is handled transparently? I really like that - reminds me of Deno's new KV cloud stuff too. Is that done with environment variables? I'd want a way to tap into that from Python code as well.
- cramforce 4y agoYeah, if you go into the dashboard it gives you a bunch of options for connecting to the DB including the names of the automatically generated environment variables. And that includes POSTGRES_URL which most tools default to.