Simple AI text helpers (example) - ai_text_ap
Project description
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)
pip install ai_text_ap
If you haven't uploaded to PyPI yet, you can install locally while testing:
pip install .
Set Your API Key
This library expects an environment variable called OPENAI_API_KEY.
Windows (CMD)
set OPENAI_API_KEY=your_api_key_here
Windows (PowerShell)
$env:OPENAI_API_KEY="your_api_key_here"
Usage Example
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))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ai_text_ap-0.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_text_ap-0.1.0.tar.gz.
File metadata
- Download URL: ai_text_ap-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ebd2167391ede48e0b3fac4b0ae39cb3f8c03c4a247804bb2014fa21e531aa6
|
|
| MD5 |
72290c551d3054683c85cf9d1d55d3af
|
|
| BLAKE2b-256 |
98315f00a653264c3c2e734009fb0bccdf340656710d6bc0086f8ddd8ab33769
|
File details
Details for the file ai_text_ap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ai_text_ap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7563d23e7fba807917a77a5a32a1c7e85bef714e03fb1c4cb5af15e5a25efbe
|
|
| MD5 |
e2e17c7f9dab016d32a29cd5330b5f4f
|
|
| BLAKE2b-256 |
0e72c5bafdaf0a85b302549ef96408e04949136b534efb1241b02d0392076a5b
|