Skip to content

Repository files navigation

Torizon IO API

⚠️ Warning:
This project is experimental and developed as part of the Torizon Innovation initiative. This software is not tested for production use. Feedback and contributions are welcomed.

This package contains a set of utilities to help make requests to the Torizon IO API.

If you want to know more about check Toradex IO API specification.

Development Prerequisites

  • curl
  • Python 3.8 or higher
  • pip
  • Docker

Python dependencies

pipx install poetry

Generate OpenAPI client

docker run --rm \
  -v "$ROOT:/local" \
  --user 1000:1000 \
  openapitools/openapi-generator-cli:latest \
  generate \
  -i /local/torizon-2.0-openapi.yaml \
  -g python \
  -o /local/generated \
  --additional-properties packageName=torizon_io_api \
  --additional-properties packageVersion=x.x.x \
  --additional-properties projectName=phobos-torizon-io-api

⚠️ Warning:
Replace x.x.x with the desired version.

Build package

cd generated
poetry build

Publish package

poetry run twine upload --config-file ../.pypirc dist/*

⚠️ Warning:
Does not forget to create a .pypirc file with the correct credentials.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages