Metadata-Version: 2.4
Name: gateagent
Version: 0.1.4
Summary: Local gateway for collecting and managing agent events with Google Sheets integration
Author-email: Anshul Basia <anshulbasia@alumni.iitd.ac.in>, Siddharth Goyal <goyal.siddharth22@gmail.com>
Maintainer-email: Anshul Basia <anshulbasia@alumni.iitd.ac.in>, Siddharth Goyal <goyal.siddharth22@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/gateagent/gateway/ext
Project-URL: Repository, https://github.com/gateagent/gateway/ext
Project-URL: Issues, https://github.com/gateagent/gateway/issues
Keywords: agent,gateway,tracking,events,google-sheets,fastapi
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Framework :: FastAPI
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: fastapi>=0.110.0
Requires-Dist: uvicorn>=0.29.0
Requires-Dist: requests>=2.25.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: httpx>=0.24.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"

# 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

```bash
pip install revert-gate
```

## Usage

Start the gateway server:

```bash
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`:

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

## Development

Install with dev dependencies:

```bash
pip install -e ".[dev]"
```

## License

MIT
