Metadata-Version: 2.5
Name: netra-core
Version: 0.1.0
Summary: Core CLI router and plugin registry for the NetraBase data reliability ecosystem.
Project-URL: Homepage, https://github.com/netrabase/netra-core
Project-URL: Repository, https://github.com/netrabase/netra-core
Project-URL: Issues, https://github.com/netrabase/netra-core/issues
Author-email: Nitin Paul <nitinpaul.dev@gmail.com>
License: MIT
License-File: LICENSE
Keywords: cli,data-contracts,data-quality,netra,odcs
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: rich>=14.3.1
Requires-Dist: typer>=0.24.0
Description-Content-Type: text/markdown

# Netra Core

[![PyPI version](https://img.shields.io/pypi/v/netra-core.svg?color=blue)](https://pypi.org/project/netra-core/)

**`netra-core`** is the lightweight CLI router and plugin registry for the **NetraBase** data reliability ecosystem.

It provides the unified `netra` command-line entry point and dynamically discovers installed Netra packages via Python `importlib.metadata` entry points (`netra.subcommands`).

## Ecosystem Packages

| Package | CLI Subcommands | Description |
| :--- | :--- | :--- |
| **[`netra-profiler`](https://github.com/netrabase/netra-profiler)** | `netra profile`<br>`netra contract`<br>`netra diff` | High-performance statistical data profiler, ODCS v3.1.0 contract generator, and schema drift detector. |
| **[`netra-validator`](https://github.com/netrabase/netra-validator)** | `netra validate` | High-performance data validator built with Polars and DuckDB. |

## Installation

Install the Netra tools you need (which automatically pulls in `netra-core`):

```bash
uv pip install netra-profiler netra-validator
```

Or with standard `pip`:

```bash
pip install netra-profiler netra-validator
```

## Usage

Once installed, `netra` automatically routes subcommands to all installed Netra packages in your environment:

```bash
# View available subcommands
netra --help

# Check installed versions of netra-core and all registered plugins
netra --version
```

Example output of `netra --version`:

```text
netra-core      : v0.1.0
netra-profiler  : v0.5.0 (contract)
netra-profiler  : v0.5.0 (diff)
netra-profiler  : v0.5.0 (profile)
netra-validator : v0.1.0 (validate)
```
