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.2.tar.gz
(24.1 kB
view details)
Built Distribution
truenaspy-0.6.2-py3-none-any.whl
(24.7 kB
view details)
File details
Details for the file truenaspy-0.6.2.tar.gz
.
File metadata
- Download URL: truenaspy-0.6.2.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b169d8215e6d042e7565e3053754213a58d292fcf8c1aadfd3570a64ec3a0646 |
|
MD5 | 1edb3ee7843688d4e0b3143eae5cd57a |
|
BLAKE2b-256 | 85a1f03bf9164132ec092ef8c0abe36fdd95d390225e7bfd8ee573fa2a7316ea |
File details
Details for the file truenaspy-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.6.2-py3-none-any.whl
- Upload date:
- Size: 24.7 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 | 00345e55e9670f7cbd9e101742c960506b1a1cd6ce03904e887e3baaa516a670 |
|
MD5 | 3361167f81550fd57ba7845d6c0bd75c |
|
BLAKE2b-256 | adcdad5b0e2926058dffc985442fd73f5f27d98df46d392823cf5a2bf0bd0e87 |