photo-stats

statistics processor for the terminal
git clone https://git.clttr.info/photo-stats.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit ac008c8ac62981371bf64c17fc87f3daf6a48dc6
parent 37e472fc3a5e80a3b98742e51e50ce33ac505a74
Author: René Wagner <rwagner@rw-net.de>
Date:   Sat, 12 Sep 2020 20:06:45 +0200

update example output with graph

Diffstat:
MREADME.md | 59++++++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 42 insertions(+), 17 deletions(-)

diff --git a/README.md b/README.md @@ -39,24 +39,49 @@ You can add different folders one by another to the database, the import will ta After you've added some data, you can query different statistics which might be interesting. There are no predefined stats, instead you have the option to adjust the output to your needs using the different params. ### example output +The output will be shown as a bar graph when you select only one output column: ``` -Querying database ~/photos.db with 82 entries... - -.-----------------+-------+---------. -| model | count | percent | -+-----------------+-------+---------+ -| SM-A320FL | 31 | 37.8% | -| Nokia 2.2 | 18 | 22.0% | -| XF10 | 15 | 18.3% | -| - | 9 | 11.0% | -| STH100-2 | 3 | 3.7% | -| iPhone SE | 1 | 1.2% | -| PENTAX KP | 1 | 1.2% | -| PENTAX K-5 II s | 1 | 1.2% | -| PENTAX K-3 II | 1 | 1.2% | -| PENTAX K-01 | 1 | 1.2% | -| GR II | 1 | 1.2% | -'-----------------+-------+---------' +$ ./phosta -s model -f maker=ricoh -o model +Querying database ~/photo_stats.db with 29399 entries... + +Applied filters: + - *maker* LIKE **ricoh** + +A total of **5090 images** matched your criteria. + + RICOH WG-4 | | 1.1% (56) + PENTAX MX-1 | ** | 4.9% (251) + PENTAX KP | ********* | 19.7% (1005) + PENTAX K-S2 | ************** | 29.5% (1502) + PENTAX K-S1 | ********** | 21.6% (1098) + PENTAX K-3 II | ******** | 17.0% (863) + GR II | * | 2.2% (114) + Caplio R7 | * | 3.9% (201) + +``` + +or as a table when you choose more then one field: +``` +Querying database ~/photo_stats.db with 29399 entries... + +Applied filters: + - *maker* LIKE **ricoh** + +A total of **5090 images** matched your criteria. + +.-----------------------------+---------------+-------+---------. +| maker | model | count | percent | ++-----------------------------+---------------+-------+---------+ +| RICOH IMAGING COMPANY, LTD. | RICOH WG-4 | 56 | 1.1% | +| PENTAX RICOH IMAGING | PENTAX MX-1 | 251 | 4.9% | +| RICOH | PENTAX KP | 52 | 1.0% | +| RICOH IMAGING COMPANY, LTD. | PENTAX KP | 953 | 18.7% | +| RICOH IMAGING COMPANY, LTD. | PENTAX K-S2 | 1502 | 29.5% | +| RICOH IMAGING COMPANY, LTD. | PENTAX K-S1 | 1098 | 21.6% | +| RICOH IMAGING COMPANY, LTD. | PENTAX K-3 II | 863 | 17.0% | +| RICOH IMAGING COMPANY, LTD. | GR II | 114 | 2.2% | +| RICOH | Caplio R7 | 201 | 3.9% | +'-----------------------------+---------------+-------+---------' ``` ## requirements