Skip to main content

Oribi

Oribi profiles a pandas DataFrame and returns a structured, evidence-backed snapshot of its shape, column statistics, likely semantic roles, candidate keys, possible grain, relationships, and analytical warnings. Use it to inspect data before writing an analysis or to give downstream tools a compact description of a dataset.

Install

python -m pip install oribi

Oribi supports Python 3.10–3.14 and pandas 1.5.3 or newer (below pandas 4).

Quick start

import pandas as pd
from oribi import inspect

df = pd.DataFrame({
    "order_id": [101, 101, 102, 102],
    "product_id": [7, 8, 7, 8],
    "revenue": [25.0, 40.0, 30.0, -5.0],
})

context = inspect(df)
print(context.summary())
print(context.to_context(max_chars=2_000))

inspect() does not modify the DataFrame or keep a reference to it in the result. The returned snapshot can also be rendered as a full Markdown report or serialized to JSON-compatible data:

markdown = context.to_markdown()
payload = context.to_dict()
json_text = context.to_json()

What Oribi currently reports

  • Dataset row/column counts and duplicate rows.
  • Per-column missingness, distinct counts, numeric summaries, categorical top values, and datetime bounds.
  • Likely roles such as identifier, measure, dimension, categorical, temporal, boolean, text, or unknown, with evidence.
  • Candidate single-column and bounded two-column keys, plus a separate likely-grain estimate.
  • Conservative within-DataFrame functional-dependency relationships.
  • Recommendations for likely numeric measures and identifier counts.
  • Warnings for duplicate rows, missingness, non-unique identifiers, negative or skewed measures, high-cardinality categories, and possible gaps in regular datetime series.

Inferences are heuristics, not guarantees about business meaning. Temporal-gap warnings require a sufficiently long series with a dominant fixed cadence; irregular event timestamps and short series are left without a gap claim. Relationships describe observed value mappings within one frame and do not prove that a join is valid or safe.

Public API

The main operation is oribi.inspect(df, *, options=None). It returns a DatasetContext snapshot. ProfileOptions can bound top values and exact key/quantile analysis:

import pandas as pd
from oribi import ProfileOptions, inspect

df = pd.DataFrame({"amount": [12.5, 18.0, 20.0]})
context = inspect(df, options=ProfileOptions(top_k=5, max_exact_rows=50_000))

Options include top_k, include_quantiles, max_exact_rows, and max_key_columns. Column labels must be unique strings. Datetime-like text is not parsed automatically. Profiling is in-memory and may require several full-column scans; exact composite-key checks are bounded by the configured row and column limits.

Confidence values describe heuristic strength; they are not calibrated probabilities. A candidate key is evidence of observed uniqueness under the profiling rules, not proof of a business key. Serialized output includes schema_version; treat changes to that output as version-sensitive until a stable compatibility policy is declared.

Development

git clone https://github.com/samhoon000/Oribi.git
cd Oribi
python -m venv .venv

Activate the environment, then install the package and development tools:

python -m pip install -e ".[dev]"
pytest -q
python -m build

See CONTRIBUTING.md for the contribution workflow and DESIGN.md for architecture notes. Run the end-to-end example from the repository root with python -m examples.quickstart.

Planned work

Additional data sources, configurable semantic rules, cross-table foreign-key analysis, and richer profiling options are future work. The current release focuses on pandas DataFrames and deterministic, evidence-bearing heuristics.

License

Oribi is released under the MIT License.

Metadata

Release files for oribi 0.1.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 oribi 0.1.0
File Size Uploaded Provenance Actions
oribi-0.1.0.tar.gz 22.2 kB With provenance Details for oribi-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 44.3 kB

Release files / oribi-0.1.0.tar.gz

Download URL oribi-0.1.0.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
16e0bd4a77b891ac40b02bc4f84a385e5e12b2b964dd8e50334ac19e1f0a6e51
BLAKE2b-256 checksum
How to use checksums
28591b8d49780322a6925b6a77acdda43cef7e256c7cecc9857aad34510d5a2e
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 15, 2026.

Transparency log

Release files / oribi-0.1.0-py3-none-any.whl

Download URL oribi-0.1.0-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dd227952a07275a9f4235529f0dfd604233f44fab8e24e93fccee8f36df3596
BLAKE2b-256 checksum
How to use checksums
f53390791b5cdeab179cb4d7da5fe196798595721c6c3fce17b7882f483ab1bb
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 15, 2026.

Transparency log

Security for oribi 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oribi-0.1.0.tar.gz

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 15, 2026.

Transparency log

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