pyidoit


Namepyidoit JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/Zaker237/pyidoit
SummaryAn Simple python i-doit Client.
upload_time2023-09-22 14:54:01
maintainer
docs_urlNone
authorAlex Mboutchouang
requires_python>=3.7
license
keywords
VCS
bugtrack_url
requirements requests pydantic
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyidoit
A Simple and Easy-to-use python client for  [i-doit](https://www.i-doit.com/)'s JSON-RPC API

## Installation

```console
$ pip install pyidoit
```

## Example

* Create a file python file(`main.py`) with:

```Python
from pyidoit import IDoitClient

PYIDOIT_HOST = "http://localhost/idoit-22/src/jsonrpc.php"
PYIDOIT_API_KEY = "XXXXX-XXXXX-XXX"

def main():
    client = IDoitClient(
        host=PYIDOIT_HOST,
        apikey=PYIDOIT_API_KEY,
        username="",
        password="",
    )

    data = client.cmdb_objects_read()
    print(data)

if __name__ == "__main__":
    main()
```

Then run the file

```console
$ python main.py
```


## CONTRIBUTION GUIDE LINES

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Zaker237/pyidoit",
    "name": "pyidoit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Alex Mboutchouang",
    "author_email": "Alex Mboutchouang <mboutchouang@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/b4/c6/edc7ddea5fb5794282ee7e5455f2cd8e9e99eea04cf8536c059b25fb7638/pyidoit-0.0.2.tar.gz",
    "platform": null,
    "description": "# pyidoit\r\nA Simple and Easy-to-use python client for  [i-doit](https://www.i-doit.com/)'s JSON-RPC API\r\n\r\n## Installation\r\n\r\n```console\r\n$ pip install pyidoit\r\n```\r\n\r\n## Example\r\n\r\n* Create a file python file(`main.py`) with:\r\n\r\n```Python\r\nfrom pyidoit import IDoitClient\r\n\r\nPYIDOIT_HOST = \"http://localhost/idoit-22/src/jsonrpc.php\"\r\nPYIDOIT_API_KEY = \"XXXXX-XXXXX-XXX\"\r\n\r\ndef main():\r\n    client = IDoitClient(\r\n        host=PYIDOIT_HOST,\r\n        apikey=PYIDOIT_API_KEY,\r\n        username=\"\",\r\n        password=\"\",\r\n    )\r\n\r\n    data = client.cmdb_objects_read()\r\n    print(data)\r\n\r\nif __name__ == \"__main__\":\r\n    main()\r\n```\r\n\r\nThen run the file\r\n\r\n```console\r\n$ python main.py\r\n```\r\n\r\n\r\n## CONTRIBUTION GUIDE LINES\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "An Simple python i-doit Client.",
    "version": "0.0.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/Zaker237/pyidoit/issues",
        "Changelog": "https://github.com/Zaker237/pyidoit/blob/master/CHANGELOG.md",
        "Download": "https://github.com/Zaker237/pyidoit/archive/v0.0.1.tar.gz",
        "Homepage": "https://github.com/Zaker237/pyidoit",
        "Source": "https://github.com/Zaker237/pyidoit"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "079adbcb04865b21ffefdfaa0a74321fdd12a7e511e1099b0ed3810056d53e47",
                "md5": "6c584aff0d3449a5c1a3095824734aa6",
                "sha256": "ade3e30409ce366470b71be9b1f8583129007338ed9dacab93cdb96c6d86be6b"
            },
            "downloads": -1,
            "filename": "pyidoit-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6c584aff0d3449a5c1a3095824734aa6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 9014,
            "upload_time": "2023-09-22T14:53:59",
            "upload_time_iso_8601": "2023-09-22T14:53:59.786619Z",
            "url": "https://files.pythonhosted.org/packages/07/9a/dbcb04865b21ffefdfaa0a74321fdd12a7e511e1099b0ed3810056d53e47/pyidoit-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b4c6edc7ddea5fb5794282ee7e5455f2cd8e9e99eea04cf8536c059b25fb7638",
                "md5": "a3e86862ae3ba77c509c1e8d4be94870",
                "sha256": "dc3989ad873f209c4bc2bb3aec24167b2991adaab611a5639caa32210d3b1e27"
            },
            "downloads": -1,
            "filename": "pyidoit-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "a3e86862ae3ba77c509c1e8d4be94870",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9639,
            "upload_time": "2023-09-22T14:54:01",
            "upload_time_iso_8601": "2023-09-22T14:54:01.501453Z",
            "url": "https://files.pythonhosted.org/packages/b4/c6/edc7ddea5fb5794282ee7e5455f2cd8e9e99eea04cf8536c059b25fb7638/pyidoit-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-22 14:54:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Zaker237",
    "github_project": "pyidoit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.28.1"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "==",
                    "1.10.7"
                ]
            ]
        }
    ],
    "lcname": "pyidoit"
}
        
Elapsed time: 0.12384s