https://github.com/danhper/codic-cli
CLI and library for Codic
https://github.com/danhper/codic-cli
Last synced: 4 months ago
JSON representation
CLI and library for Codic
- Host: GitHub
- URL: https://github.com/danhper/codic-cli
- Owner: danhper
- Created: 2016-01-11T00:21:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-13T05:39:05.000Z (over 9 years ago)
- Last Synced: 2025-02-24T00:48:27.089Z (4 months ago)
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codic
Python CLI and library for [Codic](https://codic.jp/).
## Installation
```sh
pip install codic
```## Usage
```
usage: codic [-h] [-t TOKEN]
[-c {camel,pascal,lower-underscore,upper-underscore,hyphen}]
[-f {text,json}]
TEXTget name from codic API
positional arguments:
TEXT the text to translateoptional arguments:
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
Codic API token
-c {camel,pascal,lower-underscore,upper-underscore,hyphen}, --casing {camel,pascal,lower-underscore,upper-underscore,hyphen}
Casing for the generated variable
-f {text,json}, --format {text,json}
Choose the output format
```The settings will be automatically saved in `~/.codicrc`, so you only need
to pass your API token the first time.You can get an API token at https://codic.jp/my/api_status
### Example
```sh
$ codic --token MY_TOKEN 有効
有効: valid, enabled, active, available
$ codic 繰り返す
繰り返す: repeat, iterate
$ codic 英語難しい
難しい: difficult
英語: english
```