CLI tool for Turkish etymological dictionary, nisanyansozluk.com (nis <word>)
Project description
Nişanyan CLI
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
--treeflag. - 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
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.
Nişanyan Adlar (-ad)
Query the names dictionary for meanings and origins:
nis gökçe -ad
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
- Clone the repository:
git clone https://github.com/agmmnn/nisanyan-cli.git cd nisanyan-cli
- Install dependencies:
poetry install - 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
- Rich - Terminal formatting.
- importlib-metadata - Version management.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
730dd19cf9291367e76d646437a40d19beba38ba5e7634b3e7f8adf2232e55b6
|
|
| MD5 |
cae3017302d7c64aa1275ec6cb5317c0
|
|
| BLAKE2b-256 |
9d4528add62232800111d3ef082837bc8f050410c0c878a03c81463bfab6c2aa
|
Provenance
The following attestation bundles were made for nisanyan_cli-0.4.5.tar.gz:
Publisher:
release.yml on agmmnn/nisanyan-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nisanyan_cli-0.4.5.tar.gz -
Subject digest:
730dd19cf9291367e76d646437a40d19beba38ba5e7634b3e7f8adf2232e55b6 - Sigstore transparency entry: 870308065
- Sigstore integration time:
-
Permalink:
agmmnn/nisanyan-cli@008af9156203fa52e314ba79c536e9a976eeeb71 -
Branch / Tag:
refs/tags/v0.4.5 - Owner: https://github.com/agmmnn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@008af9156203fa52e314ba79c536e9a976eeeb71 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d74489378e3cc31ac0a5b71ba615c9447782b3a32e8aa0435b2004e9274d79b
|
|
| MD5 |
d7d2a4ec941515082f6f8cd97f669c50
|
|
| BLAKE2b-256 |
f8e2b373fd3eccf07e3891ec9015a6f94d7bc08b5b5c7b226069ed18077606cd
|
Provenance
The following attestation bundles were made for nisanyan_cli-0.4.5-py3-none-any.whl:
Publisher:
release.yml on agmmnn/nisanyan-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nisanyan_cli-0.4.5-py3-none-any.whl -
Subject digest:
7d74489378e3cc31ac0a5b71ba615c9447782b3a32e8aa0435b2004e9274d79b - Sigstore transparency entry: 870308100
- Sigstore integration time:
-
Permalink:
agmmnn/nisanyan-cli@008af9156203fa52e314ba79c536e9a976eeeb71 -
Branch / Tag:
refs/tags/v0.4.5 - Owner: https://github.com/agmmnn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@008af9156203fa52e314ba79c536e9a976eeeb71 -
Trigger Event:
push
-
Statement type: