Skip to main content

Learn every day

Project description

wotd

A small packaged CLI for fetching and displaying a word of the day from pluggable language providers.

What it does

  • Displays the newest word of the day for a selected language
  • Supports provider-specific parsing behind a shared CLI
  • Loads language providers through Python entry points

Current languages

Code Source
en Merriam-Webster
ja Innovative Language

Install and run

With uv:

uv tool install wotd

wotd
wotd en
wotd ja

Use the built-in help to see the currently registered language codes:

uv run wotd --help

Project layout

src/wotd/
  cli.py                 # CLI entrypoint
  core.py                # shared fetching, rendering, and provider discovery
  languages/
    english.py           # English provider
    japanese.py          # Japanese provider

Entry-point based languages

Language providers are registered through the wotd.languages entry-point group in pyproject.toml.

[project.entry-points."wotd.languages"]
en = "wotd.languages.english:get_provider"
ja = "wotd.languages.japanese:get_provider"

Each provider returns a LanguageProvider that defines:

  • the language code
  • the source attribution text
  • the request details
  • the parse function that converts raw bytes into a WordEntry

For contributor guidance, see src/wotd/languages/README.md.

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

wotd-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

wotd-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wotd-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wotd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 349fd740907604ccc357e47e457ee3312b1c203e23e331928b2c3e0bc4f0bebb
MD5 7cf0151bce60544fe63f071d6c89226e
BLAKE2b-256 cab77d79a26a1fdb13a492fb2193360de1e6d1d420422e566afa73ecd7060397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wotd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wotd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6815e1be72627c6af33cf4276e5f570cd8921a02eec896dc5dc782257243fec4
MD5 4aae3c57af29e1f59cd5b7d75fbb189b
BLAKE2b-256 1abc5fec2c570274473eb3706bd3bf34ad8c4262c27dc1ed357ca18d5fd79df6

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