Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Agent Paranoid Android

PyPI CI Documentation OpenSSF Scorecard License: MIT Safety-first, deterministic synthetic test data generation from CSV structure, safe profiles, reviewed DatasetSpec files, and allowlisted PostgreSQL or Trino metadata. The CLI and Python library are primary; PostgreSQL, MCP, Trino, and AI providers are optional integrations. The base package supports CSV/JSON workflows without installing a database client, SQL parser, or MCP SDK. Source rows are profiled, never shuffled or copied into generated output.

Read the documentation for tutorials, concepts, configuration, MCP setup, and troubleshooting. Stable release: 1.2.0 (recommended). Preview 1.3.0rc1 (explicit opt-in): python3 -m pip install "agent-paranoid-android==1.3.0rc1". Package: agent-paranoid-android; CLI: test-data-agent. The preview adds credential-free JDBC-style endpoints, qualified column wildcards, and profile-query; stable 1.2.0 retains the exact component/allowlist database workflows.

What It Preserves

From bounded evidence and a reviewed DatasetSpec, generation can preserve schema and types, nullability, ranked distribution and scale shape, approved FK graphs, temporal dependencies, and executable business rules. AI may propose relationships and rules; human review and deterministic validation remain the authority boundary.

It never copies source rows or preserves real PII. Exact source literals remain off by default; an explicit field-scoped allowlist may preserve only a reviewed, bounded, non-sensitive business enum or constant in local profiles, deterministic generation, and local SQL export. External providers and default MCP responses remain source-literal free. The project does not certify statistical anonymity, protection from every re-identification attack, or cross-environment byte identity. A seed provides logical reproducibility under the recorded package, dependency, locale, and serializer environment.

Install

Python 3.11 or newer is required. CI tests CPython 3.11 through 3.14. Most users should install the stable release:

python3 -m pip install "agent-paranoid-android==1.2.0"
test-data-agent doctor

Install only the stable optional features you use:

python3 -m pip install "agent-paranoid-android[parquet]==1.2.0"
python3 -m pip install "agent-paranoid-android[mcp]==1.2.0"
python3 -m pip install "agent-paranoid-android[trino]==1.2.0"
python3 -m pip install "agent-paranoid-android[postgres]==1.2.0"
python3 -m pip install "agent-paranoid-android[mcp,trino]==1.2.0"
python3 -m pip install "agent-paranoid-android[openai]==1.2.0"
python3 -m pip install "agent-paranoid-android[gigachat]==1.2.0"

The postgres extra provides the Psycopg driver for direct read-only PostgreSQL profiling. The trino extra contains the Trino client and safe SQL parser; add mcp when using the Trino MCP server. The experimental GigaChat advisor is an explicit opt-in through the gigachat extra; OpenAI remains the default provider. The default aggregate-only tools return summaries, not source rows. The explicit opt-in row-returning tools include run_safe_select, which requires TRINO_ENABLE_SAFE_SELECT=true; bounded, masked rows may contain allowed source values and are not source-free, PII-free, anonymous, or privacy-safe.

First Offline Run

Run the installed package with its bundled fictional customer fixture. No checkout, network, Trino, MCP, or provider is required:

test-data-agent demo --output out/demo

A successful run reports:

Generated synthetic dataset: out/demo | rows: customers=12 | seed: 20260801 | validation: passed | source rows copied: no

Representative deterministic output:

customer_id,email,segment,signup_date
syn_customers_00000001,amber21@example.test,category_1,2024-02-10

The demo preserves evidenced column names and types, non-null shape, category rank, and date range. Its fixture has no relationship or business-rule evidence, so the demo makes no claim about those properties. The output folder contains:

  • customers.csv;
  • csv_profile.json;
  • dataset_spec.json;
  • validation_report.json;
  • generation_manifest.json.

The destination must not already exist. Review the manifest and effective spec before accepting any dataset. Then follow First CSV Dataset to profile your own input.

Choose A Guide

Goal Documentation
Validate the workflow with a real development or analytics task Product Validation Pilot
Generate from one CSV First CSV Dataset
Generate related tables Related Tables
Profile PostgreSQL and export executable SQL PostgreSQL workflow · component/JDBC endpoint · exact or qualified-wildcard columns · reviewed query file · Runnable examples
Profile through Trino Trino workflow · component/JDBC endpoint · exact or qualified-wildcard columns · reviewed query file · Runnable examples
Review specs and output Review The Output
Add deterministic business rules Business Rules
Use the review-first agent flow Agent Design
Use the experimental GigaChat advisor GigaChat workflow
Connect an AI client or provider AI Integration · Provider Adapter · Runnable MCP example
Run isolated OCI images Container Deployment
Understand the trust boundaries Safety Model
Configure limits and database access Configuration
Inspect CSV, JSON, SQL, and Parquet output Runnable output-format example; use export-postgres-sql for one executable PostgreSQL DDL+INSERT file
Recover from an error Troubleshooting
Automate JSON, exit codes, and shell completion CLI Reference
Decide whether this tool fits Choose An Approach

Safety

The project derives bounded metadata such as field types, null ratios, ranges, masked patterns, and safe low-cardinality distributions. It rejects or bounds:

  • raw detected PII, credentials, tokens, and private keys in profiles;
  • source-row copying and source/output path reuse;
  • exact literals outside an explicit local field allowlist and its bounded non-sensitive content checks;
  • path traversal and symlink escapes through generator MCP tools;
  • unrestricted SQL, writes, and query files outside the bounded SELECT policy;
  • oversized input, output, rule, query, and generation work.

Human review is still required for ambiguous identifiers, rare free text, inferred relationships, and organization-specific privacy policy.

Development

python3 -m pip install "uv==0.11.23"
uv sync --frozen --all-extras --no-install-project
uv sync --frozen --all-extras --no-editable --no-build-isolation
uv run --no-sync scripts/check_release.sh

See Contributing, Support, Governance, Code Of Conduct, Security Policy, Changelog, and License.

Releases use tokenless PyPI Trusted Publishing with verified wheels/source distributions, checksums, SBOMs, and GitHub attestations.

AI-Assisted Development

AI-assisted changes require human review and tests; never send production data, raw PII, credentials, or tokens to AI. The name nods to Radiohead's "Paranoid Android"; this project is unaffiliated.

Download files

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

Source Distribution

agent_paranoid_android-1.3.0rc1.tar.gz (947.3 kB view details)

Uploaded Source

Built Distribution

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

agent_paranoid_android-1.3.0rc1-py3-none-any.whl (241.0 kB view details)

Uploaded Python 3

File details

Details for the file agent_paranoid_android-1.3.0rc1.tar.gz.

File metadata

File hashes

Hashes for agent_paranoid_android-1.3.0rc1.tar.gz
Algorithm Hash digest
SHA256 c59d5eae2de902487bccf2d38ae2c3651957e6d5ef5b36000d8176f8e2d456ea
MD5 55c5d335277427ebfe733f34985edd6b
BLAKE2b-256 abeca95d44fade2daff61290eb6b7216c476291008fc3aebf0edb36fc100dfe1

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_paranoid_android-1.3.0rc1.tar.gz:

Publisher: publish-pypi.yml on wa-pis/agent-paranoid-android

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_paranoid_android-1.3.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_paranoid_android-1.3.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 60b7fdabe785fc25b9fadc4edaba431e1c42c212cbc9ce6beb102baa2d9a1124
MD5 14f13efde277fdd6341c020a44b04ef3
BLAKE2b-256 d5243afeff0495f20f0666c89eb5df7db4ee7e41a3ea7fe4f353e47321fdad18

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_paranoid_android-1.3.0rc1-py3-none-any.whl:

Publisher: publish-pypi.yml on wa-pis/agent-paranoid-android

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.4.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

This release

1.3.0rc1 This release

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

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