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.8.tar.gz
(23.7 kB
view details)
Built Distribution
truenaspy-0.4.8-py3-none-any.whl
(24.4 kB
view details)
File details
Details for the file truenaspy-0.4.8.tar.gz
.
File metadata
- Download URL: truenaspy-0.4.8.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41bfefa31912cee5f02a62662bc58510b840eada470335588047fd303c6fcbaa |
|
MD5 | a8ab9d55e201cc95bda442093fba063b |
|
BLAKE2b-256 | 0db874139d312e6017ca9915710f4f8728d6878484f7dc16d70a8038178c4714 |
File details
Details for the file truenaspy-0.4.8-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.4.8-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52da79eacb89d90788e5f2c778cf04a469da426d1fcf00ab82141a8b3a971379 |
|
MD5 | de47a127307b72121e74540c3ba6ac5e |
|
BLAKE2b-256 | 2cff105e3708312713014b3c6e6e6d5efc2be2e1b65eebee1ef48cb5710d6934 |