PHPIPAM Python RESP API Client. It supports Python 2.7 and 3.4+.
Basic usage:
from phpipam_client import PhpIpamClient, PATCH
ipam = PhpIpamClient(
url='https://ipam',
app_id='myapp',
username='mylogin',
password='mypassword',
user_agent='myapiclient', # custom user-agent header
)
# read object
print(ipam.query('/sections/'))
# 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,
)