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.6.tar.gz
(28.2 kB
view details)
Built Distribution
truenaspy-0.6.6-py3-none-any.whl
(25.3 kB
view details)
File details
Details for the file truenaspy-0.6.6.tar.gz
.
File metadata
- Download URL: truenaspy-0.6.6.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c74550d1a0bd189d5bb2c23d0aa0d9f2b82e594e7420d1909f1bafc955bf82f2 |
|
MD5 | 54622ec90695193532207c04c517f7af |
|
BLAKE2b-256 | a23c3c20db7380f7c8d1fdf6e68f54f970c48d68d5618e59e9a0d82847752dd8 |
File details
Details for the file truenaspy-0.6.6-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.6.6-py3-none-any.whl
- Upload date:
- Size: 25.3 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 | f3ae101e6dd3a8648de5f91f4f1c39e93882e9e6aa4a587df47339020b8e28f7 |
|
MD5 | 2b575ef87e6b286ade3083887cdaebf9 |
|
BLAKE2b-256 | ccdb55f5e295cc9e0dee8e813cad885e525910adfa7b9e5f77321256a48d2d86 |