PHPIPAM Python RESP API Client
Project description
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/')
# 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.1.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file phpipam-client-0.3.1.tar.gz
.
File metadata
- Download URL: phpipam-client-0.3.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.6.6 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a57c79db125005de15ab65766397b1f231b212b217edc0699e1ab6af58954ec8 |
|
MD5 | c765b4004a60bd7503cdcad6dcd777d4 |
|
BLAKE2b-256 | 6928ce3fae2ceeb86b47ddaccba993b879533dda85e8fc869e5dbed5bb6d799b |
File details
Details for the file phpipam_client-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: phpipam_client-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.6.6 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 158bdef2c043217d42b0264dce87adbc824d45be607f994cbfe7ecf7bdedac57 |
|
MD5 | 467a666caefe50c42792d95eecede742 |
|
BLAKE2b-256 | 8e6645dfe3a80df1802501d304059bab2719bfb46465f883a00d2ccbd83aff53 |