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

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.43.0.tar.gz (114.7 kB view details)

Uploaded Source

Built Distribution

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

octue-0.43.0-py3-none-any.whl (160.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: octue-0.43.0.tar.gz
  • Upload date:
  • Size: 114.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.10 Linux/5.15.0-1024-azure

File hashes

Hashes for octue-0.43.0.tar.gz
Algorithm Hash digest
SHA256 b6897bd3a1053e2c3e6a64cec261e29c7c849e22ad57eae920bf5e71756745fd
MD5 ed35cc4b30d25ff2220cea67dc865901
BLAKE2b-256 543bb4f7a56319760df97da5963c904838e4e53a2908e5cfe5eed9ccf1363fe4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: octue-0.43.0-py3-none-any.whl
  • Upload date:
  • Size: 160.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.9.10 Linux/5.15.0-1024-azure

File hashes

Hashes for octue-0.43.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cf5c3639ef45e029c7576af0665af929de27048029e1e9245b1cd76b5a518f3
MD5 228b3cec715870cbf487c0140c3710d5
BLAKE2b-256 becd10fa308315e119065803f6ee687b341a6d0f678c27885030f8fc70d84e86

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