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.7.tar.gz
(3.4 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.7.tar.gz.
File metadata
- Download URL: ventricle-0.0.7.tar.gz
- Upload date:
- Size: 3.4 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 |
6a69a8e45a21f50631328bba6888a08496b0c8393d9a2a818ccce703372f6059
|
|
| MD5 |
a38437c0df4fb62d7f0654f7a66b1b30
|
|
| BLAKE2b-256 |
d88ec52e9776c8c457d97d9af4f808e219d37285e6640b911a0b47f4ccbea53d
|
File details
Details for the file ventricle-0.0.7-py3-none-any.whl.
File metadata
- Download URL: ventricle-0.0.7-py3-none-any.whl
- Upload date:
- Size: 6.2 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 |
2b4c44052ed9a9f7bd4b36b09b92ae3cde96de7859d5ff7ae08d02f2a0fd7b17
|
|
| MD5 |
2e48e849a8b5c37715abc085334922f1
|
|
| BLAKE2b-256 |
292f8b6377258de54868fdcbc14d1f2748348f66e0c1cef5f3cb699c1b72be14
|