Metadata-Version: 2.4
Name: ai_text_ap
Version: 0.1.0
Summary: Simple AI text helpers (example) - ai_text_ap
Author: Anaswara
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28.0
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# ai_text_ap

A simple Python library created by a student to interact with AI text models.

## Functions included
- get_response(prompt)
- summarize_text(text)
- format_response(text)

---

## Installation (after uploading to PyPI)
```bash
pip install ai_text_ap
```

## If you haven't uploaded to PyPI yet, you can install locally while testing:

```bash
pip install .
```

---

## Set Your API Key
This library expects an environment variable called **OPENAI_API_KEY**.

### Windows (CMD)
```bash
set OPENAI_API_KEY=your_api_key_here
```

### Windows (PowerShell)
```bash
$env:OPENAI_API_KEY="your_api_key_here"
```

---

## Usage Example

```python
from ai_text_ap import get_response, summarize_text

print(get_response("Write a poem about trees."))
print(summarize_text("Very long essay text here..."))
"""
print(summarize_text(long_text))
```
---

