Skip to main content

A beginner-friendly Python SDK that wraps OpenAI APIs behind simple AI actions.

Project description

MySDK

mysdk is a Python SDK that gives application developers simple AI actions without exposing OpenAI request details in their application code.

This is the beginner stage of the SDK. It focuses on a clean foundation:

  • generate_text(...)
  • summarize(...)
  • extract_keywords(...)
  • analyze_sentiment(...)
  • answer_question(...)

Why this exists

Instead of writing OpenAI client code everywhere, developers can install this SDK and call a stable, easy-to-read Python API.

Install

Install from a local checkout:

pip install .

For development:

pip install -e .[dev]

Environment

Set your API key before using the SDK:

$env:OPENAI_API_KEY="your_api_key"

Quick start

from mysdk import AIActions

sdk = AIActions()

print(sdk.generate_text("Write a short welcome message for a new SaaS user."))
print(sdk.summarize("Long text goes here"))
print(sdk.extract_keywords("Python SDKs make AI integration easier for developers."))
print(sdk.analyze_sentiment("The onboarding experience was fast and clear."))
print(sdk.answer_question(
    context="Paris is the capital city of France.",
    question="What is the capital of France?",
))

Notes

  • Internally, the SDK uses the official OpenAI Python library and the Responses API.
  • The default model is gpt-5.
  • This stage is intentionally simple. The next stages can add structured outputs, streaming, async support, retries, and richer action modules.

Verify installation

After installation, this should work from any folder:

python -c "from mysdk import AIActions; print(AIActions)"

To run a real request:

python -c "from mysdk import AIActions; print(AIActions().summarize('OpenAI provides APIs for building AI applications.'))"

Run tests

pytest

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

mysdk_vijay-0.1.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

mysdk_vijay-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file mysdk_vijay-0.1.1.tar.gz.

File metadata

  • Download URL: mysdk_vijay-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for mysdk_vijay-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3ce1b70f8a1116a024e66162ef1167afcb578b6bfe029698406f8d5e7e63d179
MD5 25b6d78c056cfb7fdb9a8b585882eec5
BLAKE2b-256 0d2e30a69a584d36cbfc4fd7ab2a062e5475a6120ca7c7d82aff1c473c5a599b

See more details on using hashes here.

File details

Details for the file mysdk_vijay-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mysdk_vijay-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for mysdk_vijay-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b4831e893f35fb0090ec2308cac84837db538fd00dae95e2530776372d338ba
MD5 39dd5edb92d3d7f0692a6d03c3d2c793
BLAKE2b-256 e9b329f07646ac7c815812ada384526841af2f82b66d2886bbd72980d87da7f6

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