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)
Release files for pynano 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pynano-1.0.1.tar.gz | 7.8 kB | Details |
Release files / pynano-1.0.1.tar.gz
| Download URL | pynano-1.0.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03faf5e29d7e477eef5d1a2745f992662bd0ef7aa3b6c5bd0469c0e6f6e32be4
|
|
BLAKE2b-256 checksum How to use checksums |
26374379cfed03e8ebbd034f58e180b29d92efc2f1554f3159e6a570935521c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |