truenaspy


Nametruenaspy JSON
Version 0.6.1 PyPI version JSON
download
home_page
SummaryProvides asynchronous authentication and access to Truenas devices
upload_time2023-12-21 13:13:40
maintainer
docs_urlNone
author
requires_python>=3.11.0
licenseGPL-3
keywords async truenas scale core
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Truenaspy

Fetch data from TrueNas

## Install

Use the PIP package manager

```bash
$ pip install truenaspy
```

Or manually download and install the last version from github

```bash
$ git clone https://github.com/cyr-ius/truenaspy.git
$ python setup.py install
```

## Get started

```python
# 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](https://github.com/cyr-ius/truenaspy/blob/master/example.py) for a more complete overview.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "truenaspy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11.0",
    "maintainer_email": "",
    "keywords": "async,truenas,scale,core",
    "author": "",
    "author_email": "Cyr-ius <cyr-ius@ipocus.net>",
    "download_url": "https://files.pythonhosted.org/packages/55/64/74da4593bb97f487a945d3811769559190b5f27d6a2374e9330017bb1ce1/truenaspy-0.6.1.tar.gz",
    "platform": "any",
    "description": "# Truenaspy\n\nFetch data from TrueNas\n\n## Install\n\nUse the PIP package manager\n\n```bash\n$ pip install truenaspy\n```\n\nOr manually download and install the last version from github\n\n```bash\n$ git clone https://github.com/cyr-ius/truenaspy.git\n$ python setup.py install\n```\n\n## Get started\n\n```python\n# Import the truenaspy package.\nfrom truenaspy import TrueNASAPI\n\nTOKEN=\"012345\"\nHOST=\"1.2.3.4:8080\"\n\nasync def main():\n    api = TrueNASAPI(token=TOKEN, host=HOST, use_ssl=False, verify_ssl=False)\n    rslt = await api.async_get_system()\n    print(rlst)\n    await api.async_close()\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())\n```\n\nHave a look at the [example.py](https://github.com/cyr-ius/truenaspy/blob/master/example.py) for a more complete overview.\n",
    "bugtrack_url": null,
    "license": "GPL-3",
    "summary": "Provides asynchronous authentication and access to Truenas devices",
    "version": "0.6.1",
    "project_urls": null,
    "split_keywords": [
        "async",
        "truenas",
        "scale",
        "core"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88cb574f6d18986036fb3e79052cbcf554e3a1bbb4560e7fca137476311822a9",
                "md5": "68d8fafbfb56a078f43be19c4a5e005f",
                "sha256": "5e7e84a32a08d7f2c691a9d18b63c8bab6a303bd79d54ef66ab964fa4c0a9bbe"
            },
            "downloads": -1,
            "filename": "truenaspy-0.6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "68d8fafbfb56a078f43be19c4a5e005f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11.0",
            "size": 24675,
            "upload_time": "2023-12-21T13:13:38",
            "upload_time_iso_8601": "2023-12-21T13:13:38.465445Z",
            "url": "https://files.pythonhosted.org/packages/88/cb/574f6d18986036fb3e79052cbcf554e3a1bbb4560e7fca137476311822a9/truenaspy-0.6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "556474da4593bb97f487a945d3811769559190b5f27d6a2374e9330017bb1ce1",
                "md5": "db1478e837ae6867315ebd36bd2b30c3",
                "sha256": "a4ccb7623463cde36f236243da40ecad73535a02756a4ba3fc0640d2e30269cc"
            },
            "downloads": -1,
            "filename": "truenaspy-0.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "db1478e837ae6867315ebd36bd2b30c3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11.0",
            "size": 24049,
            "upload_time": "2023-12-21T13:13:40",
            "upload_time_iso_8601": "2023-12-21T13:13:40.035595Z",
            "url": "https://files.pythonhosted.org/packages/55/64/74da4593bb97f487a945d3811769559190b5f27d6a2374e9330017bb1ce1/truenaspy-0.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-21 13:13:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "truenaspy"
}
        
Elapsed time: 0.18593s