Skip to main content

Python SDK for name.com

Project description

## Python sdk for name.com v4 api


#### Installation
```
pip install namecom --upgrade
```


#### Command line guide

If you do not want to append --name and --token to the command every time, run the following command should do some help
```bash
export NAMECOM_NAME=<your namecom account>
export NAMECOM_TOKEN=<your namecom token>
```


To create a dns record
```bash
namecli create_dns
--domain example.org
--host www
--dns_type A
--answer 127.0.0.1
--name <your namecom account>
--token <your namecom token>
```

To delete a DNS record
```bash
namecli delete_dns
--domain example.org
--host www
--name <your namecom account>
--token <your namecom token>
```


#### SDK development

So far, not all name.com api are supported

Initialization
```python
from namecom import Name
name = Name(name, token)
name.list_records("example.org", page=1, perPage=1000)
name.delete_record("example.org", id_="12345", )
name.create_record("example.org", "www", "A", "127.0.0.1")
```

Project details


Download files

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

Files for namecom, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size namecom-0.2.0-py2.7.egg (9.2 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size namecom-0.2.0.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page