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.5.8.tar.gz
(23.9 kB
view details)
Built Distribution
truenaspy-0.5.8-py3-none-any.whl
(24.5 kB
view details)
File details
Details for the file truenaspy-0.5.8.tar.gz
.
File metadata
- Download URL: truenaspy-0.5.8.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1a03a8142a7fcd34939225c050dd9fb4a513a699d06fcc6cb8f738a34689fb |
|
MD5 | adbee8551b7b64e425ee870ce98b8eb3 |
|
BLAKE2b-256 | 350842d5afb70afae90652e864dc555f229c4925f25693f3243f9c3c789da0a8 |
File details
Details for the file truenaspy-0.5.8-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.5.8-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3fb165e62f660ed7ef6a2df4733207fb89b738783b0d0b61d9ec20114588869 |
|
MD5 | 1b4992342d8f62d045f3cecac5b04bbc |
|
BLAKE2b-256 | f367e007e5ad3e873b104002265678eaa037cc7fe3571ae9f62720cdf5fa6ca4 |