Registry / observability / g4x-helpers

g4x-helpers

JSON →
library3.0.2pypypi✓ verified 81d ago

Python helpers for G4X applications. Provides utility functions and classes for logging, configuration, monitoring, and common infrastructure patterns. Current version 3.0.2, supports Python 3.10-3.12. Active development, monthly releases.

pip install g4x-helpers
INSTALL
IMPORT
SIG · G4X-HELPERS
G
g4x-helpers
observabilitypythonv3.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

G4Xoutput
from g4x_helpers import G4Xoutput
from g4x_helpers.logging import G4XLogger
import_module
from g4x_helpers import import_module
version
from g4x_helpers import version

Basic usage: initialize logger and config loader.

from g4x_helpers.logging import G4XLogger from g4x_helpers.config import ConfigLoader import os logger = G4XLogger(name='myapp') config = ConfigLoader(prefix='MYAPP', env_file='.env') # Access configuration api_key = config.get('API_KEY', default=os.environ.get('API_KEY', '')) logger.info(f"Starting app with API key present: {bool(api_key)}")
Debug
Known issues
breakingv3.0.0 restructured package: all classes moved from top-level __init__ into submodules (logging, config, monitoring, etc.). Direct imports from g4x_helpers will fail.
fix
Change imports to from g4x_helpers.logging import ..., from g4x_helpers.config import ..., etc.
affects: >=3.0.0
deprecatedv3.0.0 deprecated ConfigLoader(env_prefix=) in favor of prefix= parameter.
fix
Use prefix='MYAPP' instead of env_prefix='MYAPP'.
affects: >=3.0.0
gotchaG4XLogger requires argument name (positional) in v3.0+. Omitting name raises TypeError: G4XLogger() missing 1 required positional argument.
fix
Always pass name='your_app_name' to G4XLogger.
affects: >=3.0.0
Upgrade
Version history
3.0.2latest on PyPI · released Apr 13, 2026
Audit
Dependencies
requestsoptionalHTTP client for API calls
pydanticoptionalData validation and settings management
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
2
Resources
g4x-helpers — pip install g4x-helpers · libregistry