skip to navigation
skip to content

Not Logged In

nfsnapi 0.2.0

Stuff to make working with the NearlyFreeSpeech.NET API easier.

A simple Python package with a couple of functions (and an exception class) that make working with the NearlyFreeSpeech.NET API easier.

Synopsis

>>> import nfsnapi
>>> # Replace USERNAME, API_KEY, and so on with actual values.
>>> nfsnapi.run_request("USERNAME", "API_KEY",
... "/account/ACCOUNT_NUMBER/balance")
'10.56'
>>> nfsnapi.run_request("USERNAME", "API_KEY",
... "/dns/DOMAIN/listRRs", "type=A")
(A bunch of JSON not shown.)
>>> # And so on...

Installation

The usual python setup.py install dance will install nfsnapi. Alternatively, nfsnapi is available from PyPI via your Python package manager of choice.

Documentation and Testing

The nfsnapi module is heavily documented. Running nfnsapi-tests.py will, funnily enough, run some tests; the tests require a configuration file with API credentials and what-not, see nfnsapi-tests.py's docstring for more information.

Licence

nfsnapi was written by Damien Dart, <damiendart@pobox.com>. This is free and unencumbered software released into the public domain. For more information, please refer to the accompanying "UNLICENCE" file.

 
File Type Py Version Uploaded on Size
nfsnapi-0.2.0.tar.gz (md5, pgp) Source 2013-12-29 4KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 41 downloads in the last week
  • 258 downloads in the last month