fidel-tools
Python port of Fidel Tools - Amharic language preprocessing toolkit.
Overview
fidel-tools is the Python wrapper package for the Fidel Tools NLP suite. It wraps the core native Rust library (core-native) compiled via maturin's PyO3 bindings, bringing near-native speed and performance to Amharic preprocessing in Python. It includes a symmetrical API (matching JS), standard snake_case pythonic mappings, and a spaCy compatible tokenizer.
Features
- High-Performance Rust Core: Employs PyO3 native extensions for fast homophone mapping, labialized string expansion, and gemination collapsing.
- Pythonic & JS Symmetrical APIs: Exposes both pythonic (snake_case) and JavaScript (camelCase) signatures on the Pipeline class.
- spaCy Integration: Easy integration of tokenizers into spaCy language pipelines.
- Stopword & Stemmer Engines: Morphology-aware boundary stopword filtering and light stemming.
- Transliteration & Term Indexer: SERA/Felig ASCII schemes and TF-IDF document/query indexers.
Installation
pip install fidel-tools
Quick Start
Basic Pipeline Usage
import fidel_tools as fidel
# 1. Load the pre-configured Amharic language pack
am_pack = fidel.get_amharic_pack()
# 2. Instantiate the pipeline
nlp = fidel.Pipeline(am_pack)
# 3. Perform pre-processing operations
normalized = nlp.normalize("ሐኪም ኀይሉ በልቷልልል!")
cleaned = nlp.remove_stopwords("ያወጣውን የተጨማሪ እሴት")
stemmed = nlp.stem("ልጆቻቸውን")
print(normalized) # "ሃኪም ሃይሉ በልቱዋልል!"
spaCy Tokenizer Integration
import spacy
from fidel_tools import Pipeline, get_spacy_tokenizer, get_amharic_pack
# Create spaCy model
nlp = spacy.blank("am")
# Configure tokenizer
pipeline = Pipeline(get_amharic_pack())
nlp.tokenizer = get_spacy_tokenizer(nlp, pipeline)
# Process text
doc = nlp("ይህ የመጀመሪያው ዓረፍተ ነገር ነው።")
print([token.text for token in doc])
API Reference
Pipeline Methods
Supports both camelCase (symmetrical to JS) and snake_case signatures.
normalize(text: str) -> str: Normalizes characters and collapses geminations.sentence_tokenize(text: str) -> list: Tokenizes text into sentences.stem(word: str) -> str: Extracts the base form of a word.remove_stopwords(corpus: str) -> str: Removes stopwords.text_analyze(corpus: str) -> str: Expands abbreviations and strips punctuation/numbers.felig_transliterate(word: str, lang: str) -> str: Felig transliteration.sera_transliterate(word: str, lang: str) -> str: SERA transliteration.index_documents(docs: list) -> dict: Indexes document dictionaries.index_query(query: str) -> dict: Indexes a single query string.weigh_terms(index: dict, type_of_index: str) -> dict: Calculates TF-IDF weights.
License
Licensed under the MIT License.
Metadata
Release files for fidel-tools 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| fidel_tools-0.1.10-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details for fidel_tools-0.1.10-cp38-abi3-win_amd64.whl |
| fidel_tools-0.1.10-cp38-abi3-manylinux_2_34_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.34+ x86-64 | Details for fidel_tools-0.1.10-cp38-abi3-manylinux_2_34_x86_64.whl |
| fidel_tools-0.1.10-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details for fidel_tools-0.1.10-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| fidel_tools-0.1.10-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64 | Details for fidel_tools-0.1.10-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl |
Total release size: 1.2 MB
Release files / fidel_tools-0.1.10-cp38-abi3-win_amd64.whl
| Download URL | fidel_tools-0.1.10-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 159.0 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0b22022677844e05a9db5ffd95baa113a8fe81af632302ef5b6da3f8132678d3
|
|
BLAKE2b-256 checksum How to use checksums |
be860f50580bbc439d3c8f1d2ac5fe98bc2275a269d473bd72ff1c2180e9735a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / fidel_tools-0.1.10-cp38-abi3-manylinux_2_34_x86_64.whl
| Download URL | fidel_tools-0.1.10-cp38-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 295.9 kB |
| Tags | CPython 3.8 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
41598cfbd5ead22fe13eced835714b4fe60dab6375286364640fc8f6659385e9
|
|
BLAKE2b-256 checksum How to use checksums |
c329f5a1056a8acdf7ddb0cc8f1c46de39f3c11d19b7e3c6d60e9542bb029d90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / fidel_tools-0.1.10-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | fidel_tools-0.1.10-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 290.2 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4a5858b6e2a3d74ed84b23f36a99979547fb629037acaae2e62d5d9d7a3cad01
|
|
BLAKE2b-256 checksum How to use checksums |
e121ec9b7bc82214a96a51411c1a5a19412f4048c11dfd486cbf0cbaf771c7d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / fidel_tools-0.1.10-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
| Download URL | fidel_tools-0.1.10-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl |
|---|---|
| Size | 495.5 kB |
| Tags | CPython 3.8 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
92b44c51d321353d947f020bb0e4ec61d48102d676720093c0faf3ce77cce57e
|
|
BLAKE2b-256 checksum How to use checksums |
4a180a057cf51d7a91fe30b772753612509ea8c1fdf2c32d5f3102c76229972c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for fidel-tools 0.1.10
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.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for fidel_tools-0.1.10-cp38-abi3-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.