cgx-engine 0.4.1

Core engine for cgx — Tree-sitter parsing, DuckDB graph storage, git analysis, and clustering
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
from auth import AuthService, hash_password
from models import User, Session

auth = AuthService()

def login_endpoint(email: str, password: str):
    return auth.login(email, password)

def get_user_endpoint(user_id: str):
    return User.find_by_email(user_id)

def create_session(user_id: str):
    return Session(user_id)