Skip to main content

tinysumma 0.1.0: summarize tinyletter statistics

Python package providing a friendly command-line interface to summarize tinyletter email newsletter statistics.

Built on top of tinyapi, which wraps around TinyLetter’s API, which is publicly accessible but undocumented—so, no guarantees.

Usage

tinysumma runs as a command-line script. Sample usage:

>>tinysumma --help
usage: tinysumma [-h] [-l] [-n NUMBEREDISSUE] [-u LETTERNAME]
                                 [--datadir DATADIR]

optional arguments:
  -h, --help            show this help message and exit
  -l, --latestissue     print stats latest issue
  -n NUMBEREDISSUE, --numberedissue NUMBEREDISSUE
                                                print stats for numbered issue (first=1)
  -u LETTERNAME, --updateletter LETTERNAME
                                                download latest stats to *.csv
  --datadir DATADIR     data directory (if not current dir)

>>tinysumma --updateletter mytinyletter
Password:

>>tinysumma --latestissue
Your issue, 'Issue Title', was opened by 42 unique subscribers.
That's a 75.0% open rate!
The most popular url was https://github.com/awbirdsall/tinysumma,
with 17 total clicks.
A total of 9 urls were clicked.

Every time that tinysumma --updateletter mytinyletter is run, it writes three csv files: messages.csv, urls.csv and subscribers.csv (default: current directory, unless other path passed in with --datadir flag). The command overwrites existing files with those names, without requiring confirmation! All summary data reported by other commands are taken from those files.

The csv files provide a lot more information than what tinysumma summarizes! A more in-depth analysis can always be performed outside of tinysumma (e.g., starting with pandas.read_csv()).

Installation

Install using pip.

Install from PyPI:

pip install tinysumma

Install most recent Github commit (stability not guaranteed):

pip install git+https://github.com/awbirdsall/tinysumma

Dependencies

Tested on Python 3.5.

Requires tinyapi and pandas (installation of which should be automatically handled by pip).

Running the tests requires pytest.

Testing

Tests are located in the tests/ subfolder and can be run using py.test.

Development

Posting issues or pull requests to the github page is welcome!

Metadata

Release files for tinysumma 0.1.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 tinysumma 0.1.0
File Size Uploaded Provenance Actions
tinysumma-0.1.0.tar.gz 5.6 kB Without provenance Details for tinysumma-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinysumma 0.1.0
File Interpreter ABI Platform Actions
tinysumma-0.1.0-py3-none-any.whl Python 3 none any Details for tinysumma-0.1.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / tinysumma-0.1.0.tar.gz

Download URL tinysumma-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fa3a183cb2c25d243f921ab308dd6886c933dace3f6c4f5c7da2d2d4f8859990
BLAKE2b-256 checksum
How to use checksums
8b6fbcb687f29e721678ad1e7098b0f271b1986b1bd1b4ceb263294f697873ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tinysumma-0.1.0-py3-none-any.whl

Download URL tinysumma-0.1.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62a75a64958e1b5815b4dcf30ceb96e99729f070ff3203cc0554580eaa21f374
BLAKE2b-256 checksum
How to use checksums
033f2a58dd3363efbc54bd5715b808e044f60a6aeaf42990b5e42a92cf8b1bc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tinysumma 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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