GithubHelp home page GithubHelp logo

whalesalad / verisign-namestudio Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 5 KB

A very basic API for the Verisign NameSuggestion API

Home Page: https://pypi.org/project/namestudio/

License: MIT License

Makefile 3.05% Python 96.95%
verisign namestudio python requests domains

verisign-namestudio's Introduction

Verisign NameStudio API

This is a very barebones Python API for interacting with Verisign's NameStudio API.

At the moment the only endpoint implemented here is the bulk-check call to check domain availability.

Basic Use

>>> from namestudio import NameStudioAPI
>>> ns = NameStudioAPI(api_key="****")
>>> ns.bulk_check(['whalesalad.com', 'google.com'])
([{'name': 'whalesalad.com', 'availability': 'registered'}, {'name': 'google.com', 'availability': 'registered'}], <Response [200]>)

A tuple of (results, response) is returned where the response is the raw Requests response object.

You can use unpacking or destructuring to get just what you want:

>>> results, response = ns.bulk_check(['whalesalad.com', 'google.com'])
>>> import pprint
>>> pprint.pprint(results)
[{'availability': 'registered', 'name': 'whalesalad.com'},
 {'availability': 'registered', 'name': 'google.com'}

TODO

This was ripped out of an existing project to get re-used in a sibling project. It was not designed from the ground up for open source release, so ther are quite a few things missing.

  • Tests
  • Additional API methods
  • An improved design for exception handling

verisign-namestudio's People

Contributors

whalesalad avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.