i-doit API Client for Python. Port of the original PHP i-doit API Client.
- Free software: GNU General Public License v3
- Documentation: https://idoit-api.readthedocs.io.
- Make requests to the i-doit API with a method name and parameters
- Requests are parsed, checked and returned as a dictionary
- Make raw requests to the i-doit API
- TODO: Read/create/upsert i-doit Objects, Object Types, Object Categories and Object Category Attributes
Object | Method | Implemented | Tests implemented |
|--------|--------|-------------|-------------------| | CMDBObjectType | read | Yes | Yes |
Install idoit_api_client using pip from PyPI (recommended for most users):
$ pip install idoit_api_client
Install idoit_api_client using pip from GitHub:
$ pip install git+https://github.com/tschreiner/idoit_api.git@main
Install idoit_api_client from source:
$ git clone $ cd idoit_api_client $ python setup.py install
Install idoit_api_client from source (in development mode):
$ git clone https://github.com/tschreiner/idoit_api.git $ cd idoit_api_client $ python setup.py develop
Simple usage example:
from idoit_api_client import Constants, API
config = {
Constants.URL: 'https://demo.i-doit.com/src/jsonrpc.php',
Constants.KEY: 'c1ia5q',
Constants.USERNAME: 'admin',
Constants.PASSWORD: 'admin'
}
api = API(config)
api.login()
result = api.request('cmdb.category.read', {
'objID': 1,
'category': 'C__CATG__GLOBAL'
})
print(result)
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.