Skip to main content

image

python 3.11+ Code coverage License: MIT code coverage

  • openodia is a Python package which contains various tools on Odia language.
  • The short term goal of this package is to not make state-of-the-art methods, but to make tools which work.

Install

  • Requires Python 3.11 or higher.
  • The library is tested on Python 3.11, 3.12, 3.13, 3.14, and 3.15.

Using pip

pip install openodia

uv is a fast Python package installer and resolver.

# Install uv if you haven't already
pip install uv

# Install openodia
uv pip install openodia

# Or add to your project
uv add openodia

From source

git clone https://github.com/soumendrak/openodia.git
cd openodia
uv sync  # or: pip install -e .

Usage and Documentation

For usage and further documentation please visit the Documentation page.

Phonetic matching

These are Odia-adapted variants, not classic Soundex or Metaphone. Soundex preserves the first Odia letter, including a leading vowel, and pads or truncates to four characters. Both encoders normalize NFC. Vowels and matras reset duplicate suppression; halant, nukta and zero-width joiners do not. For example, ପାପା gives Soundex ପ600 and Metaphone ପପ. Nonempty input with no Odia letters raises ValueError, including Latin-only input, and soundex()/metaphone() raise TypeError for a non-str such as None. In mixed input, non-Odia characters emit nothing but reset duplicate suppression, like vowels. Empty input produces empty keys. similarity() does not raise for non-Odia input: it returns 0.0 when either side is None or has no Odia letters (Latin or whitespace-only), and similarity("", "") is 0.0. Any other type (int, bytes, list) raises TypeError. It assigns 0.5 to Soundex equality and 0.5 to normalized Metaphone edit similarity.

Command-line interface

Run openodia --help or python -m openodia --help for commands, and openodia --version for the installed version.

openodia tokenize 'ରାମ ସୀତା'
openodia tokenize --file input.txt
cat input.txt | python -m openodia tokenize -

Text arguments are literal text, even when they match an existing filename. Use --file to read a UTF-8 file explicitly (implicit file detection has been removed). Pass - without --file to read UTF-8 text from stdin.

Use from an AI agent

Every subcommand takes --json and prints one UTF-8 JSON document on stdout. Errors go to stderr with a nonzero exit code.

Version note: --json on every subcommand needs a release newer than 0.1.14; PyPI 0.1.14 has it on detect-language only, so uvx openodia tokenize --json fails there with exit code 2. From a source checkout, uv run openodia ... has it. The examples below need that newer release or a source checkout; only detect-language --json works on 0.1.14.

$ openodia tokenize --json 'ରାମ ସୀତା ଘରକୁ ଯାଏ ।'
{"tokens": ["ରାମ", "ସୀତା", "ଘରକୁ", "ଯାଏ", "।"]}
$ printf 'ରାମ ସୀତା ଘରକୁ ଯାଏ ।' | openodia detect-language - --json
{"language": "odia", "confidence_score": 0.93}

See AGENTS.md for every subcommand with JSON shapes and exit codes, skills/openodia/SKILL.md for an agent skill, and llms.txt for the docs index.

Sponsor

If this project helps you, consider sponsoring my work on GitHub. Your support helps fund maintenance, documentation, and continued development.

License

Released under the MIT License.

Metadata

Release files for openodia 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openodia 0.2.0
File Size Uploaded Provenance Actions
openodia-0.2.0.tar.gz 2.3 MB Without provenance Details for openodia-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openodia 0.2.0
File Interpreter ABI Platform Actions
openodia-0.2.0-py3-none-any.whl Python 3 none any Details for openodia-0.2.0-py3-none-any.whl

Total release size: 4.4 MB

Release files / openodia-0.2.0.tar.gz

Download URL openodia-0.2.0.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2ceb617f4a21291b9d88ffe030b9f43b2e7579ff7d66a0e8c01c3896fad6cd51
BLAKE2b-256 checksum
How to use checksums
a5d35ac7522ccdc81f46759615e0acea87c6fab9086d7ad27fb10993c5fe4993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / openodia-0.2.0-py3-none-any.whl

Download URL openodia-0.2.0-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2ef26a81ede366418973c49f2be195f18da445e3c3be80ab3f714a41b10438b0
BLAKE2b-256 checksum
How to use checksums
ed66f85f5437bc513942514289dfcdfe7eddf82c8cf4f7c8ceb2270fd0fb5301
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for openodia 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page