Skip to main content

Keyboard Heatmap

This project helps to create heatmap of keys in keyboard for some given text. Supports Nepali नेपाली keyboard layout, the popular बकमान(bakamana) for now and the usual qwerty layout. Other layouts will be added in due course.

Installation

Clone the repository and run setup.

git clone https://github.com/pranphy/KeyboardHeatmap
cd KeyboardHeatmap
python3 setup.py install

You will find an executable kbhmap in your path.

Usage

kbhmap --help shows the following

Usage: kbhmap [OPTIONS]

  a tool to generate the keyboard heatmap. It reads the text from  the input
  file and generates the heatmap. The heatmap can be configured.  The output
  heatmap image is saved in a file with name passed  as the `output`
  parameter. The smoothness of the heatmap can be controlld with `-s
  --sigma` option. The resolution of th output image can be set with `-d
  --dpi` parameter.

Options:
  -i, --input TEXT                input file name
  -o, --output TEXT               output file name
  -l, --layout [qwerty|bakamana]  keyboard layout to use
  -s, --sigma FLOAT               sigma value to smoothen heatmap
  -c, --cmap TEXT                 colormap to use
  -d, --dpi INTEGER               dpi of resulting image
  --help                          Show this message and exit.

Example

For example if you want to see the heatmap of keys in a file named test.txt and output the heatmap image as heatmap_test.png you will do the following

kbhmap -i test.txt -o heatmap_test.png

You can configure other options. Cmap takes any valid matplotlib color map. passing --dpi=100 sets the dpi of output image to 100. The smoothing --sigma parameter is to smooth out the heatmap. Since the keys have precise location they will have high density at the key location and sharp fall at th key edge. If sigma is supplied it applies gaussian smoothing to the heatmap to make it smoother and nicer.

See notebook for usage as a library.

Outputs

Example heatmap for QWERTY An example heatmap

Example heatmap for बकमान An example heatmap

Metadata

Release files for kbhmap 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kbhmap 0.5.4
File Size Uploaded Provenance Actions
kbhmap-0.5.4.tar.gz 5.5 kB Without provenance Details for kbhmap-0.5.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kbhmap 0.5.4
File Interpreter ABI Platform Actions
kbhmap-0.5.4-py3.7.egg Legacy Egg format - - Details for kbhmap-0.5.4-py3.7.egg

Total release size: 1.0 MB

Release files / kbhmap-0.5.4.tar.gz

Download URL kbhmap-0.5.4.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
394a6249d7ac180dc772a7315e109491962da3765aaaaa99bab9874737f51deb
BLAKE2b-256 checksum
How to use checksums
c6708dc1c4c38868307de2a4b461c43271647cf202e98761170b1581a2d89559
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / kbhmap-0.5.4-py3.7.egg

Download URL kbhmap-0.5.4-py3.7.egg
Size 1.0 MB
Tags Egg
SHA-256 checksum
How to use checksums
3b0ab96567eb64df57e8ac3aa2a399b1c9fcf35416a4e54ba9759f6d65d40b58
BLAKE2b-256 checksum
How to use checksums
dae29a04749662716206bf2c36ecb43dfe325ab10b94b8f97d9cb560a05eb11d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Security for kbhmap 0.5.4

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.

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