Skip to main content

dictcc-mini

Quickly look up translations without relying on the browser. This script is mostly just a table formatter which happens to get it's data for formatting from dict.cc.

Features:

  1. simple
  2. scales with respect to terminal width
  3. small footprint

dictcc-mini screenshot



About

I wanted a tool for the most convenient and quick access to vocab through cli. There is another similar tool already available which is more feature rich, but it has a larger dependency footprint. I've deliberately opted against depending on rich for formatting and lxml for parsing.

State

  • up to v0.1.3: depends only on: requests, beautifulsoup4 and fake-headers. site-packages in freshly installed VENV including all transient dependencies like html5lib, idna, urllib3 is sub 20 MB!
  • since v0.2.0: No dependencies left after implementing the relevant logic with python standard library. Now sub MB size!


How to setup

pypi

classical: pip install dictcc-mini


manual

  1. Download the source code from github.

  2. Make dictcc-mini/src directory available via PYTHONPATH environment variable.

    1. export PYTHONPATH=$PYTHONPATH:/your/path/to/dictcc-mini/src
      
  3. Alias in an rc-file of your shell in one of the following two ways.

    1. alias dict="python3 -m dictcc_mini.cli "
      function dict() { "python3 -m dictcc_mini.cli" "$@" }
      

defaults

As per my own preference, this script defaults to DE/EN as languages, which are simply set as DEFAULT_LANG1 and DEFAULT_LANG2 constants in the config.py and easily modified to match your preference.

Different styles for marking multiline entries and other defaults available to set in config.py as well.



How to use

# regular lookup
dict word

# to start with language selector before search use -l (--language) toggle
dict word -l

# set -f (--full) toggle full table if default 20 line table is too short 
dict word -f

Metadata

Release files for dictcc-mini 0.2.3

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

Source distribution (sdist)

Source distribution for dictcc-mini 0.2.3
File Size Uploaded Provenance Actions
dictcc_mini-0.2.3.tar.gz 241.3 kB Without provenance Details for dictcc_mini-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dictcc-mini 0.2.3
File Interpreter ABI Platform Actions
dictcc_mini-0.2.3-py3-none-any.whl Python 3 none any Details for dictcc_mini-0.2.3-py3-none-any.whl

Total release size: 250.9 kB

Release files / dictcc_mini-0.2.3.tar.gz

Download URL dictcc_mini-0.2.3.tar.gz
Size 241.3 kB
Tags Source
SHA-256 checksum
How to use checksums
50e00a844f215e0e2564a9ab44324f91dd83c6847d97e88688207e3bf1e7b392
BLAKE2b-256 checksum
How to use checksums
3de7633df0d82600004567689d1c393c8b613c457a8e9fa466718c092ca03f5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.15.0b1

Release files / dictcc_mini-0.2.3-py3-none-any.whl

Download URL dictcc_mini-0.2.3-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1185720f93ab05daa85b0b1b3959a0a96cb91933e6e9ce8b8b46553154ffa2f2
BLAKE2b-256 checksum
How to use checksums
221979ce3fab334374dafd27522b347ce495b9c779183e4dbca0392b409646f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.15.0b1

Security for dictcc-mini 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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