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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file pyidoit-0.0.2.tar.gz
.
File metadata
- Download URL: pyidoit-0.0.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc3989ad873f209c4bc2bb3aec24167b2991adaab611a5639caa32210d3b1e27 |
|
MD5 | a3e86862ae3ba77c509c1e8d4be94870 |
|
BLAKE2b-256 | b4c6edc7ddea5fb5794282ee7e5455f2cd8e9e99eea04cf8536c059b25fb7638 |
File details
Details for the file pyidoit-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyidoit-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ade3e30409ce366470b71be9b1f8583129007338ed9dacab93cdb96c6d86be6b |
|
MD5 | 6c584aff0d3449a5c1a3095824734aa6 |
|
BLAKE2b-256 | 079adbcb04865b21ffefdfaa0a74321fdd12a7e511e1099b0ed3810056d53e47 |