Skip to main content

Fetch Truenas data

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

Uploaded Source

Built Distribution

truenaspy-0.2.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: truenaspy-0.2.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for truenaspy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b6b40a72204738fa81ebb7968057a62fc1e61ec4ea60baf3c8401b1be9fae542
MD5 bf09bfcef44f9c15dbf7aadadc3ba35b
BLAKE2b-256 871e297b45ae69e836001994b8c5749f0b4ccde8e498d356629f2b9ae4ae6b3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: truenaspy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for truenaspy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 646654fd305da98aa41dfd9a9a744167c4f02117ce778fd3ed3b64cfca272099
MD5 1915a14572abd58b0e06f5bec00da47d
BLAKE2b-256 5b165147879638941def55a26cb12bd35424c744dad4938c2336f24a891fb8ff

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