Metadata-Version: 2.2
Name: uncensored
Version: 0.0.1
Summary: Official python library for the Uncensored AI (uncensored.com) API
Author-email: Uncensored AI <devs@uncensored.com>
License: MIT
Project-URL: Homepage, https://github.com/uncensored-com
Project-URL: Documentation, https://uncensored.com/docs
Project-URL: Repository, https://github.com/uncensored-com
Project-URL: Bug Tracker, https://github.com/uncensored-com
Keywords: ai,llm,uncensored,chat,image generation,fine-tuning
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28.0
Requires-Dist: click>=8.0.0

# Uncensored AI Python Package

A lightweight Python client for the Uncensored AI API

## Features

- Chat completions - with streaming support
- Fine-tuning 
- Model listing 
- Image generation
- CLI for easy account management
- Both global and client-based usage patterns

## Installation

```bash
pip install uncensored
```

## Usage

```python
import uncensored

# Global usage
uncensored.api_key = "YOUR-KEY-HERE"

response = uncensored.ChatCompletion.create(
    model="model-t",
    messages=[{"role": "user", "content": "Say wasa"}],
    stream=True,
)

for chunk in response:
    print(chunk)

# OR using an optional client-like usage
client = uncensored.Client(api_key="YOUR-KEY-HERE")
models = client.list_models()
print(models)
```

## CLI

```bash
# Log in (fetch/store API key)
uncensored login

# Check your usage/balance
uncensored balance

# List available models
uncensored list-models
```

contact: devs@uncensored.com 

by uncensored.com
