Skip to main content

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

Project description

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.

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

nfsnapi-0.2.0.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file nfsnapi-0.2.0.tar.gz.

File metadata

  • Download URL: nfsnapi-0.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nfsnapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f5375e8771879241aa307be467f8e33992273fa6f27426945684dc392578e7c2
MD5 a32b3ca5149498b46c1cb719bb49f51e
BLAKE2b-256 286ae7826a738c8bef1374cea22277d3bcad877794266edbcb12cab5a6f52eed

See more details on using hashes here.

Supported by

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