Utilities for orchestrating OpenAI chat, tool calling, search, audio, and images from one helper package.
Project description
Easier OpenAI
Easier OpenAI offers a light wrapper around the OpenAI Python SDK so you can chat with models, toggle built-in tools, upload reference files, and request images through one unified helper.
Highlights
- Single
Assistantclass for conversational flows, tool selection, and multi-turn context. - Temporary vector store support to search across local reference documents during a chat.
- Flags for web search or code interpreter when the selected OpenAI model supports them.
- Image helpers for
gpt-image-1,dall-e-2, anddall-e-3with convenient file handling.
Installation
pip install easier-OpenAI
Set OPENAI_API_KEY in your environment or pass an explicit key when you build the assistant instance.
Usage Example
from openai import Assistant
assistant = Assistant(model="gpt-4o", system_prompt="You are concise.")
response_text = assistant.chat("Summarize Rayleigh scattering in one sentence.")
print(response_text)
File Search Example
notes = ["notes/overview.md", "notes/data-sheet.pdf"]
reply = assistant.chat(
"Highlight key risks from the attached docs",
file_search=notes,
tools_required="auto",
)
print(reply)
Requirements
- Python 3.10 or newer
openai>=1.43.0typing_extensions>=4.7.0pydantic>=2.0.0
Contributing
Issues and pull requests are welcome. Please run checks locally before submitting changes.
License
This project is licensed under the Apache License 2.0.
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
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 easier_openai-0.2.3.tar.gz.
File metadata
- Download URL: easier_openai-0.2.3.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34ee48039d406b0020b8583da76e609c68ee8c4145670e56c26d8f3fb2e44676
|
|
| MD5 |
393f7cda89de891aaf37c31652840ba1
|
|
| BLAKE2b-256 |
aaf93e17f168b0bc8b56ad3b5d579460330c0b457986724bb4603fc7f3db0337
|
File details
Details for the file easier_openai-0.2.3-py3-none-any.whl.
File metadata
- Download URL: easier_openai-0.2.3-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50a67adff2074619de3f354bf49b0dc1ecdf64a74d51c7d36520d9d577f32a2b
|
|
| MD5 |
8805ff699d718ffb87e29ba67bcb27e8
|
|
| BLAKE2b-256 |
8ea03031a841e3239c28b8edda70bae8276b96630edc70d2a606a99e26cfa2fd
|