Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ewen-lbh/wikitrad
Translate terms from the command line using Wikipedia
https://github.com/ewen-lbh/wikitrad
cli python translation wikipedia
Last synced: 21 days ago
JSON representation
Translate terms from the command line using Wikipedia
- Host: GitHub
- URL: https://github.com/ewen-lbh/wikitrad
- Owner: ewen-lbh
- Created: 2021-04-12T13:02:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T11:05:25.000Z (7 months ago)
- Last Synced: 2024-09-15T07:48:56.128Z (about 2 months ago)
- Topics: cli, python, translation, wikipedia
- Language: Python
- Homepage:
- Size: 322 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wikitrad
![demo](./demo.gif)
## Installation
_wikitrad_ is available [on PyPI](https://pypi.org/project/wikitrad):
```sh
pip install wikitrad
```### Arch Linux
Arch users can install it from [the AUR](https://aur.archlinux.org/packages/wikitrad)
```sh
paru wikitrad # or any AUR helper
```You can also get a bleeding edge release with [_wikitrad-git_](https://aur.archlinux.org/packages/wikitrad-git).
## Usage
Language codes refer to the language codes used by wikipedia: `en` for `en.wikipedia.org`, `fr` for `fr.wikipedia.org`, etc.
### Without specifying the source language
```sh
wikitrad "word to translate" target_language_code
```
### specifying the source language```sh
wikitrad source_language_code "word to translate" target_language_code
```