Skip to main content

Verbformen CLI

Project description

Verbformen CLI

Unofficial python client for the German-English dictionary at verbformen.com. Verbformen provides detailed conjugations and declensions of German words, along with a useful summary card that includes:

  • verb endings,
  • noun gender,
  • noun endings,
  • adjective endings, and
  • definitions

Installation

pip install verbformen-cli

Usage

From the terminal:

$ verbformen Wörterbuch 
           ╭────────── Wörterbuch ───────────╮
           │ A1 • Neutral • Endings: es/ü-er │
           │         das Wörterbuch          │
           │  Wörterbuch(e)s • Wörterbücher  │
           │                                 │
           │  dictionary, lexicon, wordbook  │
           ╰─────────────────────────────────╯

$ verbformen nachschlagen
   ╭───────────────── nachschlagen ──────────────────╮
   │ B1 • irregular • haben (also, sein)             │
   │                  nachschlagen                   │
   │ schlägt nach • schlug nach • hat nachgeschlagen │
   │                                                 │
   │                     look up                     │
   ╰─────────────────────────────────────────────────╯

or, in code:

from verbformen_cli import Client, PartOfSpeech

client = Client.default_client()
client.search("essen")
# {
#   "search": "essen",
#   "definitions": [
#     "eat",
#     "consume"
#   ],
#   "part_of_speech": "verb",
#   "text": "essen",
#   "behavior": "irregular",
#   "present": "isst",
#   "imperfect": "aß",
#   "perfect": "hat gegessen",
#   "auxiliary_verb": "haben",
#   "flection": "Active",
#   "use": "Main",
#   "level": "A1"
# }

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

verbformen-cli-0.2.3.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

verbformen_cli-0.2.3-py3-none-any.whl (11.4 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