Skip to main content

A package providing template applications for data services, and a python SDK to the Octue API.

Project description

PyPI version Release codecov Documentation Status pre-commit black DOI

Octue Python SDK Purple Fruit Snake

The python SDK for running Octue data services, digital twins, and applications - get faster data groundwork so you have more time for the science!

Read the docs here.

Uses our twined library for data validation.

Installation and usage

To install, run one of:

pip install octue
poetry add octue

The command line interface (CLI) can then be accessed via:

octue --help
Usage: octue [OPTIONS] COMMAND [ARGS]...

  The CLI for the Octue SDK. Use it to start an Octue data service or digital
  twin locally or run an analysis on one locally.

  Read more in the docs: https://octue-python-sdk.readthedocs.io/en/latest/

Options:
  --id UUID                       UUID of the analysis being undertaken. None
                                  (for local use) will cause a unique ID to be
                                  generated.
  --logger-uri TEXT               Stream logs to a websocket at the given URI.
  --log-level [debug|info|warning|error]
                                  Log level used for the analysis.  [default:
                                  info]
  --force-reset / --no-force-reset
                                  Forces a reset of analysis cache and outputs
                                  [For future use, currently not implemented]
                                  [default: force-reset]
  --version                       Show the version and exit.
  -h, --help                      Show this message and exit.

Commands:
  deploy  Deploy a python app to the cloud as an Octue service or digital...
  run     Run an analysis on the given input data using an Octue service...
  start   Start an Octue service or digital twin locally as a child so it...

Deprecated code

When code is deprecated, it will still work but a deprecation warning will be issued with a suggestion on how to update it. After an adjustment period, deprecations will be removed from the codebase according to the code removal schedule. This constitutes a breaking change.

Developer notes

Installation

We use Poetry as our package manager. For development, run the following from the repository root, which will editably install the package:

poetry install --all-extras

Then run the tests to check everything's working.

Testing

These environment variables need to be set to run the tests:

  • GOOGLE_APPLICATION_CREDENTIALS=/absolute/path/to/service/account/file.json
  • TEST_PROJECT_NAME=<name-of-google-cloud-project-to-run-pub-sub-tests-on>

Then, from the repository root, run

python3 -m unittest

or

tox

Contributing

Take a look at our contributing page.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

octue-0.60.2.tar.gz (117.8 kB view details)

Uploaded Source

Built Distribution

octue-0.60.2-py3-none-any.whl (165.9 kB view details)

Uploaded Python 3

File details

Details for the file octue-0.60.2.tar.gz.

File metadata

  • Download URL: octue-0.60.2.tar.gz
  • Upload date:
  • Size: 117.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for octue-0.60.2.tar.gz
Algorithm Hash digest
SHA256 0058c99558eb1d4c02565420b69c9ba93d7ddddd79e13e9b3ed6c8504983a486
MD5 f2645cd0d01c5d2276ff0ecc914bfc54
BLAKE2b-256 140e6f2f031b46f748c5061c877d12d5b86988b1f6768bee025f4056dfbcdfac

See more details on using hashes here.

File details

Details for the file octue-0.60.2-py3-none-any.whl.

File metadata

  • Download URL: octue-0.60.2-py3-none-any.whl
  • Upload date:
  • Size: 165.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for octue-0.60.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71d10f92513cdf6b35552f39045f141f8717f9bcf7f3955155687348bc38886c
MD5 22b922a3d493df3cb471c4e51b27c194
BLAKE2b-256 be6837cff52c94385d0ab70be5880cbe839f41b62c8ee1c51c87286d5378c09f

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