Skip to content

adzhurinskij/phpipam-client

Repository files navigation

phpipam-client

Pyup Status Travis (.org) PHPIPAM Python RESP API Client. It supports Python 2.7 and 3.4+.

Example

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,
)

Other API clients