Skip to main content

Track and detect suspicious dataframe transformations.

Project description

TraceFrame

Python License Track and detect suspicious pandas dataframe transformations.

TraceFrame helps developers debug silent dataframe corruption, unexpected scaling issues, and transformation anomalies.

Features

  • Track dataframe mutations
  • Detect suspicious numeric shifts
  • Generate readable reports
  • Lightweight and local-first
  • Simple API

Installation

pip install traceframe

Quick Start

import pandas as pd

from traceframe import watch

df = pd.DataFrame(
    {
        "salary": [50000, 60000, 70000]
    }
)

df = watch(df)

df["salary"] = df["salary"] / 1000

df.trace_report()

Example Output

[traceframe warning]
- Large scale shift detected in 'salary'

TraceFrame Report

Development

Clone repository:

git clone YOUR_REPO_URL

Install dependencies:

uv sync

Run tests:

uv run pytest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

traceframe-0.1.1.tar.gz (61.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

traceframe-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file traceframe-0.1.1.tar.gz.

File metadata

  • Download URL: traceframe-0.1.1.tar.gz
  • Upload date:
  • Size: 61.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for traceframe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 02215ebcf3dbe5f8674f92bcef75b040ec36e0e8f29369d28450c02016c09251
MD5 1518f62db8d562d14492a862a407070c
BLAKE2b-256 1cddd329b767c345c0d2e697b928b3632ba105373123527a6a9d97bd66fa6834

See more details on using hashes here.

File details

Details for the file traceframe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: traceframe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for traceframe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06d9bfaacb4891562a03c31e1fbdbce2d534becf73436d4907e7704883ad53b5
MD5 3ab18235a5afcf871aed851c8ad9c231
BLAKE2b-256 13d669b710851716ce2683b11978bf4773b2ae51ac7bbe2ce81d73c31cb5eaf0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page