Metadata-Version: 2.4
Name: ai-trustgraph
Version: 0.2.0
Summary: AI Trust Infrastructure for Enterprise Data and AI Agents
Project-URL: Homepage, https://github.com/HONEYPOTZ-AI/TRUSTGRAPH
Project-URL: Documentation, https://github.com/HONEYPOTZ-AI/TRUSTGRAPH#readme
Project-URL: Repository, https://github.com/HONEYPOTZ-AI/TRUSTGRAPH
Author: TrustGraph Authors
License: MIT
Keywords: ai,data-lineage,enterprise,governance,semantic-layer,trust
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Requires-Dist: alembic
Requires-Dist: databricks-sql-connector
Requires-Dist: email-validator
Requires-Dist: fastapi>=0.100
Requires-Dist: networkx
Requires-Dist: passlib[bcrypt]
Requires-Dist: psycopg2-binary
Requires-Dist: pydantic-settings
Requires-Dist: pydantic>=2.0
Requires-Dist: python-dotenv
Requires-Dist: python-jose[cryptography]
Requires-Dist: requests
Requires-Dist: snowflake-connector-python
Requires-Dist: sqlalchemy>=2.0
Requires-Dist: uvicorn[standard]
Provides-Extra: dev
Requires-Dist: bcrypt; extra == 'dev'
Requires-Dist: httpx; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Provides-Extra: enterprise
Requires-Dist: ai-trustgraph-enterprise; extra == 'enterprise'
Description-Content-Type: text/markdown

# TrustGraph API

AI data trust layer for enterprise data platforms. Connects to Snowflake and Databricks, registers data sources, stores metadata in PostgreSQL, and exposes a FastAPI backend.

## Quick Start

```bash
cd trustgraph-api
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
docker compose up -d postgres
cp .env.example .env
uvicorn app.main:app --reload
```

Open http://localhost:8000/docs for Swagger UI.

## Endpoints

| Method | Path | Description |
|--------|------|-------------|
| GET | /health | Health check |
| POST | /auth/register | Register new user |
| POST | /auth/login | Login, get JWT |
| GET | /auth/me | Current user info |
| POST | /sources | Create data source |
| GET | /sources | List all sources |
| GET | /sources/{id} | Get source by ID |
| DELETE | /sources/{id} | Delete source |
| POST | /sources/snowflake/test | Test Snowflake connection |
| POST | /sources/databricks/test | Test Databricks connection |

## Running Tests

```bash
python -m pytest tests/ -v
```

## Docker

```bash
docker compose up --build
```

## Project Structure

```
trustgraph-api/
├── app/
│   ├── api/           # Route handlers
│   │   ├── auth.py
│   │   ├── health.py
│   │   ├── source_tests.py
│   │   └── sources.py
│   ├── auth/          # JWT and security
│   │   ├── dependencies.py
│   │   └── security.py
│   ├── connectors/    # DB connectors
│   │   ├── databricks_connector.py
│   │   └── snowflake_connector.py
│   ├── db/            # Database engine/session
│   │   ├── base.py
│   │   ├── engine.py
│   │   └── session.py
│   ├── models/        # ORM models
│   │   ├── data_source.py
│   │   ├── dataset.py
│   │   └── user.py
│   ├── schemas/       # Pydantic schemas
│   │   ├── auth.py
│   │   ├── dataset.py
│   │   └── source.py
│   ├── services/      # Business logic
│   │   ├── metadata_service.py
│   │   └── source_service.py
│   ├── main.py
│   └── settings.py
├── tests/
├── Dockerfile
├── docker-compose.yml
├── requirements.txt
└── .env.example
```