An opinionated modern async server, worker and scheduler
Project description
Ventricle
An async REST-server, scheduler and worker all in one. Highly customizable, as it is just wrapping other battle-tested libaries.
from ventricle import Ventricle
app = Ventricle()
@app.worker()
async def hello_world_worker():
print("I am actually just python threading")
@app.rest.get("/endpoint")
async def rest_endpoint():
await hello_world_worker()
return {"how": "I am actually just FastAPI"}
@app.scheduler.scheduled_job("cron", minute=0)
async def hourly_job():
print("I am actually just APScheduler")
# start all of them
app.start(
rest=True,
schedular=True,
worker=True
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ventricle-0.0.8.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ventricle-0.0.8.tar.gz.
File metadata
- Download URL: ventricle-0.0.8.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.9 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74afce04ca33bcd24376219e0d72de6245638a3ceca178c446f12f4748c1f640
|
|
| MD5 |
97e82fb363fe20a9a2c9eb762c2fae25
|
|
| BLAKE2b-256 |
6aa18e2f0fd89c21139fb4896ff0138aa98b9de578ecbe8a98361f772928746b
|
File details
Details for the file ventricle-0.0.8-py3-none-any.whl.
File metadata
- Download URL: ventricle-0.0.8-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.9 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ec84451370c90664f4b04aa1d6134cb376f217ed90efe1ba5e95b8de49ef47f
|
|
| MD5 |
85dfe46fe3c0cd1f174d0aaefcaa5096
|
|
| BLAKE2b-256 |
4f23ea5ac2299754a66630d2c7d3d032e9acf62c9869758dba993a28acf9e3bc
|