Metadata-Version: 2.4
Name: memgentic-native
Version: 0.8.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE
Summary: Native Rust acceleration for Memgentic — text processing, parsers, and knowledge graph
Keywords: memgentic,rust,pyo3,performance,native-extension
Author-email: Chariton Kypraios <chariton@ellinai.com>
License-Expression: Apache-2.0
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/Chariton-kyp/Memgentic/blob/main/memgentic-native/CHANGELOG.md
Project-URL: Homepage, https://github.com/Chariton-kyp/Memgentic
Project-URL: Issues, https://github.com/Chariton-kyp/Memgentic/issues
Project-URL: Repository, https://github.com/Chariton-kyp/Memgentic
Project-URL: Source, https://github.com/Chariton-kyp/Memgentic/tree/main/memgentic-native

# memgentic-native

**Native Rust acceleration for [Memgentic](https://pypi.org/project/memgentic/).** Optional — the core package runs on pure Python and auto-detects this extension at import time.

```bash
pip install memgentic-native
# or as an extra on the core:
pip install 'memgentic[native]'
```

## What it accelerates

| Module | Replaces Python | Typical speedup |
|---|---|---|
| **`textproc`** | credential scrubbing, noise detection, content classification | 5–15× |
| **`parsers`** | JSONL / Protocol Buffers / Markdown stream parsing | 3–8× |
| **`graph`** | knowledge-graph traversal via `petgraph` | 2–4× on large graphs |

All modules register under the `memgentic_native` PyO3 namespace. The core package imports them via `try / except ImportError` so every code path has a pure-Python fallback — `memgentic-native` is a performance add-on, never a hard requirement.

## Platform coverage

Pre-built wheels ship for:

- Linux x86_64, aarch64 (manylinux) — Python 3.12, 3.13
- macOS x86_64, aarch64 — Python 3.12, 3.13
- Windows x64 — Python 3.12, 3.13

Source distribution is published for other targets. Building from source needs a stable Rust toolchain and `maturin`.

## Versioning

Linked with `memgentic` + `memgentic-api`. All three ship on the same release cadence.

## License

Apache 2.0. See [LICENSE](https://github.com/Chariton-kyp/Memgentic/blob/main/LICENSE).

