Metadata-Version: 2.4
Name: WrenchCL
Version: 4.3.0
Summary: WrenchCL is a comprehensive library designed to facilitate seamless interactions with AWS services, OpenAI models, and various utility tools.
Project-URL: Homepage, https://github.com/WrenchAI/WrenchCL
Project-URL: Repository, https://github.com/WrenchAI/WrenchCL
Project-URL: Bug Tracker, https://github.com/WrenchAI/WrenchCL/issues
Project-URL: Documentation, https://github.com/WrenchAI/WrenchCL#readme
Project-URL: PyPI, https://pypi.org/project/WrenchCL/
Project-URL: Changelog, https://github.com/WrenchAI/WrenchCL/blob/main/CHANGELOG.md
Project-URL: Author GitHub, https://github.com/Kydoimos97
Project-URL: Author PyPI, https://pypi.org/user/Kydoimos97/
Project-URL: Maintainer GitHub, https://github.com/dalmad2
Project-URL: Maintainer PyPI, https://pypi.org/user/sot232/
Author-email: Willem van der Schans <willem@wrench.ai>
Maintainer-email: Jeong Kim <jeong@wrench.ai>
License-Expression: MIT
License-File: LICENSE
Keywords: aws,cloud,database,openai,sdk,utilities
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Requires-Dist: ansi2txt<1.0.0,>=0.2.0
Requires-Dist: filetype<2.0,>=1.2
Requires-Dist: ftfy<7.0.0,>=6.3.1
Requires-Dist: python-dotenv<2.0,>=1.0
Requires-Dist: requests<3.0,>=2.32
Provides-Extra: all
Requires-Dist: boto3<2.0,>=1.28; extra == 'all'
Requires-Dist: botocore<2.0,>=1.31; extra == 'all'
Requires-Dist: colorama<1.0,>=0.4; extra == 'all'
Requires-Dist: coverage; extra == 'all'
Requires-Dist: ddtrace<3.3.0,>=3.2.0; extra == 'all'
Requires-Dist: mypy-boto3-lambda>=1.40.7; extra == 'all'
Requires-Dist: mypy-boto3-rds>=1.40.3; extra == 'all'
Requires-Dist: mypy-boto3-s3>=1.40.0; extra == 'all'
Requires-Dist: mypy-boto3-secretsmanager>=1.40.0; extra == 'all'
Requires-Dist: mypy>=1.0.0; extra == 'all'
Requires-Dist: pandas; extra == 'all'
Requires-Dist: paramiko==3.5.1; extra == 'all'
Requires-Dist: psycopg2-binary<3.0,>=2.9; extra == 'all'
Requires-Dist: pydantic; extra == 'all'
Requires-Dist: pytest; extra == 'all'
Requires-Dist: pytest-cov; extra == 'all'
Requires-Dist: pytest-mock; extra == 'all'
Requires-Dist: pyyaml; extra == 'all'
Requires-Dist: sshtunnel<1.0,>=0.4; extra == 'all'
Provides-Extra: aws
Requires-Dist: boto3<2.0,>=1.28; extra == 'aws'
Requires-Dist: botocore<2.0,>=1.31; extra == 'aws'
Requires-Dist: paramiko==3.5.1; extra == 'aws'
Requires-Dist: psycopg2-binary<3.0,>=2.9; extra == 'aws'
Requires-Dist: sshtunnel<1.0,>=0.4; extra == 'aws'
Provides-Extra: color
Requires-Dist: colorama<1.0,>=0.4; extra == 'color'
Provides-Extra: dev
Requires-Dist: coverage; extra == 'dev'
Requires-Dist: mypy-boto3-lambda>=1.40.7; extra == 'dev'
Requires-Dist: mypy-boto3-rds>=1.40.3; extra == 'dev'
Requires-Dist: mypy-boto3-s3>=1.40.0; extra == 'dev'
Requires-Dist: mypy-boto3-secretsmanager>=1.40.0; extra == 'dev'
Requires-Dist: mypy>=1.0.0; extra == 'dev'
Requires-Dist: pandas; extra == 'dev'
Requires-Dist: pydantic; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest-mock; extra == 'dev'
Requires-Dist: pyyaml; extra == 'dev'
Provides-Extra: trace
Requires-Dist: ddtrace<3.3.0,>=3.2.0; extra == 'trace'
Description-Content-Type: text/markdown

<h1 align="center">Wrench Code Library</h1>

<p align="center">
    <img src="https://raw.githubusercontent.com/WrenchAI/WrenchCL/release/resources/img/logo.svg" alt="Logo" style="display: inline-block; vertical-align: middle; width: 90%; max-width: 800px;">
    <br><br>
    <a href="https://pypi.org/project/WrenchCL/" style="text-decoration: none;">
        <img alt="PyPI - Version" src="https://img.shields.io/pypi/v/WrenchCL?logo=pypi&logoColor=green&color=green">
    </a>
    <a href="https://github.com/Kydoimos97" style="text-decoration: none;">
        <img src="https://img.shields.io/badge/Kydoimos97-cb632b?label=Code%20Maintainer" alt="Maintainer" height="20"/>
    </a>
    <a href="https://github.com/WrenchAI/WrenchCL/actions/workflows/publish-to-pypi.yml" style="text-decoration: none;">
        <img alt="GitHub Workflow Status (with event)" src="https://img.shields.io/github/actions/workflow/status/WrenchAI/WrenchCL/publish-to-pypi.yml?event=push&logo=Github&label=Test%20%26%20Publish%20%F0%9F%90%8D%20to%20PyPI%20%F0%9F%93%A6">
    </a>
</p>

[//]: # (## [Read the Docs - Documentation]&#40;https://wrenchai.github.io/WrenchCL/&#41;)

### Component Docs
- [Logger Documentation](docs/Logger.md)
- [Connect Module (AWS Services)](docs/Connect.md)
- [Tools Module (Utilities)](docs/Tools.md)
- [Decorators Module](docs/Decorators.md)
- [Exceptions Module](docs/Exceptions.md)


## Description

WrenchCL is a comprehensive library designed to facilitate seamless interactions with AWS services, OpenAI models, and various utility tools. This package aims to streamline the development process by providing robust components for database interactions, cloud storage, and AI-powered functionalities.

**PyPI Link:** [WrenchCL on PyPI](https://pypi.org/project/WrenchCL/)

## Package Structure

- **_Internal**: Contains internal classes for configuration and SSH tunnel management.
- **Connect**: Provides gateways for AWS RDS and S3 services and the `AWSClientHub`.
- **Decorators**: Utility decorators for retry logic, singleton pattern, and method timing.
- **Models**: Internal for interacting with OpenAI models.
- **Tools**: Miscellaneous utility tools such as coalescing values, file typing, image encoding, and a custom logger.
- **DataFlow**: Response focused tools to aid in returning values and generating logs based on status codes.

## Installation

### Basic Installation

To install the core package with minimal dependencies:

```bash
pip install WrenchCL
```

### Optional Dependencies

WrenchCL uses optional dependencies to keep the core package lightweight while providing additional functionality when needed:

#### Color Support (Logger)
```bash
pip install WrenchCL[color]
# Adds: colorama for beautiful terminal colors
```

#### AWS Services
```bash
pip install WrenchCL[aws]
# Adds: boto3, psycopg2-binary, sshtunnel, and AWS service type hints
# Enables: RDS connections, S3 operations, Lambda functions, Secrets Manager
```

#### Distributed Tracing
```bash
pip install WrenchCL[trace]
# Adds: ddtrace for Datadog APM integration
# Enables: Automatic trace correlation in logs
```

#### Development Tools
```bash
pip install WrenchCL[dev]
# Adds: pytest, coverage, pydantic for development and testing
```

#### Complete Installation
```bash
pip install WrenchCL[color,aws,trace,dev]
# Installs all optional dependencies for full functionality
```

### Core Dependencies

WrenchCL has minimal required dependencies:
- `python-dotenv` - Environment variable management
- `requests` - HTTP client functionality  
- `filetype` - File type detection
- `ansi2txt` - ANSI code processing for logs
- `ftfy` - Text encoding fixes

## Development

To locally develop the plugin, clone the repository locally and make your changes.

Open the console in your working directory; the building command is

```bash
python setup.py sdist bdist_wheel
```

You can then install the package with 

```bash
pip install ./dist/WrenchCL-0.0.1.dev0-py3-none-any.whl --force-reinstall
```

Use the `--no-dependencies` flag to reinstall quickly if there are no dependency changes

```bash
pip install ./dist/WrenchCL-0.0.1.dev0-py3-none-any.whl --force-reinstall --no-dependencies
```