Skip to main content

RESTful API for Deciphon scheduler

Project description

deciphon-api

Dependencies

If you happen to be using a supported Linux environment (which is likely the case), you would need:

  • Python >=3.8
  • Pipx for easy installation and environment isolation. Feel free to use Pip instead though.

Usage

Generate a configuration file:

pipx run deciphon-api generate-config > .env

Tweak .env as needed, and then run

pipx run deciphon-api start

Development

Make sure you have Poetry.

Enter

poetry install
poetry shell

to setup and activate a Python environment associated with the project. Then enter

uvicorn deciphon_api.main:app.api --reload

to start the API.

Tests can be performed by entering

pytest

while the corresponding Python environment created by Poetry is active.

Settings

Copy the file .env.example to your working directory and rename it to .env. Edit it accordingly. The rest of the configuration can be tuned by uvicorn options.

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

deciphon_api-0.6.1.tar.gz (19.9 kB view details)

Uploaded Source

File details

Details for the file deciphon_api-0.6.1.tar.gz.

File metadata

  • Download URL: deciphon_api-0.6.1.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for deciphon_api-0.6.1.tar.gz
Algorithm Hash digest
SHA256 c6b0698c0d2bbc24fb8efd192fa50cf3572ad05af9f47aacf30270b5630d31d2
MD5 2cd5c712ab96da5e44f796feaa99358b
BLAKE2b-256 8f03430a15ef277d12c5ae71fc3e98495777fe296f96cf017ef52753c4de34eb

See more details on using hashes here.

Supported by

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