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.4.tar.gz
(23.9 kB
view details)
Built Distribution
truenaspy-0.5.4-py3-none-any.whl
(24.5 kB
view details)
File details
Details for the file truenaspy-0.5.4.tar.gz
.
File metadata
- Download URL: truenaspy-0.5.4.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 | 82879afe7fbc07ae9b3a0df5212da28d0811e595fe0a69ebc14fbd6d4ea11db4 |
|
MD5 | 3a4a9c9e3dbe9d84e58a479f536f12ce |
|
BLAKE2b-256 | 125ffa932c49a7ed7f1e826a5b439b96193805db3a803035c996a608652adb4e |
File details
Details for the file truenaspy-0.5.4-py3-none-any.whl
.
File metadata
- Download URL: truenaspy-0.5.4-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 | e72c203089fbbed8ac4a04a66352fb4b2e94a7d19b7cfd079e112f53ff810517 |
|
MD5 | 730ce7314f592a91c65d7791b5ff38d7 |
|
BLAKE2b-256 | d1d30dd90fa9f705127bd6c9c977901ac01493d8d2972c7de6fd1d584b4b0b05 |