Skip to main content

A history clock for the terminal — military time HH:MM becomes a historical year with a fact from that year.

Project description

historieklokka

A history clock for the terminal. Military time HH:MM becomes a historical year, with a curated fact from that year — fetched live from historieklokka.no.

15:23 → year 1523"Luther publishes 'On Secular Authority', laying the groundwork for separation of church and state."

Install

pip install historieklokka

Usage

historieklokka                                     # uses historieklokka.no
historieklokka --api http://localhost:8421/api/v1  # against a local instance

Press Ctrl+C to exit.

What it shows

  • Current time as a year (e.g. 16:45 → 1645)
  • The historical era that year belongs to
  • A Wikipedia-sourced fact from that year, rewritten as vivid prose by an LLM
  • Future years (after the current year) show curated speculative events

Publishing to PyPI

# One-time setup
pip install hatch

# Build
cd cli/
hatch build              # creates dist/historieklokka-*.whl and .tar.gz

# Publish (requires PyPI account + API token at https://pypi.org/manage/account/token/)
hatch publish            # prompts for username (__token__) and token

Set HATCH_INDEX_USER=__token__ and HATCH_INDEX_AUTH=pypi-... as environment variables to skip the prompts.

License

GPL-3.0-only — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

historieklokka-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

historieklokka-0.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file historieklokka-0.1.0.tar.gz.

File metadata

  • Download URL: historieklokka-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for historieklokka-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43c4625202ae4e177ec38eaf59d17c75742144715bd4dce791d9908ec1ea647b
MD5 bcc05e9642cea704c726976c3248e0a7
BLAKE2b-256 a3d0ae16250f787100746694dede9bd89054254a21a58ab99cdfb234323de0f8

See more details on using hashes here.

File details

Details for the file historieklokka-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: historieklokka-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for historieklokka-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b3a52b837c619c0a2c06fd097957283f3969d8675d409d2dc00ab4ed00b3c20
MD5 1c3fe8a7c2ee6c8d354d0478b069e00a
BLAKE2b-256 7942da6a844dc7dc8106960a16655c819b98f363a43ec639d7dc52b04c41582b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page