Skip to main content

helper class to connect to a Naos platform

Project description

naosconnector

Helper library for using Naos APIs

How to use

create a new instance of the NaosConnector class with your Naos platform URL. Use the basic_auth function to authenticate with your username and password. NaosConnector then manages access and refreshes tokens automatically.

Once authenticated, you can use the get, post, put, and delete methods to interact with the Naos API. These methods will automatically include the access token in the request headers.

naosconnector.py

from naosconnector.naosconnector import NaosConnector

Example usage

naos = NaosConnector("https://your-naos-platform-url.com") naos.basic_auth("your_username", "your_password")

Example GET request

url = "/v1" response = naos.get(url) print(response)

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

naosconnector-0.1.5.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

naosconnector-0.1.5-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file naosconnector-0.1.5.tar.gz.

File metadata

  • Download URL: naosconnector-0.1.5.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11

File hashes

Hashes for naosconnector-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7d7e813ef07122f52c02ec9cae757c4add11c9b2cc0e2b9aeff6b933a0ef9a33
MD5 3f6458baf6c2d2e0edd66645f86c8a23
BLAKE2b-256 7ddbba2ee84b7f477c3cd880225d971fdb73f305b823bf66b55eba4e1a599cc7

See more details on using hashes here.

File details

Details for the file naosconnector-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: naosconnector-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Windows/11

File hashes

Hashes for naosconnector-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 518e2849a1e34b76df21b1766dce26f3884323171162b4b5cea464453119cb87
MD5 92323aefd3777bb1254a4f1c3430bba6
BLAKE2b-256 3f4932230dad196a198567dc9ff1dde2eac1b4df39158e24772bce792419b65b

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