Skip to main content

PHPIPAM Python RESP API Client

Project description

phpipam-client

PyPI PyPI - Python Version Pyup Status Travis (.org)

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phpipam-client-0.4.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

phpipam_client-0.4.0-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file phpipam-client-0.4.0.tar.gz.

File metadata

  • Download URL: phpipam-client-0.4.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.6.6 Darwin/18.7.0

File hashes

Hashes for phpipam-client-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d1012e0afeed8dcdf9cb001f4c4080cac095792ee161726a8fb6e169816c2aab
MD5 82c849aeea23b7b066f81ad93cbf33b5
BLAKE2b-256 af2ce09b12e61a90a3a29e9f694eeeda2a6e0183e2ea1dff989bc09656091726

See more details on using hashes here.

File details

Details for the file phpipam_client-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for phpipam_client-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6a869126a6b96d4ad6a1d0aba9498c564017366f0810ea10001f38519c4b1902
MD5 a3f8e4a9e8bdbebd98d8022723e0182a
BLAKE2b-256 703b4d79e6d42589ffaa614b92ac7abeab36c8dd621bfa070a8fa61f817e462e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page