Skip to main content

ayuai

A Python AI library integrating ChatGPT, Google Gemini, and a smart code suggestion engine.

Installation (locally for testing)

  1. Create and activate virtualenv:
    python -m venv venv
    source venv/bin/activate   # macOS / Linux
    venv\Scripts\activate    # Windows PowerShell
    
  2. Install from local directory:
    pip install .
    

Usage

Chat (OpenAI / Gemini)

from ayuai import ChatAI

# For OpenAI:
ai = ChatAI(provider="openai", api_key="YOUR_OPENAI_API_KEY", model="gpt-4o-mini")
print(ai.ask("Hello AyuAI!"))

# For Gemini (use API KEY or HTTP key as required by Google)
ai2 = ChatAI(provider="gemini", api_key="YOUR_GOOGLE_API_KEY", model="gemini-pro")
print(ai2.ask("Hello from Gemini!"))

Code Suggestions

from ayuai import CodeSuggestions

cs = CodeSuggestions()
print(cs.suggest("print('Hello world')"))

Environment variables recommended

  • AYUAI_OPENAI_KEY - Your OpenAI API key (if you don't pass it directly)
  • AYUAI_GOOGLE_KEY - Your Google Generative AI key (for Gemini)

Publishing to PyPI (summary)

  1. Make sure you have an account on https://pypi.org/.
  2. Build distribution:
    python -m pip install --upgrade build twine
    python -m build
    
  3. Upload:
    python -m twine upload dist/*
    
  4. After a successful upload, users can pip install ayuai (if the name is available).

VS Code extension (simple demo)

A minimal VS Code extension scaffold is included under vscode-extension/ that runs a quick Python script using this package to demonstrate suggestions. See that folder for usage.

Security & Notes

  • This project contains network calls to 3rd-party APIs; never store secrets in source control.

  • Replace placeholder email and copyright where appropriate.

    Continuous Integration

This project includes GitHub Actions workflows:

  • .github/workflows/ci.yml: runs tests on push and PRs to main.
  • .github/workflows/publish.yml: builds and publishes to PyPI when you push a tag like v1.0.0.

Publishing notes

Create a PyPI API token and add it as a repository secret PYPI_API_TOKEN in GitHub to enable the publish workflow.

Tagging example:

git tag v1.0.0
git push origin v1.0.0

The publish workflow will run and upload the built distribution to PyPI using the token.

Metadata

Release files for ayuai 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ayuai 1.0.0
File Size Uploaded Provenance
ayuai-1.0.0.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ayuai 1.0.0
File Interpreter ABI Platform
ayuai-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / ayuai-1.0.0.tar.gz

Download URL ayuai-1.0.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bad82283f881dc1d21ed9b42ce05ec0499812f0150b8f8a1f61c7efb750041ff
BLAKE2b-256 checksum
How to use checksums
61256950a354ab7670abd6f58fd5c94f32a6019039de7aaa669328ffb018677f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release files / ayuai-1.0.0-py3-none-any.whl

Download URL ayuai-1.0.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b907be84ec0bce5b899c845ea37cc33b63d862d96e23adf7fa4ba5c69e6a6960
BLAKE2b-256 checksum
How to use checksums
1efcc04df6aa3853ef05be35536711b1371d4ad2350447262b9951a77c80ede9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Security for ayuai 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page