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.6.tar.gz
(23.6 kB
view details)
Built Distribution
truenaspy-0.4.6-py3-none-any.whl
(24.3 kB
view details)
File details
Details for the file truenaspy-0.4.6.tar.gz
.
File metadata
- Download URL: truenaspy-0.4.6.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a89de476db9a73cb5a350d89b2b518303ad86af58c80a203687653f7e788b52 |
|
MD5 | 800ef593d5af16a6e7558ad6c4988fa3 |
|
BLAKE2b-256 | 9858bf5e9a00985e1702c23db25efd565aaac68aa6081e51ab4f5f7ef41a912f |
File details
Details for the file truenaspy-0.4.6-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.4.6-py3-none-any.whl
- Upload date:
- Size: 24.3 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 | d3b187fe74ec687502fd93489899f522ff79e2672174fcb12e730b12b1a55aa7 |
|
MD5 | 5d44f8343006036553f8e17f63547b2e |
|
BLAKE2b-256 | 39b799105735612d2712811cef821b76c37bea62c082611d16333c7b3f4f5a5d |