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.8.tar.gz
(28.2 kB
view details)
Built Distribution
truenaspy-0.6.8-py3-none-any.whl
(25.3 kB
view details)
File details
Details for the file truenaspy-0.6.8.tar.gz
.
File metadata
- Download URL: truenaspy-0.6.8.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f40f75c274214e2ac44333b089c025f7353363faa91fd9581dcb61819c7e2a2 |
|
MD5 | ce5cca73551726e3e754adb357103ad4 |
|
BLAKE2b-256 | 8fea8294c51327416fb6a463dd30723dbb69909753ca23d69f5e1d0bbfd9da25 |
File details
Details for the file truenaspy-0.6.8-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.6.8-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efec6c4748260edabf3dc3c0d937771a0887fe86fa9db634e9ab98e02af49699 |
|
MD5 | eb1278e8512faaa580248a1c898ab236 |
|
BLAKE2b-256 | 2e54ff2e7ee50b8548402f4ce90ffadf9bbfed18ca178019ee01e212a09010e4 |