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
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
truenaspy-0.6.3.tar.gz
(27.4 kB
view details)
Built Distribution
truenaspy-0.6.3-py3-none-any.whl
(24.6 kB
view details)
File details
Details for the file truenaspy-0.6.3.tar.gz
.
File metadata
- Download URL: truenaspy-0.6.3.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe317b2c31de9cb9124f342e67346dbc6242d8d5b0448aebe46adb433b2d880e |
|
MD5 | 920bbb5e881163cddd36e7ebc24fca33 |
|
BLAKE2b-256 | b95109b20aac8841a85a04e3d9f50223af52538ce7a766c5c11724fd2e4025b7 |
File details
Details for the file truenaspy-0.6.3-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.6.3-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dfd87c01c173d49f2b734b8291a0f0322bbe8054b38ced062f976015f26b6f1 |
|
MD5 | c2019af09ee7bfcbed48933f39692dcb |
|
BLAKE2b-256 | dd26420e3535b730081b3e2572aceef31eaa08dcb5345b0fc3ad48ac99effde5 |