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 TruenasWebsocket

HOST="1.2.3.4:8080"

async def main():
    websocket = TruenasWebsocket(host=HOST, use_tls=True, verify_ssl=False)
    listener = await websocket.async_connect(USERNAME, PASSWORD)
    info = await ws.async_call(method="system.info")
    print(rlst)
    await websocket.async_close()

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
asyncio.run(async_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-1.0.3.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

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

truenaspy-1.0.3-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: truenaspy-1.0.3.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for truenaspy-1.0.3.tar.gz
Algorithm Hash digest
SHA256 11464d2e7ba0c92a8338ce98d8d8d390e22c9f427c9e83410b1b548b3fe567c8
MD5 9fe4ca72126033cffdf3fd56c348d5f6
BLAKE2b-256 60a30994c315f9e883733c89ae54e91f79be80fe05f6a4b36ad53b9085d3ee81

See more details on using hashes here.

Provenance

The following attestation bundles were made for truenaspy-1.0.3.tar.gz:

Publisher: python-publish.yml on cyr-ius/truenaspy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: truenaspy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for truenaspy-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 860f69c89ae4bdfffb0600bfab6dc24084e09034b9a34e2cfa74925f0c871354
MD5 bfc44943b742af833e1ec665c82b34cb
BLAKE2b-256 3ac0fe31b71033e5f87d36d935773e840dba1b7e9befdbd982f5fa7343cd2d94

See more details on using hashes here.

Provenance

The following attestation bundles were made for truenaspy-1.0.3-py3-none-any.whl:

Publisher: python-publish.yml on cyr-ius/truenaspy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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