Skip to main content

Core utilities, schemas and settings for Codex WaaS toolkit

Project description

codex-core

PyPI Python License Documentation

Core utilities, immutable DTOs, and environment-driven settings for the Codex WaaS toolkit. Provides the foundational building blocks and PII masking used by all other Codex components.


Install

# Core only
pip install codex-core

# With Loguru support for advanced structured logging
pip install "codex-core[loguru]"

Quick Start

from codex_core.core.base_dto import BaseDTO

# 1. Define an immutable, PII-aware data transfer object
class UserDTO(BaseDTO):
    id: int
    email: str         # Automatically masked in logs
    phone_number: str  # Automatically masked in logs

user = UserDTO(id=42, email="user@example.com", phone_number="+491511234567")

# 2. Safely log the DTO without leaking personal data
print(user)
# Output: UserDTO(id=42, email='***', phone_number='***')

Modules

Module Extra Description
codex_core.core - Immutable BaseDTO and automated PIIRegistry for GDPR-safe logging.
codex_core.common [loguru] Phone/name normalization and structured logging adapters (TaskLogContext).
codex_core.settings - Environment-driven configuration via BaseCommonSettings (Pydantic Settings).
codex_core.dev [dev] Internal developer tools (BaseCheckRunner, StaticCompiler, ProjectTreeGenerator).

Documentation

Full docs with architecture, API reference, and data flow diagrams:

https://codexdlc.github.io/codex-core/

Part of the Codex ecosystem

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

codex_core-0.2.0.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_core-0.2.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file codex_core-0.2.0.tar.gz.

File metadata

  • Download URL: codex_core-0.2.0.tar.gz
  • Upload date:
  • Size: 46.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for codex_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1058cb69beceb779d2b0d87e292a1d01e0d1d0467a09ceb1419dc552b7048981
MD5 c176843e016d80cfe1c9212ae8e3b691
BLAKE2b-256 35dc6225a11ac1bbb21a495beebf05c047b75792a31884c5aa30d78172d3d909

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_core-0.2.0.tar.gz:

Publisher: publish.yml on CodexDLC/codex-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codex_core-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: codex_core-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for codex_core-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3279a2916e431ce71705570373bac6961512962d776e34ebdb7ccc98703d0ac
MD5 230f4f193f678bc44906615c5a5d4ae7
BLAKE2b-256 a2663de600e984d3c59e9ea9fda7ecf4754a2d5d515189f77d443772dd3584c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_core-0.2.0-py3-none-any.whl:

Publisher: publish.yml on CodexDLC/codex-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page