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
Release files for aegis-guardian 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aegis_guardian-1.0.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aegis_guardian-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / aegis_guardian-1.0.0.tar.gz
| Download URL | aegis_guardian-1.0.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d6d5328307ad02280dacc8660d3bca98bd29970411984c09c5366f96ab55d04
|
|
BLAKE2b-256 checksum How to use checksums |
0d5902aa7667ea57fb8bf997bb16ddf5ac732f8f6c896b9de6e34466baf91551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / aegis_guardian-1.0.0-py3-none-any.whl
| Download URL | aegis_guardian-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bef075ed738c40e3f7fe2d7ea0ffa521a2eae84f5fbc9309a5e5995719c0b47e
|
|
BLAKE2b-256 checksum How to use checksums |
ae45d978107056aaa5f0e31b4999456ef187015ebf6afb2a01507bd826434dd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|