Skip to main content

Hamingjur

Hamingjur is a pure Python terminal library forked from Blessed. It combines portable terminal text and keyboard APIs with Kitty and Silkie graphics, tablet and touch input, gestures, terminal-local ink, typography, HDR, clipboard, notifications, and presentation timing.

Install with pip install hamingjur; use pip install 'hamingjur[images]' for adaptive PIL image drawing. To install a checkout, use pip install .. All code lives in the hamingjur namespace; the package neither provides nor imports blessed. Hamingjur and upstream Blessed can be installed together.

from hamingjur import Terminal

term = Terminal()
print(term.bold('Hello from Hamingjur'))
with term.cbreak():
    cell = term.get_cell_size()
    if cell is not None:
        print(f'Each cell is {cell.width} × {cell.height} physical pixels')

First-class terminal features

  • Text, colors, cursor movement, full-screen applications, Unicode layout, line editing, keyboard, mouse, focus, paste, and resize events.

  • Raster and vector images, packed grayscale and RGB565, animations, image placement, styled vector text, font resources, HDR, wide gamut color, and image-backed pointers.

  • Pen pressure and tilt, simultaneous contacts, tablet pads, gestures, scrolling, haptics, and terminal-local ink through term.tablet, term.ink, and related APIs.

  • Window and cell geometry, size requests, display information, latency control, and frame presentation feedback.

  • Clipboard formats, drag and drop, file-transfer packets, notifications, shell integration, and standard terminal control sequences.

  • Stereo depth and fractional vertical phase for text and graphics, notification return routes, and explicit SSH-agent packet transport.

The feature map describes the APIs, terminal requirements, and which operations use lower-level protocol encoders. Terminal support and user permissions determine which requests are accepted; a sent request does not prove that a terminal acted on it.

Open docs/hamingjur.html for a standalone project guide, working examples, and a searchable API reference generated from the Python source. It works offline. Rebuild it from the checkout with:

python site/hamingjur-docs/build.py --export docs/hamingjur.html

Tablet drawing example

Run inside Silkie, selecting one required mode:

python bin/tablet_canvas.py --mode tiles
python bin/tablet_canvas.py --mode vectors
python bin/tablet_canvas.py --mode ink

tiles paints into cell-sized raster images in Python. vectors sends vector updates from Python. ink lets Silkie draw eligible pen strokes locally, with Python fallback for other contacts. All three use a pen-shaped pointer. Press q or Escape to exit.

The library uses Python and its standard library with the existing wcwidth and jinxed dependencies. Pillow is optional and used by the high-level image planner; byte encoders and tablet drawing do not need it. Native graphics bindings and kitten subprocesses are not required.

Project and attribution

Homepage and API documentation: https://hamingjur.goblinreactor.com

Source and issues: https://github.com/adamdeprince/hamingjur

Hamingjur is an independent fork maintained by Adam DePrince, not a release of Blessed. Fork contributions are copyright (c) 2026 Adam DePrince.

Hamingjur is distributed under the MIT license in LICENSE. It retains the inherited copyright notices: copyright (c) 2014 Jeff Quast and copyright (c) 2011 Erik Rose. Upstream contributors include Avram Lubkin. Blessed was itself forked from blessings. The historical changelog records the upstream work on which this fork is based.

Metadata

Release files for hamingjur 0.1.1

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

Source distribution (sdist)

Source distribution for hamingjur 0.1.1
File Size Uploaded Provenance Actions
hamingjur-0.1.1.tar.gz 881.1 kB Without provenance Details for hamingjur-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / hamingjur-0.1.1.tar.gz

Download URL hamingjur-0.1.1.tar.gz
Size 881.1 kB
Tags Source
SHA-256 checksum
How to use checksums
98cd039404be39af2cc08bd240606f2ee3dacc2452477e5bc9c30fe9928d03c5
BLAKE2b-256 checksum
How to use checksums
ad0ed023365519d3d024b1d9dc7b18b1a766c5974f421587cda0507b4ca40436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / hamingjur-0.1.1-py3-none-any.whl

Download URL hamingjur-0.1.1-py3-none-any.whl
Size 180.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07ad739bc05597732611df22902feb8e55b238fda575a0b92e72b309aa49d578
BLAKE2b-256 checksum
How to use checksums
c87c62bd9f7e2df7b9eff188975a9a790f6f2602553c0cd29793608e559ca981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for hamingjur 0.1.1

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