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.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.2.0-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_trustgraph-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 89ecc759bed642a661a870ad2cdd839ae663836b9e6b1323b9a0bdb3cd2c6e4b
MD5 03174b3608242eea3da0dbfcf3cdb3b1
BLAKE2b-256 7e47476e42b659f7ae155837bfccaa79b5a3df640f50fdd0b8623c7caf9d30e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_trustgraph-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 50.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43203d0b3d2b416ba86274ca078e40e8337b8338b3a98d4b82aeceef825850c6
MD5 3dce34b1455c605c488c1df8fcabe3ae
BLAKE2b-256 df12af74578a111bef343a5d809251ae6766b1a451e7b006efa0bf741fac2438

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