Summarize tinyletter statistics
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tinysumma-0.1.0.tar.gz.
File metadata
- Download URL: tinysumma-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa3a183cb2c25d243f921ab308dd6886c933dace3f6c4f5c7da2d2d4f8859990
|
|
| MD5 |
7e59b517b2b5f0aed7ec3ed767105f33
|
|
| BLAKE2b-256 |
8b6fbcb687f29e721678ad1e7098b0f271b1986b1bd1b4ceb263294f697873ff
|
File details
Details for the file tinysumma-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tinysumma-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62a75a64958e1b5815b4dcf30ceb96e99729f070ff3203cc0554580eaa21f374
|
|
| MD5 |
1b59006e0482a4589d692d4c153a0a2f
|
|
| BLAKE2b-256 |
033f2a58dd3363efbc54bd5715b808e044f60a6aeaf42990b5e42a92cf8b1bc4
|