yggdrasilctl


Nameyggdrasilctl JSON
Version 0.0.1a4 PyPI version JSON
download
home_pagehttps://github.com/jorektheglitch/yggdrasilctl
SummaryWrapper for Yggdrasil Admin API
upload_time2020-11-22 03:42:00
maintainer
docs_urlNone
authorjorektheglitch
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            This library provides a wrapper for Yggdrasil Admin API.

# Installation
##   for Linux
```pip3 install yggdrasilctl```
##   for Windows
```pip install yggdrasilctl```

# Usage
##   sync version
```python3
from pprint import pprint
from yggdrasilctl.sync import AdminAPI, APIError

api = AdminAPI() #unless otherwise specified it will connects to localhost:9001
try:
    info = api.getSelf()
except APIError as e:
    print(e)
else:
    pprint(info)
```
##   async version
```python3
import asyncio
from pprint import pprint
from yggdrasilctl import AdminAPI, APIError

async def main():
    api = AdminAPI()
    try:
        info = await api.getSelf()
    except APIError as e:
        print(e)
    else:
        pprint(info)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

# Detailed description of API methods
For details see [documentation](https://yggdrasil-network.github.io/admin.html) of Admin API.

# Links
[Yggdrasil](https://yggdrasil-network.github.io/) project

This library on [PyPI](https://pypi.org/project/yggdrasilctl/)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jorektheglitch/yggdrasilctl",
    "name": "yggdrasilctl",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "jorektheglitch",
    "author_email": "jorektheglitch@yandex.ru",
    "download_url": "https://files.pythonhosted.org/packages/19/1a/a211d205d1e1be3a646a8f75aaedcc9e6d04ef83e2612d282ac6a72c5bb8/yggdrasilctl-0.0.1a4.tar.gz",
    "platform": "",
    "description": "This library provides a wrapper for Yggdrasil Admin API.\n\n# Installation\n##   for Linux\n```pip3 install yggdrasilctl```\n##   for Windows\n```pip install yggdrasilctl```\n\n# Usage\n##   sync version\n```python3\nfrom pprint import pprint\nfrom yggdrasilctl.sync import AdminAPI, APIError\n\napi = AdminAPI() #unless otherwise specified it will connects to localhost:9001\ntry:\n    info = api.getSelf()\nexcept APIError as e:\n    print(e)\nelse:\n    pprint(info)\n```\n##   async version\n```python3\nimport asyncio\nfrom pprint import pprint\nfrom yggdrasilctl import AdminAPI, APIError\n\nasync def main():\n    api = AdminAPI()\n    try:\n        info = await api.getSelf()\n    except APIError as e:\n        print(e)\n    else:\n        pprint(info)\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())\n```\n\n# Detailed description of API methods\nFor details see [documentation](https://yggdrasil-network.github.io/admin.html) of Admin API.\n\n# Links\n[Yggdrasil](https://yggdrasil-network.github.io/) project\n\nThis library on [PyPI](https://pypi.org/project/yggdrasilctl/)\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Wrapper for Yggdrasil Admin API",
    "version": "0.0.1a4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "f38781b4f2c426019202ba15120d5b9e",
                "sha256": "f86cc8ecf819e360463a8d8773e770648900a2085840050966a4597e3d2445c2"
            },
            "downloads": -1,
            "filename": "yggdrasilctl-0.0.1a4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f38781b4f2c426019202ba15120d5b9e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 18704,
            "upload_time": "2020-11-22T03:41:59",
            "upload_time_iso_8601": "2020-11-22T03:41:59.815777Z",
            "url": "https://files.pythonhosted.org/packages/7d/b9/99ea6863397e3bdd9e95111cf7d8e527fe0f0b1d5c651eccddd25ee3fa17/yggdrasilctl-0.0.1a4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "6a2d940b024f2b42e557b59c1bdcc726",
                "sha256": "e7d13942c6e21d5d82f3907988c2b3fa3266a9695493d8b8c6533b92f4b4dc11"
            },
            "downloads": -1,
            "filename": "yggdrasilctl-0.0.1a4.tar.gz",
            "has_sig": false,
            "md5_digest": "6a2d940b024f2b42e557b59c1bdcc726",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6515,
            "upload_time": "2020-11-22T03:42:00",
            "upload_time_iso_8601": "2020-11-22T03:42:00.868903Z",
            "url": "https://files.pythonhosted.org/packages/19/1a/a211d205d1e1be3a646a8f75aaedcc9e6d04ef83e2612d282ac6a72c5bb8/yggdrasilctl-0.0.1a4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-11-22 03:42:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "jorektheglitch",
    "error": "Could not fetch GitHub repository",
    "lcname": "yggdrasilctl"
}
        
Elapsed time: 0.21761s