Skip to main content

CLI tool for Turkish etymological dictionary, nisanyansozluk.com (nis <word>)

Project description

Nişanyan CLI

screenshot

GitHub release PyPI Downloads

CLI tool for the Turkish etymological dictionary, nisanyansozluk.com.

Explore the origins, history, and development of Turkish words directly from your terminal. This tool provides access to Sevan Nişanyan's comprehensive etymological database, including the "Adlar" (names) dictionary.

  • Etymology Tree: Visualize the lineage of words with the --tree flag.
  • Random Word: Discover new words and their origins with --random.
  • Adlar Support: Access the Turkish names dictionary (nisanyanadlar.com) using -ad.
  • Rich Output: Beautifully formatted terminal output thanks to Rich.
  • Plain Mode: Clean, unformatted text output for scripts and piping.

Installation

pip install nisanyan-cli

or

uv tool install nisanyan-cli

Usage

Basic Search

Simply provide the word you want to look up:

nis anadolu

Usage Screenshot

Etymology Tree (-t, --tree)

View the word's history as a hierarchical tree:

nis çikolata --tree

Output Example:

çikolata (Günümüz Türkçesi)
└── cioccolata (İtalyanca): kakao yağı ve şekerle imal edilen yiyecek maddesi.
    └── chocolate (İspanyolca): ~.
        └── xocolatl (Aztekçe): kakaodan yapılan içecek.
            ├── xocolli (Aztekçe): acı.
            └── atl (Aztekçe): su.

Tree Screenshot

Nişanyan Adlar (-ad)

Query the names dictionary for meanings and origins:

nis gökçe -ad

Adlar Screenshot

Combine with random for inspiration: nis -ad -r

Discover Random Words (-r, --random)

Explore the dictionary randomly:

nis -r -t

Commands & Arguments

Argument Long Flag Description
<word> The word to search for (positional).
-h --help Show help message and exit.
-t --tree Show result as an etymology tree.
-r --random Select a random word and display results.
-p --plain Output plain text (no styling).
-ad Fetch results from nisanyanadlar.com.
-v --version Show program's version number and exit.

Development

Prerequisites

  • Poetry (Dependency Management)

Setup

  1. Clone the repository:
    git clone https://github.com/agmmnn/nisanyan-cli.git
    cd nisanyan-cli
    
  2. Install dependencies:
    poetry install
    
  3. Run the CLI in development mode:
    poetry run nis <word>
    

TODO

  • Better processing of API results for better alignment with the website's format.
  • Expansion of abbreviations in supplementary descriptions to their full forms.

Dependencies

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

nisanyan_cli-0.4.5.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nisanyan_cli-0.4.5-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file nisanyan_cli-0.4.5.tar.gz.

File metadata

  • Download URL: nisanyan_cli-0.4.5.tar.gz
  • Upload date:
  • Size: 37.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nisanyan_cli-0.4.5.tar.gz
Algorithm Hash digest
SHA256 730dd19cf9291367e76d646437a40d19beba38ba5e7634b3e7f8adf2232e55b6
MD5 cae3017302d7c64aa1275ec6cb5317c0
BLAKE2b-256 9d4528add62232800111d3ef082837bc8f050410c0c878a03c81463bfab6c2aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for nisanyan_cli-0.4.5.tar.gz:

Publisher: release.yml on agmmnn/nisanyan-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nisanyan_cli-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: nisanyan_cli-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nisanyan_cli-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7d74489378e3cc31ac0a5b71ba615c9447782b3a32e8aa0435b2004e9274d79b
MD5 d7d2a4ec941515082f6f8cd97f669c50
BLAKE2b-256 f8e2b373fd3eccf07e3891ec9015a6f94d7bc08b5b5c7b226069ed18077606cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for nisanyan_cli-0.4.5-py3-none-any.whl:

Publisher: release.yml on agmmnn/nisanyan-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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