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.5.tar.gz
(28.2 kB
view details)
Built Distribution
truenaspy-0.6.5-py3-none-any.whl
(25.3 kB
view details)
File details
Details for the file truenaspy-0.6.5.tar.gz
.
File metadata
- Download URL: truenaspy-0.6.5.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 | 255ba2ed9ffcee2a20ab78e5083d17f09446b92f6c06c3e8b2f88e3baab084a2 |
|
MD5 | 38a36799c587a86fcac620be61c2868e |
|
BLAKE2b-256 | 9251b27d09463ab1f0d436eff83a7a098e4fceb3d5e545d23c0c98f5aeadb76b |
File details
Details for the file truenaspy-0.6.5-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.6.5-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 | 01950fb1fa6c688ff1c8a823ed5952ac88b8c6d32212417191bcd3b98096a423 |
|
MD5 | a661944286eafddd60157fd7fb643d05 |
|
BLAKE2b-256 | c8455727600150398f76e511309ba551ef969a37e42817b66456c90b4dcf8bfc |