fastapi-apscheduler
Installation
pip install fastapi-apscheduler
Usage
from fastapi import FastAPI
from fastapi_apscheduler.utils import get_logger
from fastapi_apscheduler.routers import get_jobs_router
from fastapi_apscheduler.scheduler import lifespan
logger = get_logger(__name__)
app = FastAPI(lifespan=lifespan)
app.include_router(get_jobs_router(), prefix="/scheduler", tags=["scheduler"])
async def pytest_job():
logger.info("test_job")
Build and publish to pypi with poetry
poetry build
Building fastapi-apscheduler (0.0.x)
- Building sdist
- Built fastapi_apscheduler-0.0.x.tar.gz
- Building wheel
- Built fastapi_apscheduler-0.0.x-py3-none-any.whl
poetry config pypi-token.pypi <token>
poetry publish
Publishing fastapi-apscheduler (0.0.6) to PyPI
- Uploading fastapi_apscheduler-0.0.6-py3-none-any.whl 100%
- Uploading fastapi_apscheduler-0.0.6.tar.gz 100%
Run local instance of worker with uvicorn
uvicorn example.main:app --workers 1 --port 8084 --log-level debug --env-file example/.env
TODO:
- add CI
- add tests to CI
- add coverage to CI
Metadata
Release files for fastapi-apscheduler 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastapi_apscheduler-0.0.7.tar.gz | 4.2 kB | Without provenance | Details for fastapi_apscheduler-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastapi_apscheduler-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for fastapi_apscheduler-0.0.7-py3-none-any.whl |
Total release size: 9.5 kB
Release files / fastapi_apscheduler-0.0.7.tar.gz
| Download URL | fastapi_apscheduler-0.0.7.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32d4ee8b3af9803812aba687890a87781f577d6c8de44184a86e5edd2d21b061
|
|
BLAKE2b-256 checksum How to use checksums |
13ab7aead78539ee65ca08e09c7df8d82d3a50058ed754b7f570e16d47dd17f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0
|
Release files / fastapi_apscheduler-0.0.7-py3-none-any.whl
| Download URL | fastapi_apscheduler-0.0.7-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee75c8f41e9f1a60b05e8c2a0b8e4f365212c674cd20b1b2feeab526cf65aa86
|
|
BLAKE2b-256 checksum How to use checksums |
05e49561a95354cf05c61210e7a0b60b51a65fff635c6ec2ea24af312c127d8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0
|
Security for fastapi-apscheduler 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.