Skip to main content

nfsnapi

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

nfsnapi supports Python 2.7 and later, and Python 3.2 and later. For general usage there are no prerequisites other than a supported version of Python, however to test nfsnapi with Python 3.2 and earlier versions the mock library is required.

Synopsis

>>> import nfsnapi
>>> # Replace USERNAME, API_KEY, and so on with actual values.
>>> nfsnapi.run_request("USERNAME", "API_KEY",
... "/account/ACCOUNT_NUMBER/balance")
u'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 if grabbing the source distribution. 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), and the mock library if testing with Python 3.2 or earlier.

There’s support for Tox, which will run the tests on all available and supported versions of Python.

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.

Metadata

Release files for nfsnapi 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nfsnapi 0.3.0
File Size Uploaded Provenance Actions
nfsnapi-0.3.0.tar.gz 5.6 kB Without provenance Details for nfsnapi-0.3.0.tar.gz

Release files / nfsnapi-0.3.0.tar.gz

Download URL nfsnapi-0.3.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ec7a6b478b13672f3b6a8ff1e5c42b5d3844e01746c62c62ed1540fa741240f5
BLAKE2b-256 checksum
How to use checksums
5cbbd090730955432cbec67b58d5834412c235079dbdd8165352c135e3f23efa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nfsnapi 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page