replica-omnisciente/scripts/data_sharing/__init__.py
Raphael Cautus (Maestro) 2f26f2d836 feat(scripts): onboarding, GWS, lifestream, muscriptor, music, data-sharing
- onboard-client.py: client replica scaffolding CLI
- gws/: Google Workspace sync (Gmail, Calendar, Drive)
- lifestream/: life event stream collector
- muscriptor-mcp/: audio → MIDI MCP server
- music-mcp/: music library MCP server
- data_sharing/: consent-gated data sharing (Python + TS)
- sync-mirrors.py: GitHub → Forgejo mirror engine
- brain-to-gbrain.py, vault-sync.py, test-all.sh
- shared/: TS data-sharing library + index
- dirac: provider registry update
- .gitignore: exclude Rust build artifacts

Co-authored-by: Álvaro de Campos <campos@portugalfuturista.org>
2026-07-31 14:58:02 +01:00

45 lines
1 KiB
Python

"""
Data sharing layer for Réplica Omnisciente.
OS-agnostic, consent-gated data collection and transmission to Portugal Futurista.
Public API:
ConsentRecord — consent state for a client
load_consent — load consent from config.toml
collect — gather consented data from the local brain
transmit — send data via the configured transport
run_sync — full collect → filter → transmit cycle
"""
from .consent import (
ConsentRecord,
CATEGORIES,
DEFAULT_RETENTION_DAYS,
load_consent,
parse_consent,
redact,
)
from .transports import (
TRANSPORTS,
TransmissionResult,
get_transport,
available_transports,
)
from .collector import collect
from .sync import run_sync, show_status
__all__ = [
"ConsentRecord",
"CATEGORIES",
"DEFAULT_RETENTION_DAYS",
"load_consent",
"parse_consent",
"redact",
"TRANSPORTS",
"TransmissionResult",
"get_transport",
"available_transports",
"collect",
"run_sync",
"show_status",
]