Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_text_ap-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for ai_text_ap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5ebd2167391ede48e0b3fac4b0ae39cb3f8c03c4a247804bb2014fa21e531aa6
MD5 72290c551d3054683c85cf9d1d55d3af
BLAKE2b-256 98315f00a653264c3c2e734009fb0bccdf340656710d6bc0086f8ddd8ab33769

See more details on using hashes here.

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

Hashes for ai_text_ap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7563d23e7fba807917a77a5a32a1c7e85bef714e03fb1c4cb5af15e5a25efbe
MD5 e2e17c7f9dab016d32a29cd5330b5f4f
BLAKE2b-256 0e72c5bafdaf0a85b302549ef96408e04949136b534efb1241b02d0392076a5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page