Skip to main content

Provides asynchronous authentication and access to Truenas devices

Project description

Truenaspy

Fetch data from TrueNas

Install

Use the PIP package manager

$ pip install truenaspy

Or manually download and install the last version from github

$ git clone https://github.com/cyr-ius/truenaspy.git
$ python setup.py install

Get started

# Import the truenaspy package.
from truenaspy import TrueNASAPI

TOKEN="012345"
HOST="1.2.3.4:8080"

async def main():
    api = TrueNASAPI(token=TOKEN, host=HOST, use_ssl=False, verify_ssl=False)
    rslt = await api.async_get_system()
    print(rlst)
    await api.async_close()

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Have a look at the example.py for a more complete overview.

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

truenaspy-0.5.7.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

truenaspy-0.5.7-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file truenaspy-0.5.7.tar.gz.

File metadata

  • Download URL: truenaspy-0.5.7.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for truenaspy-0.5.7.tar.gz
Algorithm Hash digest
SHA256 e91b660000843f1efa24f1f953bcd83f88f081a9126beb6d01829adf9f66b061
MD5 90ea25ea6bb3c44b2a02bc07e71db17c
BLAKE2b-256 40f4f9712153ee67cb4549c070c8fab101d5daf80bda0e940d0a1c44ff694cee

See more details on using hashes here.

File details

Details for the file truenaspy-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: truenaspy-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for truenaspy-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5e96e5ea0ae57ac0f75812472b22f95afa8dcaa677dda30e1293076bfb203d
MD5 0be7fbaf695d9e224fc63e7cd1df1ced
BLAKE2b-256 4d29e2e34c7001345d5a0cd9e1ea198ca561a0c94d8f8daeac6bc2fae6f78266

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page