# VentraIP VIP Client
A Python 3.6 compatible library to manage DNS entries registered with VentraIP.
## Installation
### Production
```bash
pip install ventraip-vip-client
```
### Development
```bash
git clone git@github.com:cmbrad/ventraip-vip-client.git
pip install -e .
```
## Usage
### CLI
```bash
# View help for the CLI
ventraip --help
# List all domains
ventraip -u myusername -p mypassword list
# Add a domain
ventraip -u myusername -p mypassword add myhost example.com 127.0.0.1 3600 A
# Delete a domain
ventraip -u myusername -p mypassword rm myhost example.com A
```
### Library
```python
from ventraip import VipClient
vip_client = VipClient()
vip_client.login(email='your email/username', password='your password')
# Fetch all domains associated with the account
domains = vip_client.domains()
for domain in domains:
# Fetch all records associated with the domain
dns_records = vip_client.dns_records(domain.internal_id)
# For each record, delete it (DANGEROUS!!!)
for dns_record in dns_records:
vip_client.remove_dns_record(domain_id=domain.internal_id, dns_record_id=dns_record.internal_id)
```
## Deploying
```bash
rm -Recurse -Force dist
python setup.py sdist bdist_wheel
twine upload dist/*
```
## Disclaimer
I have no relation to the VentraIP company and any use of this software is not endorsed by them in any way.
A Python 3.6 compatible library to manage DNS entries registered with VentraIP.
## Installation
### Production
```bash
pip install ventraip-vip-client
```
### Development
```bash
git clone git@github.com:cmbrad/ventraip-vip-client.git
pip install -e .
```
## Usage
### CLI
```bash
# View help for the CLI
ventraip --help
# List all domains
ventraip -u myusername -p mypassword list
# Add a domain
ventraip -u myusername -p mypassword add myhost example.com 127.0.0.1 3600 A
# Delete a domain
ventraip -u myusername -p mypassword rm myhost example.com A
```
### Library
```python
from ventraip import VipClient
vip_client = VipClient()
vip_client.login(email='your email/username', password='your password')
# Fetch all domains associated with the account
domains = vip_client.domains()
for domain in domains:
# Fetch all records associated with the domain
dns_records = vip_client.dns_records(domain.internal_id)
# For each record, delete it (DANGEROUS!!!)
for dns_record in dns_records:
vip_client.remove_dns_record(domain_id=domain.internal_id, dns_record_id=dns_record.internal_id)
```
## Deploying
```bash
rm -Recurse -Force dist
python setup.py sdist bdist_wheel
twine upload dist/*
```
## Disclaimer
I have no relation to the VentraIP company and any use of this software is not endorsed by them in any way.
Release files for ventraip-vip-client 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ventraip-vip-client-0.4.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ventraip_vip_client-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / ventraip-vip-client-0.4.0.tar.gz
| Download URL | ventraip-vip-client-0.4.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95fa86474d2243db89f6e9a94f9dcb65c9c3dbaf25486a6ca6042b807c23ba86
|
|
BLAKE2b-256 checksum How to use checksums |
ad8227365c6d94f124452dabdb3c75dbe69ac83fc19feccad375de7b474677f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ventraip_vip_client-0.4.0-py3-none-any.whl
| Download URL | ventraip_vip_client-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a964d233e326524e6a1a96335c40387449895fd507faeaec7d107fd694a6ade
|
|
BLAKE2b-256 checksum How to use checksums |
ffff0b0d5484abec4112629c8ac4206f97791a4560f449aa53d0dab348e1603c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |