Metadata-Version: 2.4
Name: ai-robo-hub
Version: 0.1.0
Summary: Reusable Python components for AI ROBO HUB applications
Author: AI ROBO HUB Consulting Services Pvt. Ltd.
License-Expression: MIT
Keywords: ai,automation,rpa,logging,ai-robo-hub
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# AI ROBO HUB

Reusable Python components for AI ROBO HUB applications.

## Installation

```bash
pip install ai-robo-hub

Logging

AI ROBO HUB provides reusable, structured logging for Python applications.

Basic Usage

from airobohub.logging import configure_logging, get_logger

configure_logging(
    application="my-application",
    environment="production",
)

logger = get_logger(__name__)

logger.info(
    "Application started",
    operation="startup",
    event="application_started",
    status="success",
)

Logging Context

from airobohub.logging import set_context

set_context(
    request_id="REQ-1001",
    user_id="USER-1001",
    role="admin",
    plan="PAID",
    endpoint="/api/users",
)

Subsequent log entries automatically include the configured context.

Exception Logging

try:
    process_payment()
except Exception:
    logger.exception(
        "Payment processing failed",
        operation="payment",
        event="payment_failed",
        status="failed",
        business_explanation="Payment could not be completed",
        recommendation="Verify payment provider connectivity and retry",
    )

Exception type, message, and full stack trace are captured automatically.

Secret Masking

Sensitive values such as passwords, tokens, API keys, and secrets are automatically masked in structured log output.

Supported Environments

The package is designed to be reusable across:

AI applications
RPA applications
SaaS applications
APIs
Background services
Cloud deployments
License

MIT License.


