Skip to main content

MPython module to talk to a Portainer.

Project description

aiotainer

codecov Python Versions License

Asynchronous library to communicate with the Portainer API

Quickstart

In order to use the library, you'll need to do some work yourself to get authentication credentials. This depends a lot on the context (e.g. redirecting to use OAuth via web) but should be easy to incorporate using Portainers's authentication examples. See Portainers's Authentication for details.

You will implement AbstractAuth to provide an access token. Your implementation will handle any necessary refreshes. You can invoke the service with your auth implementation to access the API.

You need at least:

For a first start you can run the example.py, by doing the following steps

  • git clone https://github.com/Thomas55555/aiotainer.git
  • cd aiotainer
  • poetry install
  • Enter your personal client_id and client_secret in the _secrets.yaml and rename it to secrets.yaml
  • Run with poetry run ./example.py

Contributing

This is an active open-source project. We are always open to people who want to use the code or contribute to it. This Python project is fully managed using the Poetry dependency manager.

As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

poetry run pre-commit run --all-files

To run just the Python tests:

poetry run pytest

To update snapshots:

poetry run pytest --snapshot-update

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

aiotainer-0.0.1b6.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

aiotainer-0.0.1b6-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file aiotainer-0.0.1b6.tar.gz.

File metadata

  • Download URL: aiotainer-0.0.1b6.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for aiotainer-0.0.1b6.tar.gz
Algorithm Hash digest
SHA256 4cb13c531ee139435ef8b1eeb26270dcc5446d2093d7e2ed6d79ac6be7690ee7
MD5 cc63d8991279b30a0bf21062bd658fc9
BLAKE2b-256 cd38b2ed4aa5772374401236e6650fe8a9790c1a97949ca4a9661e69c8cb1dbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiotainer-0.0.1b6.tar.gz:

Publisher: release.yml on Thomas55555/aiotainer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiotainer-0.0.1b6-py3-none-any.whl.

File metadata

  • Download URL: aiotainer-0.0.1b6-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for aiotainer-0.0.1b6-py3-none-any.whl
Algorithm Hash digest
SHA256 4f3922eedc85132fa490ceb8d92b4e245f7a31c054e7bf6e8d1a81b0864c5b41
MD5 f068ecb8dca93cda91504c1f76304e75
BLAKE2b-256 00f868bdf97f5373a4da3fc614c66bdec0d12f880d529648e8a99b2fbfbe4c07

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiotainer-0.0.1b6-py3-none-any.whl:

Publisher: release.yml on Thomas55555/aiotainer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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