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.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 hamingjur 0.1.0
File Size Uploaded Provenance Actions
hamingjur-0.1.0.tar.gz 878.8 kB Without provenance Details for hamingjur-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / hamingjur-0.1.0.tar.gz

Download URL hamingjur-0.1.0.tar.gz
Size 878.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e2a0f4853bd0df5ac17b0f1b4a0204106a6fde5feb4911c177fc6e29dfdf2198
BLAKE2b-256 checksum
How to use checksums
17426ba3d0213a53e2443644016f9ce2c210d7175c919f0f52d434f45de4705d
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.0-py3-none-any.whl

Download URL hamingjur-0.1.0-py3-none-any.whl
Size 180.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8ab24edd68262f00f5dbae8a4c7b0d1ef192be13e34b34893b325f934835ddf
BLAKE2b-256 checksum
How to use checksums
360e2ec8e7ebf6c4c26da14ab65e3f3d31684d9a06fb650ca6c7f2c47de3fbd5
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.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.

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