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.7.tar.gz
(28.2 kB
view details)
Built Distribution
truenaspy-0.6.7-py3-none-any.whl
(25.3 kB
view details)
File details
Details for the file truenaspy-0.6.7.tar.gz
.
File metadata
- Download URL: truenaspy-0.6.7.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8a5eaed0a5b169839dab8ae1e52fe9d784869b5139fd06292a6571e2d9d2fa3 |
|
MD5 | 17196b13764ef6204c6e6a5ff48f95da |
|
BLAKE2b-256 | be7f90a760fc0549ba744e8bca4dea35dad9f92629e020b43766c0c1f30cefb1 |
File details
Details for the file truenaspy-0.6.7-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.6.7-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.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230a353cad63bae5df65d24028c190e0ec4d6207eed784f978b4e4f611652cc7 |
|
MD5 | 59d3754e4671d22df3e6362969ec686f |
|
BLAKE2b-256 | d2d0d2078f8ba61e9b8c95b6a6e52b175443d29a82e2d56bd704ebc2be770cd5 |