Skip to main content

AI Trust Infrastructure for Enterprise Data and AI Agents

Project description

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

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

python -m pytest tests/ -v

Docker

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

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

ai_trustgraph-0.1.0.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

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

ai_trustgraph-0.1.0-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

Details for the file ai_trustgraph-0.1.0.tar.gz.

File metadata

  • Download URL: ai_trustgraph-0.1.0.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for ai_trustgraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac273a9ead700cdb0072134fd391fc55b445e147e539c500feb6139fd1b64ee1
MD5 ace8efdcbdb74a8930980093e7871566
BLAKE2b-256 b597e8279a4b6b4e399de9cb1d1d305155f817d859531d2153622d61c1e86573

See more details on using hashes here.

File details

Details for the file ai_trustgraph-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ai_trustgraph-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 52.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for ai_trustgraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab58a7fe3d8eca3636d69c8eab229fed2e6fbb3e066b735844eed8a2cae6461a
MD5 c0ffb2994a8e14fcb49fa5ed34af4bc2
BLAKE2b-256 792fb003c76300d0bd20f25eb70f2162703995b000dc0bad5b760500a2e3b6b8

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