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.1.tar.gz (29.4 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.1-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_trustgraph-0.1.1.tar.gz
  • Upload date:
  • Size: 29.4 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.1.tar.gz
Algorithm Hash digest
SHA256 9cbd701b9d558f99c3eeb13fa5fe6b358869f2c901996406f84fc36cbee823b0
MD5 a2a8d8b512e39b28a1a039b7d92a6b43
BLAKE2b-256 9b322242f17b7b56778eb3cfd677c601f8141f4f8dec246fcea1b98ee809a71e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_trustgraph-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 807b0fdafda8217f79bc261c6c73ba1b4174d7ca1be419256e7409175c1d95b7
MD5 5f05607be8d2a67a3bf14bd2bbe3931d
BLAKE2b-256 eacbf574d8972da448c6fbff46a9722c42ded946f9b13160bd7121e48bfd0d0e

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