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/')

# 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.3.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

phpipam_client-0.3.0-py2.py3-none-any.whl (18.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for phpipam-client-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1e040c3c52d0c7f1e99b823e9160801b91fe05a6a05ede7df6b94d80eb22cac1
MD5 86fe9e1ccf5f5d57aa9a1ff62f4f71bc
BLAKE2b-256 a255f00e01447dc2abcadc2479130b691432ead53b916cf98b842197c8860e33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phpipam_client-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.6.6 Darwin/18.7.0

File hashes

Hashes for phpipam_client-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 657168d51c347fe337b40ed5b5376857b9dbd52d7d07b85f75a637194bb7a6da
MD5 54306cdb1808ff8cee81b73963bf2ab2
BLAKE2b-256 b8c26a938c5543d1707a8921a2f9ac8f1e3119dfa61573f5cd9f530d73685315

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