Skip to main content

No project description provided

Project description

laoshi (老師)

CLI application for learning Chinese. I wanted to have an interactive experience while I use the terminal, so I made this app.

Installation

pip install laoshi

If you want to manage your AnkiDecks with laoshi, you'll need:

This allows us to make HTTP calls to your Anki application, you're going to need to have Anki open.

Usage

  cli application to learn chinese.

Options:
  --help  Show this message and exit.

Commands:
  cc           Convert characters
  manage-deck  Manage deck group
  translate    Translate a phrase 

You're able to convert characters, manage an Anki deck or translate a phrase.

Usage: laoshi cc [OPTIONS] WORD

  Convert characters

Options:
  -t, --to [traditional|simplified|pinyin]

The manage-deck subcommand allows you to create a deck from one seed word or phrase using create-deck, you can also add notes with add-note:

Usage: laoshi manage-deck [OPTIONS] COMMAND [ARGS]...

  Manage deck group

Options:
  --help  Show this message and exit.

Commands:
  add-note     add note function for click
  create-deck  Create a deck function for click

Lastly you can translate phrases or words with translate, by default we use english, but you can change that:

Usage: laoshi translate [OPTIONS] PHRASE

  Translate a phrase

Options:
  -t, --to TEXT
  --help         Show this message and exit.

Examples:

➜  ~ laoshi translate 服饰  
apparel
➜  ~ laoshi cc -t pinyin 服饰
fúshì
➜  ~ python -m laoshi.main manage-deck add-note -c simplified hsk5+ 涉及 # You have to create the AnkiDeck first.

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

laoshi-0.1.1.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

laoshi-0.1.1-py3-none-any.whl (13.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page