Skip to main content

A simple Python library for the NaNoWriMo API

Project description

Documentation Status Documentation Status Build Status Code Coverage

National Novel Writing Month is an annual event in which the goal is generally to write 50,000 words of the first draft of a novel in the 30 days of November.

Naturally, the hosts have graciously supplied a website with various means of updating and tracking one’s progress through this adventure, including an API to allow users to create their own progress trackers.

This is where pynano comes into play, providing a simple, Pythonic way to acess this API and leverage its data in your own projects:

>>> from pynano import User
>>> kromey = User('kromey')
>>> kromey.wordcount
64133
>>> kromey.name
'Kromey'

Objects are provided to access data about Users, Regions, and the Site itself; each also provides access to daily data to track progress through the month:

>>> kromey.history[14].date # The sequence is 0-indexed, so index 14 is day 15
'2015-11-15'
>>> kromey.history[14].wordcount
10499

Requirements

pynano is supported on Python versions 2.7, 3.5, and 3.6, with these additional packages:

  • requests (version 2.9 or later)

  • xmltodict (version 0.9 or later)

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

pynano-1.0.0.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file pynano-1.0.0.tar.gz.

File metadata

  • Download URL: pynano-1.0.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pynano-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1aeaff0dedd1f19d46c2a80f6b390ec20e701e6369e1f6a6e7089acd4dbd762a
MD5 151ed440dfc7f9a2033b8ec6a3fb389f
BLAKE2b-256 fd66971153c9e6a17f6674e93fed4f7afcb5adcbc289ca31ef9a52d902c6f70f

See more details on using hashes here.

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