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.4.tar.gz
(27.5 kB
view details)
Built Distribution
truenaspy-0.6.4-py3-none-any.whl
(24.6 kB
view details)
File details
Details for the file truenaspy-0.6.4.tar.gz
.
File metadata
- Download URL: truenaspy-0.6.4.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2735daca246d85051814429c158cca730d833091141c49b4ce4f7ea7e3411f2 |
|
MD5 | e8a6fecf304d623a4e70d5bcee5e34ce |
|
BLAKE2b-256 | 1dd0279e10cb1bad4ab396f8eaed213b775de40555f1b085247cf44844609074 |
File details
Details for the file truenaspy-0.6.4-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.6.4-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 | d383501c07fd1ea2c4d9722119cd5c9236107550904a56b0e6346eb511c088fb |
|
MD5 | 0e06279e3c474c3b3b03c727bba61a97 |
|
BLAKE2b-256 | 6c015e0a02b7cd0eb3d5960ff85bb9210472baafdba23e2ff6d3e646b406c33e |