Metadata-Version: 2.4
Name: hamingjur
Version: 0.1.0
Summary: A pure Python fork of Blessed with Kitty and Silkie terminal protocols.
Author: Adam DePrince, Jeff Quast, Erik Rose, Avram Lubkin
Maintainer: Adam DePrince
License-Expression: MIT
Project-URL: Homepage, https://hamingjur.goblinreactor.com
Project-URL: Documentation, https://hamingjur.goblinreactor.com/#api
Project-URL: Repository, https://github.com/adamdeprince/hamingjur
Project-URL: Issues, https://github.com/adamdeprince/hamingjur/issues
Keywords: terminal,sequences,tty,curses,ncurses,formatting,style,color,console,keyboard,ansi,xterm
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Environment :: Console :: Curses
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Terminals
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: wcwidth>=0.9.2
Requires-Dist: jinxed<3,>=2.1
Provides-Extra: images
Requires-Dist: Pillow>=9.1; extra == "images"
Provides-Extra: docs
Requires-Dist: Pillow; extra == "docs"
Requires-Dist: Sphinx>3; extra == "docs"
Requires-Dist: sphinx-paramlinks; extra == "docs"
Requires-Dist: sphinx_rtd_theme; extra == "docs"
Requires-Dist: sphinxcontrib-manpage; extra == "docs"
Dynamic: license-file

Hamingjur
=========

Hamingjur is a pure Python terminal library forked from
`Blessed <https://github.com/jquast/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.

.. code-block:: python

    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 <https://github.com/adamdeprince/hamingjur/blob/master/docs/features.rst>`_
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 <https://github.com/erikrose/blessings>`_.
The historical changelog records the upstream work on which this fork is based.
