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.6.tar.gz
(3.2 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.6.tar.gz.
File metadata
- Download URL: ventricle-0.0.6.tar.gz
- Upload date:
- Size: 3.2 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 |
9bb706eb4dd08044601e3e759d6a2650b32853244d5d7cb7c374f9aa2fcf3dbd
|
|
| MD5 |
138881037a9ff975ae386e9e8014d177
|
|
| BLAKE2b-256 |
6e617a47a34b7796859bdbc4eda23f75688ff82c539ea48ae260e41875a1751a
|
File details
Details for the file ventricle-0.0.6-py3-none-any.whl.
File metadata
- Download URL: ventricle-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.0 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 |
bfe19ec954e51bd148819ee1672e381c7d0cdb2a5386a8e43c065ea2356e9f9a
|
|
| MD5 |
251f62d53b589c48d460cf8fc9c2c9f4
|
|
| BLAKE2b-256 |
8c9b0b3ec5bca2af3c5474507a37e5b634a9a730c808fe6d9803268c7d196302
|