Common tools/utilities/configurations used in the RealTime Events echo system.
Project description
RealTimeEvents Common
| Category | Status' and Links |
|---|---|
| General | |
| CD/CI |
Shared tools, logging helpers, and configuration utilities for the RealTime Events ecosystem.
Short Description
rtecommon centralises reusable project infrastructure so RealTime Events services can share configuration,
environment handling, and logging behaviour from one maintained package.
Module Overview
Key Features
- Shared configuration helpers for environment-driven application settings.
- Environment-backed settings models exposed from
rtecommon.configs.settingsfor repo and runtime metadata. - Common logging utilities with
setup_logging, named logger access, and masked environment setting logging. - Packaging and developer tooling aligned for Python
3.10through3.14. - Repository bootstrap scripts for local Python, React, GitHub access, and private package access setup.
- Centralised test coverage for common helpers under
tests/unit/.
Project Structure
src/rtecommon/: Core shared Python modules.src/rtecommon/configs/settings.py: Shared environment-backed settings models loaded from the repo.envfile.src/rtecommon/logging/: Shared logging configuration, formatters, and helper functions.tests/unit/: Unit tests for reusable modules.tasks/: Working task notes and repository lessons for Codex-assisted changes.- Root setup scripts:
InstallDevEnv.ps1,InstallPy.ps1,InstallReact.ps1,install_react.sh,SetupDotEnv.ps1,SetupGitHubAccess.ps1, andSetupPrivateRepoAccess.ps1. ReleaseNotes.md: Published branch-to-release change summaries.legacy/: Archived material excluded from normal test runs.
Tooling Scripts
InstallDevEnv.ps1: Validates the supported Python range and prepares the local development toolchain.InstallPy.ps1: Installs or updates the local Python runtime on Windows when required for the repo.InstallReact.ps1andinstall_react.sh: Bootstrap the React toolchain on Windows or shell-based environments.SetupDotEnv.ps1: Regenerates the repository.envfile from the maintained template.SetupGitHubAccess.ps1andSetupPrivateRepoAccess.ps1: Configure repository and package access for local work.
Getting Started
- Run
poetry install. - Create the repo
.envviaSetupDotEnv.ps1. - Set or verify
PROJECT_NAME,PROJECT_DIR, andVENV_ENVIRONMENTin the generated.envbefore running code that importsrtecommon.configs.settings. - Optionally run
InstallDevEnv.ps1to validate the interpreter version and prepare the local toolchain. - Use
InstallPy.ps1,InstallReact.ps1, orinstall_react.shwhen the local environment still needs language or frontend tooling support. - Import
rtecommonfrom a consuming service and configure logging withsetup_logging. - Run the active test suite with
poetry run pytest.
Usage
from rtecommon.configs.settings import env_settings
from rtecommon.logging import get_named_loggers
from rtecommon.logging import log_environment_settings
from rtecommon.logging import setup_logging
log_path = setup_logging(
log_backup_count=7,
log_dir="logs",
log_level_console="INFO",
log_level_file="DEBUG",
service_name="rtecommon",
)
log_all, log_console, log_file = get_named_loggers()
log_environment_settings(
{
"PROJECT_NAME": env_settings.PROJECT_NAME,
"SERVICE_NAME": "rtecommon",
"VENV_ENVIRONMENT": env_settings.VENV_ENVIRONMENT,
}
)
Release Notes Workflow
- Commit the intended branch changes.
- Compare the current branch against
master. - Prepend a new section to
ReleaseNotes.mdwithout changing older entries. - Group the changes under clear headings and end the new entry with the divider line.
- Publish the release branch and PR through the normal repository workflow.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 rtecommon-3.0.0.tar.gz.
File metadata
- Download URL: rtecommon-3.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.13.12 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c1d72c83b8f71bded1f04eb09852ffba4af20ff21ae6a5067064e42c8ebadfc
|
|
| MD5 |
f6d9ccdc1c8a96f0c9a12f3632762de6
|
|
| BLAKE2b-256 |
29e6ec1b4cadb56ec173db3312fc4e571aff0035c190eb46c025fe41af5156d4
|
File details
Details for the file rtecommon-3.0.0-py3-none-any.whl.
File metadata
- Download URL: rtecommon-3.0.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.13.12 Linux/6.17.0-1010-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31858a2c7386891677d96c85179e48bb9ec421d617ebb0ca74ebdd68b4cb98af
|
|
| MD5 |
557255e31898eff059589eafa78d5b29
|
|
| BLAKE2b-256 |
0d3dcf5eef8cd4aa12ffc0c05621b44a90d0f30f820f3d32375b66c2b2d0af4f
|