Skip to main content

Python SDK for the NS1 DNS platform

Project description

Info:

A Python SDK for accessing NS1, the Data Driven DNS platform.

https://travis-ci.org/ns1/ns1-python.svg?branch=master https://readthedocs.org/projects/ns1-python/badge/?version=latest

About

This package provides a python SDK for accessing the NS1 DNS platform and includes both a simple NS1 REST API wrapper as well as a higher level interface for managing zones, records, data feeds, and more. It supports synchronous and asynchronous transports.

Both python 2.7 and 3.3 are supported.

Installation

$ pip install ns1-python

Dependencies

None, but supports different transport backends. Currently supported:

  • requests (synchronous, the default if available)

  • urllib (synchronous, the default if requests isn’t available)

  • twisted (asynchronous)

Other transports are easy to add, see transport

Examples

See the examples directory

Documentation

If you don’t yet have an NS1 account, signup here (free)

You’ll need an API Key. To create one, login to the portal and click on the Account button in the top right. Select Settings & Users, then add a new API Key at the bottom.

Tests

Unit tests use pytest (pip install pytest). 2.7 also requires mock to be installed (pip install mock).

Tests should, of course, run and pass under 2.7 and 3.3. We use tox to automate test runs and virtualenv setup, see tox.ini for config.

Contributions

We welcome contributions! Please fork on GitHub and submit a Pull Request.

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

ns1-python-0.12.0.tar.gz (22.7 kB view hashes)

Uploaded Source

Built Distribution

ns1_python-0.12.0-py2.py3-none-any.whl (33.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page