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.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

truenaspy-0.5.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: truenaspy-0.5.0.tar.gz
  • Upload date:
  • Size: 23.7 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.0.tar.gz
Algorithm Hash digest
SHA256 aeff00a2f0243750db4764e739e9dea91c32e2b98f41a865d8ce50249af98484
MD5 d0fecc396bfe20e23919629abff8c964
BLAKE2b-256 0a53bf175665f606a6847d4eec14c09ce36bea9fe7bd78fb8ccbfee2b4e7213a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: truenaspy-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 24.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ad11141dc1bda1486c09325a920530f6a53a577d25b32d3f2e1741a77da3616
MD5 303659e621771e8dbcc20f970d0be0ff
BLAKE2b-256 2c0dd48260aa52d870605b54452fb00a348716d96eab362e52c4cffa625142c7

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