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.10.tar.gz
(3.7 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.10.tar.gz.
File metadata
- Download URL: ventricle-0.0.10.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.9 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8732808383911a5465d0f0d3f86fa6b05e1c2a9b3a085f01ded7b8d1a06b52db
|
|
| MD5 |
c47b505327fe416ddfb643e7f0ffe038
|
|
| BLAKE2b-256 |
2471354ccd5147a0735bd5f0d753c6280bc929f2ada17e1579acd2c60a1593b3
|
File details
Details for the file ventricle-0.0.10-py3-none-any.whl.
File metadata
- Download URL: ventricle-0.0.10-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.9 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
267aea2c190e43f5107361b9fd8438b4da2d49a85ec147c7deaaf09d769c5203
|
|
| MD5 |
967acd21d567aa5429fa48e4e3da07a1
|
|
| BLAKE2b-256 |
4a7642fb974c6970cc1b8f20664aca457ad6369e7df230db2613b65ebe61609c
|