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.1.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.1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: historieklokka-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c2a7e9a7adea168ee580529fafcb2a802f99fdf67b9129554d0be2da891ba736
MD5 d238f2c981c810e5c150266fb8c2e9f9
BLAKE2b-256 d6d96b53c134d4cabbd288d217e75341194075cb95f22622b3f968c104b233a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: historieklokka-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81ef920d50798784564c0986df8d2694e949a4719e69ed2c4567da3f16b5c45f
MD5 d3ee6ef46d9e440ac2d3fca72957148d
BLAKE2b-256 5565283e8c287c7d85f219ef1264c2a90189f900a1616a7d9eec10e9b4360083

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