| Name | provide-foundation JSON |
| Version |
0.0.1026
JSON |
| download |
| home_page | None |
| Summary | A comprehensive Python foundation library for building robust applications with structured logging, CLI framework, configuration management, and essential building blocks. |
| upload_time | 2025-10-27 01:34:35 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.11 |
| license | None |
| keywords |
telemetry
logging
tracing
python
pyvider
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# provide.foundation
**A Comprehensive Python Foundation Library for Modern Applications**
---
**provide.foundation** is a comprehensive foundation library for Python applications, offering structured logging, CLI utilities, configuration management, error handling, and essential application building blocks. Built with modern Python practices, it provides the core infrastructure that production applications need.
## Quality Standards
**provide.foundation** maintains high standards for code quality, testing, and reliability:
- **High Test Coverage (>80%)** with 1000+ comprehensive tests
- **Extensive 100% coverage** of core components and critical modules
- **Comprehensive Security Testing** with path traversal, symlink validation, and input sanitization
- **Performance Benchmarked** logging, transport, and archive operations
- **Type-Safe Codebase** with comprehensive type annotations
- **Automated Quality Checks** with ruff, mypy, and bandit
---
### Optional Dependencies
provide.foundation has optional feature sets that require additional dependencies:
| Feature | Install Command | Required For |
|---------|----------------|--------------|
| **Basic logging** | `pip install provide-foundation` | Core logging functionality |
| **CLI framework** | `pip install provide-foundation[cli]` | Command-line interface features |
| **Cryptography** | `pip install provide-foundation[crypto]` | Hash functions, digital signatures, certificates |
| **HTTP Transport** | `pip install provide-foundation[transport]` | HTTP client utilities and transport features |
| **OpenTelemetry** | `pip install provide-foundation[opentelemetry]` | Distributed tracing and metrics |
| **All features** | `pip install provide-foundation[all]` | Everything above |
> **Quick Start Tip**: For immediate use with just logging, install the base package. Add extras as needed.
---
## What's Included
**provide.foundation** offers a comprehensive toolkit for building robust applications:
### Core Components
- **Structured Logging** - Beautiful, performant logging built on `structlog` with event-enriched structured logging and zero configuration required
- **Metrics** - Lightweight and extensible metrics collection with optional OpenTelemetry integration
- **CLI Framework** - Build command-line interfaces with automatic help generation and component registration (requires `[cli]` extra)
- **Configuration Management** - Flexible configuration system supporting environment variables, files, and runtime updates
- **Error Handling** - Comprehensive error handling with retry logic and error boundaries
- **Resilience Patterns** - Suite of decorators for building reliable applications (retry, circuit breaker, bulkhead)
- **Concurrency Utilities** - High-level utilities for managing asynchronous tasks and thread-safe operations
- **Cryptographic Utilities** - Comprehensive cryptographic operations with modern algorithms and secure defaults (requires `[crypto]` extra)
- **File Operations** - Atomic file operations with format support and safety guarantees
- **Archive Operations** - Create and extract archives with support for TAR, ZIP, GZIP, and BZIP2 formats
- **Serialization** - Safe and consistent JSON serialization and deserialization
- **Console I/O** - Enhanced console input/output with color support, JSON mode, and interactive prompts
- **Formatting Utilities** - Collection of helpers for formatting text, numbers, and data structures
- **Platform Utilities** - Cross-platform detection and system information gathering
- **Process Execution** - Safe subprocess execution with streaming and async support
- **Hub and Registry** - Central system for managing application components, commands, and resources
---
## Architecture & Design Philosophy
provide.foundation is intentionally designed as a **foundation layer**, not a full-stack framework. Understanding our architectural decisions helps teams evaluate whether the library aligns with their requirements.
### When to Use provide.foundation
**Excellent fit:**
- CLI applications and developer tools
- Microservices with structured logging needs
- Data processing pipelines
- Background task processors
**Good fit (with awareness):**
- Web APIs (use for logging, not HTTP server)
- Task processors (Celery, RQ)
- Libraries needing structured logging
**Consider alternatives:**
- Ultra-low latency systems (<100μs requirements) - e.g., HFT systems, real-time gaming servers where Foundation's lock-based registry adds unwanted overhead
- Full-stack framework needs (use Django, Rails) - Foundation provides logging/config but not ORM, templating, or routing
- Tool stack incompatibility - e.g., if your team standardized on Pydantic models (Foundation uses attrs) or loguru (Foundation uses structlog)
### Key Design Decisions
**Tool Stack Philosophy**: Built on proven tools (attrs, structlog, click) with strong opinions for consistency. Trade-off: less flexibility, but cohesive and well-tested stack.
**Threading Model**: Registry uses `threading.RLock` (not `asyncio.Lock`). Negligible impact for typical use cases (CLI apps, initialization-time registration, read-heavy workloads). For high-throughput async web services (>10k req/sec) with runtime registration in hot paths, consider async-native alternatives.
**Global State Pattern**: Singletons (`get_hub()`, `logger`) for ergonomic APIs. Mitigation: `provide-testkit` provides `reset_foundation_setup_for_testing()` for clean test state.
**Intentional Scope**: Provides logging, configuration, CLI patterns. Does NOT provide web frameworks, databases, auth, or templates. Integrate with FastAPI/Flask/Django for web applications.
<p align="center">
Built by <a href="https://provide.io">provide.io</a>
</p>
Raw data
{
"_id": null,
"home_page": null,
"name": "provide-foundation",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": "\"provide.io\" <code@provide.io>",
"keywords": "telemetry, logging, tracing, python, pyvider",
"author": null,
"author_email": "Tim Perkins <code@tim.life>",
"download_url": "https://files.pythonhosted.org/packages/c1/66/25d912f271c19df2fe1afa31b05d55aea7db70b3d1b3cb3039f3110a1b6d/provide_foundation-0.0.1026.tar.gz",
"platform": null,
"description": "# provide.foundation\n\n**A Comprehensive Python Foundation Library for Modern Applications**\n\n---\n\n**provide.foundation** is a comprehensive foundation library for Python applications, offering structured logging, CLI utilities, configuration management, error handling, and essential application building blocks. Built with modern Python practices, it provides the core infrastructure that production applications need.\n\n## Quality Standards\n\n**provide.foundation** maintains high standards for code quality, testing, and reliability:\n\n- **High Test Coverage (>80%)** with 1000+ comprehensive tests\n- **Extensive 100% coverage** of core components and critical modules\n- **Comprehensive Security Testing** with path traversal, symlink validation, and input sanitization\n- **Performance Benchmarked** logging, transport, and archive operations\n- **Type-Safe Codebase** with comprehensive type annotations\n- **Automated Quality Checks** with ruff, mypy, and bandit\n\n---\n\n### Optional Dependencies\n\nprovide.foundation has optional feature sets that require additional dependencies:\n\n| Feature | Install Command | Required For |\n|---------|----------------|--------------|\n| **Basic logging** | `pip install provide-foundation` | Core logging functionality |\n| **CLI framework** | `pip install provide-foundation[cli]` | Command-line interface features |\n| **Cryptography** | `pip install provide-foundation[crypto]` | Hash functions, digital signatures, certificates |\n| **HTTP Transport** | `pip install provide-foundation[transport]` | HTTP client utilities and transport features |\n| **OpenTelemetry** | `pip install provide-foundation[opentelemetry]` | Distributed tracing and metrics |\n| **All features** | `pip install provide-foundation[all]` | Everything above |\n\n> **Quick Start Tip**: For immediate use with just logging, install the base package. Add extras as needed.\n\n---\n\n## What's Included\n\n**provide.foundation** offers a comprehensive toolkit for building robust applications:\n\n### Core Components\n\n- **Structured Logging** - Beautiful, performant logging built on `structlog` with event-enriched structured logging and zero configuration required\n- **Metrics** - Lightweight and extensible metrics collection with optional OpenTelemetry integration\n- **CLI Framework** - Build command-line interfaces with automatic help generation and component registration (requires `[cli]` extra)\n- **Configuration Management** - Flexible configuration system supporting environment variables, files, and runtime updates\n- **Error Handling** - Comprehensive error handling with retry logic and error boundaries\n- **Resilience Patterns** - Suite of decorators for building reliable applications (retry, circuit breaker, bulkhead)\n- **Concurrency Utilities** - High-level utilities for managing asynchronous tasks and thread-safe operations\n- **Cryptographic Utilities** - Comprehensive cryptographic operations with modern algorithms and secure defaults (requires `[crypto]` extra)\n- **File Operations** - Atomic file operations with format support and safety guarantees\n- **Archive Operations** - Create and extract archives with support for TAR, ZIP, GZIP, and BZIP2 formats\n- **Serialization** - Safe and consistent JSON serialization and deserialization\n- **Console I/O** - Enhanced console input/output with color support, JSON mode, and interactive prompts\n- **Formatting Utilities** - Collection of helpers for formatting text, numbers, and data structures\n- **Platform Utilities** - Cross-platform detection and system information gathering\n- **Process Execution** - Safe subprocess execution with streaming and async support\n- **Hub and Registry** - Central system for managing application components, commands, and resources\n\n---\n\n## Architecture & Design Philosophy\n\nprovide.foundation is intentionally designed as a **foundation layer**, not a full-stack framework. Understanding our architectural decisions helps teams evaluate whether the library aligns with their requirements.\n\n### When to Use provide.foundation\n\n**Excellent fit:**\n- CLI applications and developer tools\n- Microservices with structured logging needs\n- Data processing pipelines\n- Background task processors\n\n**Good fit (with awareness):**\n- Web APIs (use for logging, not HTTP server)\n- Task processors (Celery, RQ)\n- Libraries needing structured logging\n\n**Consider alternatives:**\n- Ultra-low latency systems (<100\u03bcs requirements) - e.g., HFT systems, real-time gaming servers where Foundation's lock-based registry adds unwanted overhead\n- Full-stack framework needs (use Django, Rails) - Foundation provides logging/config but not ORM, templating, or routing\n- Tool stack incompatibility - e.g., if your team standardized on Pydantic models (Foundation uses attrs) or loguru (Foundation uses structlog)\n\n### Key Design Decisions\n\n**Tool Stack Philosophy**: Built on proven tools (attrs, structlog, click) with strong opinions for consistency. Trade-off: less flexibility, but cohesive and well-tested stack.\n\n**Threading Model**: Registry uses `threading.RLock` (not `asyncio.Lock`). Negligible impact for typical use cases (CLI apps, initialization-time registration, read-heavy workloads). For high-throughput async web services (>10k req/sec) with runtime registration in hot paths, consider async-native alternatives.\n\n**Global State Pattern**: Singletons (`get_hub()`, `logger`) for ergonomic APIs. Mitigation: `provide-testkit` provides `reset_foundation_setup_for_testing()` for clean test state.\n\n**Intentional Scope**: Provides logging, configuration, CLI patterns. Does NOT provide web frameworks, databases, auth, or templates. Integrate with FastAPI/Flask/Django for web applications.\n\n<p align=\"center\">\n Built by <a href=\"https://provide.io\">provide.io</a>\n</p>\n",
"bugtrack_url": null,
"license": null,
"summary": "A comprehensive Python foundation library for building robust applications with structured logging, CLI framework, configuration management, and essential building blocks.",
"version": "0.0.1026",
"project_urls": {
"Documentation": "https://foundry.provide.io/foundation/",
"Examples": "https://github.com/provide-io/provide-foundation/tree/main/examples",
"Homepage": "https://github.com/provide-io/provide-foundation",
"Issues": "https://github.com/provide-io/provide-foundation/issues",
"Repository": "https://github.com/provide-io/provide-foundation"
},
"split_keywords": [
"telemetry",
" logging",
" tracing",
" python",
" pyvider"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "befad1adcf5e66fca1751b68675503e5c0cf6a60918ac8ba3941bf6551059e32",
"md5": "882ad72bf243e0aa966aed18b6f889f1",
"sha256": "b40949afd0707b26a914bd1a721e7f189a056029d7cf90263b575bf95caf266f"
},
"downloads": -1,
"filename": "provide_foundation-0.0.1026-py3-none-any.whl",
"has_sig": false,
"md5_digest": "882ad72bf243e0aa966aed18b6f889f1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 615246,
"upload_time": "2025-10-27T01:34:34",
"upload_time_iso_8601": "2025-10-27T01:34:34.177531Z",
"url": "https://files.pythonhosted.org/packages/be/fa/d1adcf5e66fca1751b68675503e5c0cf6a60918ac8ba3941bf6551059e32/provide_foundation-0.0.1026-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c16625d912f271c19df2fe1afa31b05d55aea7db70b3d1b3cb3039f3110a1b6d",
"md5": "a86a6a6a4d0d7ca025ee5bedc4a38726",
"sha256": "209034c7e039aa5da06df5fde665873b3faa855c38ef93d1f22a0a90a6f0a1b0"
},
"downloads": -1,
"filename": "provide_foundation-0.0.1026.tar.gz",
"has_sig": false,
"md5_digest": "a86a6a6a4d0d7ca025ee5bedc4a38726",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 410986,
"upload_time": "2025-10-27T01:34:35",
"upload_time_iso_8601": "2025-10-27T01:34:35.953929Z",
"url": "https://files.pythonhosted.org/packages/c1/66/25d912f271c19df2fe1afa31b05d55aea7db70b3d1b3cb3039f3110a1b6d/provide_foundation-0.0.1026.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-27 01:34:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "provide-io",
"github_project": "provide-foundation",
"github_not_found": true,
"lcname": "provide-foundation"
}