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

Uploaded Source

Built Distribution

truenaspy-0.3.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for truenaspy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 433b2b598ec73657deaff782d4c0bc05d3d99c0face8452735c03d020bfacf7b
MD5 0181f954e7dbf54294228b75f1f86b2e
BLAKE2b-256 63726e71e36d22855666b3fe56ee9369e47462844ad88a6781222787df0486c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: truenaspy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 23.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b46d2ee47fe025d0b38a1c73e047444a6b06af1453a03649c30063f8373863c9
MD5 7ce7b7ca8816cf8244083913e7be3365
BLAKE2b-256 c8bd38d8fb1c2459cfa5b7fb96c7b981258d268121d9d264684723ba6f8615a1

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