Skip to main content

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


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.9.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ventricle-0.0.9-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file ventricle-0.0.9.tar.gz.

File metadata

  • Download URL: ventricle-0.0.9.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

Hashes for ventricle-0.0.9.tar.gz
Algorithm Hash digest
SHA256 bf07abda833c1585669d96e01e3a341d0d525fbefca4b098d8f324485be19fec
MD5 b5aefb5833e8a12a02c734b41e9d115e
BLAKE2b-256 33f02e1c5cc09e38aa39873653b26ccb5590153d56cce160c752b3dc2282c564

See more details on using hashes here.

File details

Details for the file ventricle-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: ventricle-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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

Hashes for ventricle-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ae44c4165c157c653909f51ce779bd9307a385186c108f50e9a051cdfaf7752c
MD5 7f098492ac20f253b39afc6a00b91487
BLAKE2b-256 d339e4df053cf5dc40747f2450dcc73cefcefd3cb5974b5f434c3c13f6384eb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page