Skip to main content

Local gateway for collecting and managing agent events with Google Sheets integration

Project description

Revert Gate

A local gateway server for collecting and managing agent events with Google Sheets integration.

Features

  • FastAPI-based REST API for tracking agent events
  • SQLite database for event storage
  • Google OAuth2 authentication
  • Google Sheets integration for data export
  • Simple CLI to start the server

Installation

pip install revert-gate

Usage

Start the gateway server:

revert-gate

The server will start on http://0.0.0.0:5001

API Endpoints

  • GET /api/healthcheck - Health check endpoint
  • POST /api/track - Track agent events
  • GET /api/events - Retrieve tracked events
  • GET /api/auth/google/url - Get Google OAuth URL
  • GET /api/auth/google/callback - OAuth callback handler

Configuration

Set your Google OAuth credentials in src/google_oauth.py:

GOOGLE_CLIENT_ID = "your-client-id.apps.googleusercontent.com"
GOOGLE_CLIENT_SECRET = "your-client-secret"

Development

Install with dev dependencies:

pip install -e ".[dev]"

License

MIT

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

gateagent-0.1.4.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

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

gateagent-0.1.4-py3-none-any.whl (56.1 kB view details)

Uploaded Python 3

File details

Details for the file gateagent-0.1.4.tar.gz.

File metadata

  • Download URL: gateagent-0.1.4.tar.gz
  • Upload date:
  • Size: 54.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for gateagent-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bc3315ee91d3737f50b498a776916f5b98aa961e3a83fc5d6c7ca28cdea0ba20
MD5 35547f35a4801c3ab36490c61d231dec
BLAKE2b-256 e03a7836fa5183dfb3f97e0d8cb523d86aa80e67b49856dea59a0b9452543e18

See more details on using hashes here.

File details

Details for the file gateagent-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: gateagent-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for gateagent-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4110a9f3e5bcddc50ac994d476042811b2614a8608e3e7e04be432d94d900902
MD5 601514d523a741a1026a93962597917f
BLAKE2b-256 232ac9de300fbf13754c88220a1971be71a4136e23a85c202f35278e35edf37b

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