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.3.tar.gz
(23.9 kB
view details)
Built Distribution
truenaspy-0.5.3-py3-none-any.whl
(24.5 kB
view details)
File details
Details for the file truenaspy-0.5.3.tar.gz
.
File metadata
- Download URL: truenaspy-0.5.3.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99c22d67df5f9594c454a65a184c60fafc3771d75d10484a7e9275435177c3d1 |
|
MD5 | afe0acf4ca74e1473addec101e9ce9d8 |
|
BLAKE2b-256 | d72813e559016dd6a4f17277bcd1183bf73d9fabd2b03702460799d0a622addd |
File details
Details for the file truenaspy-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.5.3-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.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2b87938dda253f8797ce5d87722927853160307cd5ff8a19601203b3dd38c44 |
|
MD5 | ab9920aaa129e86f4f7fc8f1c0247a7f |
|
BLAKE2b-256 | 36dfc2e596e5607cd589b8ea89ead8a5035b613a3235e2daabacb01f485ae902 |