๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Book a DemoInstallSign in
Socket

dictionary-parser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dictionary-parser

A CLI tool for generating csv or json files from word dictionaries.

0.3.0
PyPI
Maintainers
1

๐Ÿ“˜ Dictionary parser

Dictionary parser is a Python CLI tool for processing and exporting dictionary word lists with customizable filters, formats, and casing options.
Perfect for building vocabulary apps, language tools, or educational datasets.

PyPI version Builds and Tests License: MIT

๐Ÿ”ง Features

  • โœ… Filter words by starting letter or letter range (a, a-c, a,c,f)
  • โœ… Export as JSON or CSV
  • โœ… Convert word case: lower, upper, or no change
  • โœ… Output to one file or split by starting letter
  • โœ… Works with local files or download from a URL
  • โœ… Fast and clean CLI powered by Typer
  • โœ… Metadata support: local_index, length
  • โœ… Sort words in the output files
  • โœ… Use local index per letter instead of global index

๐Ÿš€ Installation

Install via pip:

pip install dictionary-parser

๐Ÿงช Quick Usage

dictionary-parser input.txt output/ --letters=a-c --format=csv --case=lower

Arguments:

  • input.txt โ€” your source word list file
  • output/ โ€” directory for saving results

Options:

OptionDescription
--lettersLetter filter: a, a-c, or a,c,f
--formatOutput format: json (default) or csv
--caseWord casing: lower, upper, or nochange (default)
--mergeExport all data into one file instead of per-letter files
--metadataComma-separated list of metadata fields to include: local_index, length
--use-local-indexUse local index per letter instead of global index
--sortSort words in the output files
--helpShow help message and exit

๐Ÿ” Examples

Only export words starting with A, B, or C in lowercase CSV:

dictionary-parser input.txt output/ --letters=a-c --format=csv --case=lower

Export only A and F in JSON to a single file:

dictionary-parser input.txt output/ --letters=a,f --merge

๐Ÿ“‚ Directory Structure


dictionary-parser/
โ”œโ”€โ”€ dictionary-parser/       # Main CLI app folder
โ”œโ”€โ”€ docs/                       # Docs Folder
โ”œโ”€โ”€ tests/                      # Pytest unit tests

๐Ÿ“š Documentation

Full documentation available at: https://dictionary-parser.readthedocs.io

๐Ÿง‘โ€๐Ÿ’ป Contributing

We love contributions! See our CONTRIBUTING.md for how to get started.

๐Ÿ“œ License

This project is licensed under the MIT License.

โค๏ธ Credits

Built with Typer and Python.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts