Giter Site home page Giter Site logo

namecom's Introduction

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

export NAMECOM_NAME=<your namecom account>
export NAMECOM_TOKEN=<your namecom token>

To create a dns record

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

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

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")

DDNS usage

python ddns.py 
    --domain example.org
    --host www
    --username <your namecom account>
    --token <your namecom token>

namecom's People

Contributors

fzlee avatar justid avatar

Watchers

 avatar

Forkers

skandha614

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.