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.7.tar.gz (3.4 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.7-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for ventricle-0.0.7.tar.gz
Algorithm Hash digest
SHA256 6a69a8e45a21f50631328bba6888a08496b0c8393d9a2a818ccce703372f6059
MD5 a38437c0df4fb62d7f0654f7a66b1b30
BLAKE2b-256 d88ec52e9776c8c457d97d9af4f808e219d37285e6640b911a0b47f4ccbea53d

See more details on using hashes here.

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

Hashes for ventricle-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2b4c44052ed9a9f7bd4b36b09b92ae3cde96de7859d5ff7ae08d02f2a0fd7b17
MD5 2e48e849a8b5c37715abc085334922f1
BLAKE2b-256 292f8b6377258de54868fdcbc14d1f2748348f66e0c1cef5f3cb699c1b72be14

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