Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for aiotainer 0.0.1b6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiotainer 0.0.1b6
File Size Uploaded
aiotainer-0.0.1b6.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiotainer 0.0.1b6
File Interpreter ABI Platform
aiotainer-0.0.1b6-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 kB

Release files / aiotainer-0.0.1b6.tar.gz

Download URL aiotainer-0.0.1b6.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4cb13c531ee139435ef8b1eeb26270dcc5446d2093d7e2ed6d79ac6be7690ee7
BLAKE2b-256 checksum
How to use checksums
cd38b2ed4aa5772374401236e6650fe8a9790c1a97949ca4a9661e69c8cb1dbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 24, 2025.

Transparency log

Release files / aiotainer-0.0.1b6-py3-none-any.whl

Download URL aiotainer-0.0.1b6-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f3922eedc85132fa490ceb8d92b4e245f7a31c054e7bf6e8d1a81b0864c5b41
BLAKE2b-256 checksum
How to use checksums
00f868bdf97f5373a4da3fc614c66bdec0d12f880d529648e8a99b2fbfbe4c07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 24, 2025.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page