phpipam-client
PHPIPAM Python RESP API Client. It supports Python 2.7 and 3.4+.
Installation
pip install phpipam-client
Example
Basic usage:
from phpipam_client import PhpIpamClient, GET, PATCH
ipam = PhpIpamClient(
url='https://ipam',
app_id='myapp',
username='mylogin',
password='mypassword',
user_agent='myapiclient', # custom user-agent header
)
# read object
ipam.get('/sections/')
ipam.get('/sections/', {
'filter_by': 'id',
'filter_value': 2,
})
# create object
ipam.post('/sections/', {
'description': 'example',
})
# update object
ipam.patch('/sections/1/', {
'description': 'example',
})
# delete object
ipam.delete('/sections/1/')
# read object
ipam.query('/sections/', method=GET)
# update object
ipam.query('/sections/1/', method=PATCH, data={
'description': 'example',
})
Use encryption:
ipam = PhpIpamClient(
url='https://ipam',
app_id='myapp',
token='mytoken',
encryption=True,
)
Other API clients
Release files for phpipam-client 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phpipam-client-0.4.0.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| phpipam_client-0.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size:13.8 kB
Release files / phpipam-client-0.4.0.tar.gz
| Download URL | phpipam-client-0.4.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1012e0afeed8dcdf9cb001f4c4080cac095792ee161726a8fb6e169816c2aab
|
|
BLAKE2b-256 checksum How to use checksums |
af2ce09b12e61a90a3a29e9f694eeeda2a6e0183e2ea1dff989bc09656091726
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.3 CPython/3.6.6 Darwin/18.7.0
|
Release files / phpipam_client-0.4.0-py2.py3-none-any.whl
| Download URL | phpipam_client-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6a869126a6b96d4ad6a1d0aba9498c564017366f0810ea10001f38519c4b1902
|
|
BLAKE2b-256 checksum How to use checksums |
703b4d79e6d42589ffaa614b92ac7abeab36c8dd621bfa070a8fa61f817e462e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.3 CPython/3.6.6 Darwin/18.7.0
|