How jopedro-labs/core-lib works
core-lib is a shared Python support library: callers use its safe file and logging utilities, Google Drive and Discord clients, plus an internal quality-audit agent and a Drive API revision monitor. The Drive client authenticates through OAuth2 before operating on remote files; the monitor separately checks Google's Discovery data and reports results to its execution environment. Several README capabilities are documented but their implementation excerpts were not supplied, so those links are documented rather than inferred from unsampled code.
Main entry points: gdrive_update_bot.py Drive revision monitor · gdrive_service.py Drive operations · gdrive_helpers.py Drive helpers · discord_service.py Discord notifier
Components 15
Core utilities
- Safe file reader
core_lib/file_utils/file_utils.py - Terminal logger
core_lib/logger/logger.py
Service integrations
- Drive operations
core_lib/gdrive/gdrive_service.py - OAuth credentials
core_lib/gdrive/gdrive_auth.py - Drive helpers
core_lib/gdrive/gdrive_helpers.py - Discord notifier
core_lib/discord/discord_service.py
Maintenance tools
- Quality evaluation agent
scripts/quality_eval_agent.py - Drive revision monitor
scripts/gdrive_update_bot.py - Revision state file
Other components
- Library caller
- Google Drive API
- Discord API
- Gemini AI
- Google Discovery Service
- GitHub Actions
Connections 15
- Library caller → Safe file reader: reads safely
README.md - Library caller → Terminal logger: logs messages
README.md - Library caller → Drive operations: operates files
README.md - Drive operations → OAuth credentials: gets credentials
core_lib/gdrive/gdrive_service.py - Drive operations → Google Drive API: queries and transfers
core_lib/gdrive/gdrive_service.py - Drive helpers → Drive operations: verifies folder
core_lib/gdrive/gdrive_helpers.py - Library caller → Drive helpers: validates folder ID
README.md - Library caller → Discord notifier: sends notifications
README.md - Discord notifier → Discord API: posts messages
core_lib/discord/discord_service.py - Library caller → Quality evaluation agent: runs audit
README.md - Quality evaluation agent → Gemini AI: analyzes quality
README.md - Library caller → Drive revision monitor: runs monitor
README.md - Drive revision monitor → Google Discovery Service: fetches revisions
scripts/gdrive_update_bot.py - Drive revision monitor → Revision state file: loads and saves
scripts/gdrive_update_bot.py - Drive revision monitor → GitHub Actions: writes results
scripts/gdrive_update_bot.py