Skip to main content

An opinionated modern server, worker and scheduler

Project description

Ventricle

An 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")

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ventricle-0.0.4.tar.gz
  • Upload date:
  • Size: 2.7 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.4.tar.gz
Algorithm Hash digest
SHA256 8e04ab964b3613987ffc7918e8c787849c2c408e97f0752c9278444057172410
MD5 d7af1d96e32f07f120d595bcd8d4cfa7
BLAKE2b-256 4397d5b4a0ac5809f0d82d2cfb2a7daff685f0bcc27014a1ce4c2c24e90acf9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ventricle-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 38608e72bfc94de432dfd4cdf7e418fd99e6dd94b82db4076a93a727d15009e8
MD5 0c643cde2ab97721e75897eb5f6e17f1
BLAKE2b-256 96ca7df9f349e884fe4d894db0f2d18ebd98f4290d21a2001ad7d8f88cc46e10

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