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.5.tar.gz
(2.9 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.5.tar.gz.
File metadata
- Download URL: ventricle-0.0.5.tar.gz
- Upload date:
- Size: 2.9 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 |
4d975483803af18f1df424e7da9d8fe7f7adc4e26f56b19eab43d345a7150626
|
|
| MD5 |
3a36e4e17dd566e09d4a4c0b0ae555da
|
|
| BLAKE2b-256 |
36b07d0803c19f3884fdbace7828d7b57cc3e14b3b27aa494739bd696eb80c21
|
File details
Details for the file ventricle-0.0.5-py3-none-any.whl.
File metadata
- Download URL: ventricle-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
af568014a9f4379b114e003bff44a3cdf8fabee389ce7fe044ae55777a6e2833
|
|
| MD5 |
df55425b56799264aa39f8aec43594e1
|
|
| BLAKE2b-256 |
598fb49c35efb7df9432bc2978f5c8c9630029ae9edad5dbc9d7846b7df62303
|