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.5.9.tar.gz
(23.9 kB
view details)
Built Distribution
truenaspy-0.5.9-py3-none-any.whl
(24.5 kB
view details)
File details
Details for the file truenaspy-0.5.9.tar.gz
.
File metadata
- Download URL: truenaspy-0.5.9.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b378f1f7b4c2ff42844aa97ee1359b5da321f96f9ea9e0ac98af46a261f54dc |
|
MD5 | ba937653531e3368ed10da02df374a2b |
|
BLAKE2b-256 | 0c808921b4e3c5f174f238ef124432c92e14887b7b790cf2aa0c3879b669fea4 |
File details
Details for the file truenaspy-0.5.9-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.5.9-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8665fd2faa4c6fdbb191e2aee23ceb583cb02a9671cbc61255c7ebb00a336b60 |
|
MD5 | da31a938437bcdd0095af05438d1653c |
|
BLAKE2b-256 | 664c55800fc049340d2390dced43f07fd6bfc66ca2d22272550674f04fcf666b |