Skip to main content

定时任务api

Project description

Cron API

自用 fastapi 项目,提供对应接口,通过命令行启动

  • etcd 配置定时任务
  • mongodb 查看任务执行日志

安装

pipx install cron-apiuv tool install cron-api

运行

cron-api --help

# CRON_API_MONGO_DB_NAME="cron"
# 指定环境变量文件,环境变量文件需提供以上参数
cron-api --dotenv-path .env
# 还可以通过 --host, --port 指定fastapi启动地址和端口
uv run cron-api --host 0.0.0.0 --port 8000 --ssl-keyfile d:/.ssh/mkcert/key.pem --ssl-certfile d:/.ssh/mkcert/cert.pem

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

cronapi_py-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

cronapi_py-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file cronapi_py-0.1.0.tar.gz.

File metadata

  • Download URL: cronapi_py-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cronapi_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 16a0c03029f2ad83fe65a9d9441a842074d4808b2e94835be1572389fe274819
MD5 0a266e888c55f62aa849e92c1bedd1f6
BLAKE2b-256 f42e641f45322b56cd540547388a9356d00a7a0ccff03da149565b290d2a4f74

See more details on using hashes here.

File details

Details for the file cronapi_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cronapi_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cronapi_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f4693b3ef52e956414ec70acb2523eb2600e755df23562f1b42c4719b4572de
MD5 61c3d99679ee221edce740d7057570bb
BLAKE2b-256 973917c6fd498439b983a428f244c0c653bca6e2de621051047309f5351a342f

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