Skip to main content

clipunch - a CLI tool to create punchard visualizations.

clipunch consumes data from stdin. It has to be comma-separated pairs of dates with frequencies. For example, piping the following data to clipunch creates a punchard visualization for the complete year 2022 printed to the terminal.

cat << EOF | clipunch
2022-10-25,3
2022-11-07,3
2022-11-08,1
2022-11-09,3
2022-11-28,1
2022-12-04,7
2022-12-05,1
2022-12-06,1
2022-12-07,5
2022-12-08,2
2022-12-14,21
EOF

In case data spans more than a year, multiple punchcard visualizations -one per year- are created in chronological order.

Note, the tools assumes that provided dates are unique. If multiple data values for a single date are given, only the last one is visualized.

Installation

pip install clipunch

Usage

clipunch [--html]

Options: --html Create punchcard as HTML file, which is open in browser.

Examples:

To plot the commit activity to the Spring Framework, clone the repository, create commit frequencies per day, and pip it to clipunch.

git clone https://github.com/spring-projects/spring-framework.git
git -C ./spring-framework/ log --date=short --pretty=format:%ad | \
    sort | uniq -c | awk '{print $2","$1}' | \
    clipunch --html

The output on the terminal will look similar to the following.

git -C ./spring-framework/ log --author "Juergen Hoeller" --date=short --pretty=format:%ad | \
    sort | uniq -c | awk '{print $2","$1}' | \
    clipunch --html

Metadata

Release files for clipunch 1.0.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 clipunch 1.0.0
File Size Uploaded Provenance Actions
clipunch-1.0.0.tar.gz 17.3 kB Without provenance Details for clipunch-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 35.3 kB

Release files / clipunch-1.0.0.tar.gz

Download URL clipunch-1.0.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0a8093d2d74129777cef1613ea85320d7fe1049ace7ec4d4f9790b0b399785c3
BLAKE2b-256 checksum
How to use checksums
90d2bfea680d41f7eaa518313100e25a2b5a782f66f5551c7f77f4a4e998b502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.6 Linux/5.19.0-76051900-generic

Release files / clipunch-1.0.0-py3-none-any.whl

Download URL clipunch-1.0.0-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6cf110ae52dd4fb5c1c3b9deb0060748f3eba4295580a5b49db7304da128362
BLAKE2b-256 checksum
How to use checksums
1129f4c6b06e93d4d7ca5d9419e131061e5f53d785f09d6f7aa343acdd08f280
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.6 Linux/5.19.0-76051900-generic

Security for clipunch 1.0.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

1.0.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