Metadata-Version: 2.4
Name: redchat
Version: 1.0.7
Summary: Clean AI API Library routing via Tor Proxies
Author: EGen Labs
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.1
Requires-Dist: requests[socks]
Requires-Dist: urllib3>=1.26.0
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# RedChat AI Developer SDK

The RedChat Python SDK provides a lightweight, clean 1:1 drop-in replacement interface for official AI frameworks while operating seamlessly over configurable proxy networks.

> **Core Capability:** 
> Instantiating the RedChat generic client natively routes all API traffic through a secure Tor proxy chain, ensuring anonymity while perfectly mirroring standard AI library interactions.

---

## Features
- **OpenAI Compatible Syntax**: Instantiates directly to `.chat.completions.create` identically matching the LangChain/OpenAI ecosystem code.

## Installation

```bash
pip install redchat
```

*Requirements:* `requests[socks]`, `colorama`, `urllib3`

## Usage Example

Import the standard global class identically to your traditional infrastructure mapping:

```python
from redchat import RedChat

def main():
    # Instantiate client globally (inherits Tor proxy bindings automatically)
    client = RedChat(tor_proxy="socks5h://127.0.0.1:9050")
    
    print("Executing request over secure bridge...")
    try:
        response = client.chat.completions.create(
            model="AXIOM", 
            messages=[
                {"role": "user", "content": "Write a short Python function for binary search."}
            ]
        )
        
        # Parses identically to standard OpenAI JSON responses
        print("\nAI Base Model Output:")
        print(response.choices[0].message.content)
        
    except ConnectionError as e:
        print(f"Failed to route payload: {e}")

if __name__ == "__main__":
    main()
```

## Disclaimer
Note: Use and integration require a local or externally bound Tor networking daemon running (default `127.0.0.1:9050`). Ensure `tor` is functioning for proxy mechanics to resolve properly.
