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.
Metadata
Release files for truenaspy 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| truenaspy-1.0.3.tar.gz | 26.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| truenaspy-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.0 kB
Release files / truenaspy-1.0.3.tar.gz
| Download URL | truenaspy-1.0.3.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11464d2e7ba0c92a8338ce98d8d8d390e22c9f427c9e83410b1b548b3fe567c8
|
|
BLAKE2b-256 checksum How to use checksums |
60a30994c315f9e883733c89ae54e91f79be80fe05f6a4b36ad53b9085d3ee81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 20, 2026.
Transparency logRelease files / truenaspy-1.0.3-py3-none-any.whl
| Download URL | truenaspy-1.0.3-py3-none-any.whl |
|---|---|
| Size | 20.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
860f69c89ae4bdfffb0600bfab6dc24084e09034b9a34e2cfa74925f0c871354
|
|
BLAKE2b-256 checksum How to use checksums |
3ac0fe31b71033e5f87d36d935773e840dba1b7e9befdbd982f5fa7343cd2d94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 20, 2026.
Transparency log