octue


Nameoctue JSON
Version 0.53.0 PyPI version JSON
download
home_pagehttps://www.github.com/octue/octue-sdk-python
SummaryA package providing template applications for data services, and a python SDK to the Octue API.
upload_time2024-04-11 17:47:55
maintainerNone
docs_urlNone
authorMarcus Lugg
requires_python<4.0.0,>=3.7.1
licenseMIT
keywords digital twins twined data services science api apps ml
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            [![PyPI version](https://badge.fury.io/py/octue.svg)](https://badge.fury.io/py/octue)
[![Release](https://github.com/octue/octue-sdk-python/actions/workflows/release.yml/badge.svg)](https://github.com/octue/octue-sdk-python/actions/workflows/release.yml)
[![codecov](https://codecov.io/gh/octue/octue-sdk-python/branch/main/graph/badge.svg?token=4KdR7fmwcT)](https://codecov.io/gh/octue/octue-sdk-python)
[![Documentation Status](https://readthedocs.org/projects/octue-python-sdk/badge/?version=latest)](https://octue-python-sdk.readthedocs.io/en/latest/?badge=latest)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

# Octue Python SDK <img src="./docs/source/images/213_purple-fruit-snake-transparent.gif" alt="Purple Fruit Snake" width="100"/></span>

The python SDK for running [Octue](https://octue.com) data services, digital twins, and applications - get faster data
groundwork so you have more time for the science!

Read the docs [here.](https://octue-python-sdk.readthedocs.io/en/latest/)

Uses our [twined](https://twined.readthedocs.io/en/latest/) library for data validation.

## Installation and usage
To install, run one of:
```shell
pip install octue
```

```shell
poetry add octue
```

The command line interface (CLI) can then be accessed via:
```shell
octue --help
```

```text
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](https://github.com/octue/octue-sdk-python/issues/415).
This constitutes a breaking change.

## Developer notes

### Installation
We use [Poetry](https://python-poetry.org/) as our package manager. For development, run the following from the
repository root, which will editably install the package:

```shell
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
```shell
python3 -m unittest
```
or
```shell
tox
```

## Contributing
Take a look at our [contributing](/docs/contributing.md) page.


            

Raw data

            {
    "_id": null,
    "home_page": "https://www.github.com/octue/octue-sdk-python",
    "name": "octue",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.7.1",
    "maintainer_email": null,
    "keywords": "digital, twins, twined, data, services, science, api, apps, ml",
    "author": "Marcus Lugg",
    "author_email": "marcus@octue.com",
    "download_url": "https://files.pythonhosted.org/packages/90/50/60086ce12e4178ce56da5d22d04133bbd690a992de2f62379c708fea8e29/octue-0.53.0.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://badge.fury.io/py/octue.svg)](https://badge.fury.io/py/octue)\n[![Release](https://github.com/octue/octue-sdk-python/actions/workflows/release.yml/badge.svg)](https://github.com/octue/octue-sdk-python/actions/workflows/release.yml)\n[![codecov](https://codecov.io/gh/octue/octue-sdk-python/branch/main/graph/badge.svg?token=4KdR7fmwcT)](https://codecov.io/gh/octue/octue-sdk-python)\n[![Documentation Status](https://readthedocs.org/projects/octue-python-sdk/badge/?version=latest)](https://octue-python-sdk.readthedocs.io/en/latest/?badge=latest)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)\n[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\n# Octue Python SDK <img src=\"./docs/source/images/213_purple-fruit-snake-transparent.gif\" alt=\"Purple Fruit Snake\" width=\"100\"/></span>\n\nThe python SDK for running [Octue](https://octue.com) data services, digital twins, and applications - get faster data\ngroundwork so you have more time for the science!\n\nRead the docs [here.](https://octue-python-sdk.readthedocs.io/en/latest/)\n\nUses our [twined](https://twined.readthedocs.io/en/latest/) library for data validation.\n\n## Installation and usage\nTo install, run one of:\n```shell\npip install octue\n```\n\n```shell\npoetry add octue\n```\n\nThe command line interface (CLI) can then be accessed via:\n```shell\noctue --help\n```\n\n```text\nUsage: octue [OPTIONS] COMMAND [ARGS]...\n\n  The CLI for the Octue SDK. Use it to start an Octue data service or digital\n  twin locally or run an analysis on one locally.\n\n  Read more in the docs: https://octue-python-sdk.readthedocs.io/en/latest/\n\nOptions:\n  --id UUID                       UUID of the analysis being undertaken. None\n                                  (for local use) will cause a unique ID to be\n                                  generated.\n  --logger-uri TEXT               Stream logs to a websocket at the given URI.\n  --log-level [debug|info|warning|error]\n                                  Log level used for the analysis.  [default:\n                                  info]\n  --force-reset / --no-force-reset\n                                  Forces a reset of analysis cache and outputs\n                                  [For future use, currently not implemented]\n                                  [default: force-reset]\n  --version                       Show the version and exit.\n  -h, --help                      Show this message and exit.\n\nCommands:\n  deploy  Deploy a python app to the cloud as an Octue service or digital...\n  run     Run an analysis on the given input data using an Octue service...\n  start   Start an Octue service or digital twin locally as a child so it...\n```\n\n## Deprecated code\nWhen code is deprecated, it will still work but a deprecation warning will be issued with a suggestion on how to update\nit. After an adjustment period, deprecations will be removed from the codebase according to the [code removal schedule](https://github.com/octue/octue-sdk-python/issues/415).\nThis constitutes a breaking change.\n\n## Developer notes\n\n### Installation\nWe use [Poetry](https://python-poetry.org/) as our package manager. For development, run the following from the\nrepository root, which will editably install the package:\n\n```shell\npoetry install --all-extras\n```\n\nThen run the tests to check everything's working.\n\n### Testing\nThese environment variables need to be set to run the tests:\n* `GOOGLE_APPLICATION_CREDENTIALS=/absolute/path/to/service/account/file.json`\n* `TEST_PROJECT_NAME=<name-of-google-cloud-project-to-run-pub-sub-tests-on>`\n\nThen, from the repository root, run\n```shell\npython3 -m unittest\n```\nor\n```shell\ntox\n```\n\n## Contributing\nTake a look at our [contributing](/docs/contributing.md) page.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A package providing template applications for data services, and a python SDK to the Octue API.",
    "version": "0.53.0",
    "project_urls": {
        "Homepage": "https://www.github.com/octue/octue-sdk-python",
        "Repository": "https://www.github.com/octue/octue-sdk-python"
    },
    "split_keywords": [
        "digital",
        " twins",
        " twined",
        " data",
        " services",
        " science",
        " api",
        " apps",
        " ml"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "26c34ebb45f4bfbd3ac8c5a0476f44d03572cf9860f7767a5c21b643fbbe9d19",
                "md5": "3603c88abe2380a83062a57a5a07fc17",
                "sha256": "5b1c775814e98e93df852fda8606377c033d59bf435dea89f7fac5ced8344bea"
            },
            "downloads": -1,
            "filename": "octue-0.53.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3603c88abe2380a83062a57a5a07fc17",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.7.1",
            "size": 162084,
            "upload_time": "2024-04-11T17:47:41",
            "upload_time_iso_8601": "2024-04-11T17:47:41.493490Z",
            "url": "https://files.pythonhosted.org/packages/26/c3/4ebb45f4bfbd3ac8c5a0476f44d03572cf9860f7767a5c21b643fbbe9d19/octue-0.53.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "905060086ce12e4178ce56da5d22d04133bbd690a992de2f62379c708fea8e29",
                "md5": "2c44b533232d6e932bdb3ea2f2de1687",
                "sha256": "b72e71c30c68748d5c8a1fb7d84cfedef8191d668fa209ab8566852b907f585a"
            },
            "downloads": -1,
            "filename": "octue-0.53.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2c44b533232d6e932bdb3ea2f2de1687",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.7.1",
            "size": 113586,
            "upload_time": "2024-04-11T17:47:55",
            "upload_time_iso_8601": "2024-04-11T17:47:55.976049Z",
            "url": "https://files.pythonhosted.org/packages/90/50/60086ce12e4178ce56da5d22d04133bbd690a992de2f62379c708fea8e29/octue-0.53.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-11 17:47:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "octue",
    "github_project": "octue-sdk-python",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "octue"
}
        
Elapsed time: 0.27068s