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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11464d2e7ba0c92a8338ce98d8d8d390e22c9f427c9e83410b1b548b3fe567c8
|
|
| MD5 |
9fe4ca72126033cffdf3fd56c348d5f6
|
|
| BLAKE2b-256 |
60a30994c315f9e883733c89ae54e91f79be80fe05f6a4b36ad53b9085d3ee81
|
Provenance
The following attestation bundles were made for truenaspy-1.0.3.tar.gz:
Publisher:
python-publish.yml on cyr-ius/truenaspy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
truenaspy-1.0.3.tar.gz -
Subject digest:
11464d2e7ba0c92a8338ce98d8d8d390e22c9f427c9e83410b1b548b3fe567c8 - Sigstore transparency entry: 839024247
- Sigstore integration time:
-
Permalink:
cyr-ius/truenaspy@027b0a6d17668eccaa0518f0170892894259349a -
Branch / Tag:
refs/tags/1.0.3 - Owner: https://github.com/cyr-ius
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@027b0a6d17668eccaa0518f0170892894259349a -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
860f69c89ae4bdfffb0600bfab6dc24084e09034b9a34e2cfa74925f0c871354
|
|
| MD5 |
bfc44943b742af833e1ec665c82b34cb
|
|
| BLAKE2b-256 |
3ac0fe31b71033e5f87d36d935773e840dba1b7e9befdbd982f5fa7343cd2d94
|
Provenance
The following attestation bundles were made for truenaspy-1.0.3-py3-none-any.whl:
Publisher:
python-publish.yml on cyr-ius/truenaspy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
truenaspy-1.0.3-py3-none-any.whl -
Subject digest:
860f69c89ae4bdfffb0600bfab6dc24084e09034b9a34e2cfa74925f0c871354 - Sigstore transparency entry: 839024278
- Sigstore integration time:
-
Permalink:
cyr-ius/truenaspy@027b0a6d17668eccaa0518f0170892894259349a -
Branch / Tag:
refs/tags/1.0.3 - Owner: https://github.com/cyr-ius
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@027b0a6d17668eccaa0518f0170892894259349a -
Trigger Event:
release
-
Statement type: