Skip to main content

Utilities for orchestrating OpenAI chat, tool calling, search, audio, and images from one helper package.

Reason this release was yanked:

wheel not working cant import

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 Assistant class 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, and dall-e-3 with 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 easier_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.0
  • typing_extensions>=4.7.0
  • pydantic>=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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easier_openai-0.2.51.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

easier_openai-0.2.51-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file easier_openai-0.2.51.tar.gz.

File metadata

  • Download URL: easier_openai-0.2.51.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for easier_openai-0.2.51.tar.gz
Algorithm Hash digest
SHA256 e806f0a001f43d22519df2380655ac2253bb2bc7ad60785233869bdfc9ff67a8
MD5 b86ab5b4cf3da73a4e41c3878f252832
BLAKE2b-256 153decab925204559c2781b168d5c5167994b89092a81602123a621c1db4a21e

See more details on using hashes here.

File details

Details for the file easier_openai-0.2.51-py3-none-any.whl.

File metadata

File hashes

Hashes for easier_openai-0.2.51-py3-none-any.whl
Algorithm Hash digest
SHA256 594aa26ce4b21b1c2568fdf33a3d177a8c12c3d4acf441111cb9dcf3cd59c2f4
MD5 9ed3b771abc695aba73b71ebbd7af5a3
BLAKE2b-256 344e0e62352a4802b2c355fb43b8cd8ab96c313e1a46f2c79f357d5fa3ad8097

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