AEGIS — real-time child safety moderation SDK for gaming platforms
Project description
aegis-sdk
Python SDK for the AEGIS real-time child safety moderation API. Protects minors in gaming platforms against cartel recruitment and grooming, with <50ms latency per message.
Install
pip install aegis-sdk
Quickstart
from aegis import AEGISClient
client = AEGISClient(
base_url="https://aegis-production-b461.up.railway.app",
api_key="your-api-key",
)
result = client.analyze(
message="ey bro entra al clan, hay buen jale",
player_id="player_123",
target_id="player_456",
game_id="free-fire-mx",
)
print(result.action) # "block" | "warn" | "allow"
print(result.level) # "high" | "medium" | "low"
print(result.reason) # human-readable explanation
Async
from aegis import AEGISAsyncClient
async with AEGISAsyncClient(api_key="your-api-key") as client:
result = await client.analyze("mensaje", "p1", "p2")
Real-time WebSocket
from aegis import AEGISRealtime
rt = AEGISRealtime(
server_url="wss://aegis-production-b461.up.railway.app",
api_key="your-api-key",
room_id="sala-1",
player_id="player_123",
)
rt.on_alert(lambda alert: print(f"ALERTA: {alert.reason}"))
rt.connect()
rt.send("hola, cómo vas?")
API Reference
| Method | Description |
|---|---|
client.analyze(message, player_id, target_id) |
Analyze one message, returns AnalysisResult |
client.is_safe(message, ...) |
Returns True if message is safe |
client.should_block(message, ...) |
Returns True if message should be blocked |
client.stats() |
Real-time moderation stats |
client.health() |
Check API availability |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aegis_guardian-1.0.0.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aegis_guardian-1.0.0.tar.gz.
File metadata
- Download URL: aegis_guardian-1.0.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d6d5328307ad02280dacc8660d3bca98bd29970411984c09c5366f96ab55d04
|
|
| MD5 |
89876214d5523f38d5a579ee562924e6
|
|
| BLAKE2b-256 |
0d5902aa7667ea57fb8bf997bb16ddf5ac732f8f6c896b9de6e34466baf91551
|
File details
Details for the file aegis_guardian-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aegis_guardian-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bef075ed738c40e3f7fe2d7ea0ffa521a2eae84f5fbc9309a5e5995719c0b47e
|
|
| MD5 |
cd7fb2f53dab7e1ace0a2292822b1274
|
|
| BLAKE2b-256 |
ae45d978107056aaa5f0e31b4999456ef187015ebf6afb2a01507bd826434dd0
|