Skip to main content

An Simple python i-doit Client.

Project description

pyidoit

A Simple and Easy-to-use python client for i-doit's JSON-RPC API

Installation

$ pip install pyidoit

Example

  • Create a file python file(main.py) with:
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

$ python main.py

CONTRIBUTION GUIDE LINES

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyidoit-0.0.2.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

pyidoit-0.0.2-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page