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.2.1.tar.gz (31.8 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.2.1-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_trustgraph-0.2.1.tar.gz
  • Upload date:
  • Size: 31.8 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.2.1.tar.gz
Algorithm Hash digest
SHA256 9b7b47977ab4aa4b8f4fb277853746cc0fb430a12057753b7ef5ed6be53fb048
MD5 59ea995bd296615eb3c8291e29cdadb8
BLAKE2b-256 8858b0f8e1e06a7be7d2f046fc90a81589aef24dd20be4862fe8bb178e79181e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_trustgraph-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 50.3 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85958c575bfd5f1a5e64df4c5c5aaa70cd3368168615b419be1724e3cdc79802
MD5 ae6fdfb2d7823645fab82a8c44015308
BLAKE2b-256 500b39299b622a945293503528082ec066bb0e0755fdc926f57c3e86b8abda9d

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