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
Metadata
Release files for pyidoit 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyidoit-0.0.2.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyidoit-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / pyidoit-0.0.2.tar.gz
| Download URL | pyidoit-0.0.2.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc3989ad873f209c4bc2bb3aec24167b2991adaab611a5639caa32210d3b1e27
|
|
BLAKE2b-256 checksum How to use checksums |
b4c6edc7ddea5fb5794282ee7e5455f2cd8e9e99eea04cf8536c059b25fb7638
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pyidoit-0.0.2-py3-none-any.whl
| Download URL | pyidoit-0.0.2-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ade3e30409ce366470b71be9b1f8583129007338ed9dacab93cdb96c6d86be6b
|
|
BLAKE2b-256 checksum How to use checksums |
079adbcb04865b21ffefdfaa0a74321fdd12a7e511e1099b0ed3810056d53e47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|