https://github.com/romneyda/prygmatic
Open-source python framework for vercel serverless functions
https://github.com/romneyda/prygmatic
Last synced: 10 months ago
JSON representation
Open-source python framework for vercel serverless functions
- Host: GitHub
- URL: https://github.com/romneyda/prygmatic
- Owner: RomneyDa
- License: mit
- Created: 2023-05-09T04:04:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T01:24:26.000Z (about 3 years ago)
- Last Synced: 2025-01-19T07:31:47.894Z (over 1 year ago)
- Language: Python
- Size: 27.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# prygmatic
Open-source python framework for Vercel serverless functions
Opinionated dev stack:
- Poetry package manager
- Wraps pytest for testing
Goals:
- Open-source python framework for Vercel serverless functions
- Wraps around an ASGI-compliant web framework, preferably with the "decorator" approach to api definition. E.g. Sanic
- Support for "tasks" - separate serverless functions or edge functions + scheduling with Vercel CRON jobs
- Simplified support or at least examples for vercel storage (Upstash, blobs, etc.)
- Simple cli/scripts for testing and deployment
- Testing support as a set of network/other utilities that wrap around pytest and/or unittest
- Simple example endpoints/utils for all ^ with accompanying tests
- Async examples
- Come up with a better name related to the chosen ASGI framework
Vercel support a python runtime. [DOCS](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python). As of this writing, Vercel supports Python 3.6 and Python 3.9.
Vercel can import git repositories directly. The recommended use of this is:
- clone to your own repository
- [import your respository](https://vercel.com/docs/concepts/deployments/git) into Vercel
To use Vercel serverless, install the Vercel CLI
```bash
npm i -g vercel@latest
```
A simple Vercel serverless Python example is provided [here](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python)