Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyPI version

Orphism

A text-based implementation of horizon charts, mostly inspired by Cubism.js. The name is based on an offshoot of cubism focused on abstraction and color.

Horizon charts in a single line of text allow for an incredible amount of resolution in minimal space: making it easier to find outliers and understand general trends in numbers. Orphism is an implementation built using Rich for advanced rendering and Unicode block characters. They also fit in remarkably well with Tufte's Small Multiples.

For fun -- and the joy of programming -- Orphism is implemented in Hy Lang. Strategically placed __init__.py files that import hy should make this completely transparent to anyone relying on the library.

This is currently a development build: please expect the API and design to change dramatically as I iterate.

Demo

Installation

Available on PyPI!

pip install orphism

This will install both a module and a CLI.

Usage

CLI

The development versions are incredibly simple: they can accept a list of numbers as arguments, or through stdin (generally a pipe).

Through stdin

echo 1 2 3 | orphism

As arguments

orphism $(echo 1 2 3)

API

A LineRenderable class represents the rich element to render a horizon chart.

import rich
from orphism.line import LineRenderable

rich.print(LineRenderable([1, 2, 3, 4]))

Updates

2023-12-15

  • First public release; 0.0.1dev2 is somewhat functional.

Examples

Temperature data from weather.gov: Central Park, NY, 2023-12 Temperatures

Release files for orphism 0.0.1.dev4

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

Source distribution (sdist)

Source distribution for orphism 0.0.1.dev4
File Size Uploaded
orphism-0.0.1.dev4.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orphism 0.0.1.dev4
File Interpreter ABI Platform
orphism-0.0.1.dev4-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / orphism-0.0.1.dev4.tar.gz

Download URL orphism-0.0.1.dev4.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8500cf584c9cd76b7253466523635ff5bd7d23f643c084d8cfca3dae978f2247
BLAKE2b-256 checksum
How to use checksums
75a605a4d9da72eb59c97cdfd4cb39d1d897a6560d90479d2c4922d4367c58db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / orphism-0.0.1.dev4-py3-none-any.whl

Download URL orphism-0.0.1.dev4-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cc0cbfcb9257856788be26e02c3ca350f96b2fc8ae926b1fa6ef8b986d4abb9
BLAKE2b-256 checksum
How to use checksums
81a2d4871fbd87771b3eb06ff80be86baf663b9c78053113112f9e26172bcf62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2
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