From PyPI:
pip3 install cambrinary
Look up 'hello' for example:
cambrinary -w hello
in chinese(traditional)
cambrinary -w world -t chinese
- english
- french
- german
- chinese
- japanese
- italian
- russian
- korean
powered by coroutine, support as many as words you like,
cambrinary -w hello word
or
cambrinary -w hello word -t chinese
even or more
cambrinary -w one two three four five -t french
cambrinary -w kick-off
or
cambrinary -w kick-off -t japanese
Your cambrinary, you design.
Use conf.json to customize the color scheme, for instance,
setting pronunciation
, definition
or example_sentence
as you like. They could be in bold
format, blue
foreground and black
background, or any supported format and colors.
All supported color please refer to color_const.py.
You can change and test locally by, git clone the repo, cd
in the repo folder, run:
python3 -m venv venv
source venv/bin/activate
pip3 install . (try `curl https://bootstrap.pypa.io/get-pip.py | python3` to update pip3 if any error)
# and then
cambrinary -w world
Once you change the code, re-run pip3 install .
Or simply run the following in the repo folder:
python3 -m cambrinary.cambrinary -w world
logs is written into ~/.local/share/cambrinary/dict.log
in the append way.
more development plan, please refer to Wiki
cambrinary --help