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.4.3.tar.gz
(23.6 kB
view hashes)
Built Distribution
truenaspy-0.4.3-py3-none-any.whl
(24.3 kB
view hashes)
Close
Hashes for truenaspy-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3004e9dd9549ec9de40f84ce78889c1b4d9901e511aa51d2ef92bf6b0166c7e1 |
|
MD5 | d0c730c9e64907a77fc8d58455bec14a |
|
BLAKE2b-256 | 92f346161b2194102045d9032ff2a2613ad0ce19204de2bf96be776cbc4b6a51 |