Skip to content

Latest commit

 

History

History
202 lines (146 loc) · 3.8 KB

File metadata and controls

202 lines (146 loc) · 3.8 KB

Installing from GitHub (Pre-PyPI)

Install the AiAssist Python SDK directly from GitHub before it's published to PyPI.


Option 1: pip install from GitHub

pip install git+https://github.com/AiAssistSecure/aiassist-python.git

With a specific branch:

pip install git+https://github.com/AiAssistSecure/aiassist-python.git@main

With a specific tag/version:

pip install git+https://github.com/AiAssistSecure/aiassist-python.git@v1.0.0

Option 2: Clone and install locally

git clone https://github.com/AiAssistSecure/aiassist-python.git
cd aiassist-python
pip install -e .

The -e flag installs in "editable" mode - changes to the source reflect immediately.


Option 3: Add to requirements.txt

# From main branch
aiassist-secure @ git+https://github.com/AiAssistSecure/aiassist-python.git@main

# From specific commit
aiassist-secure @ git+https://github.com/AiAssistSecure/aiassist-python.git@eebb1f4

# From tag
aiassist-secure @ git+https://github.com/AiAssistSecure/aiassist-python.git@v1.0.0

Then:

pip install -r requirements.txt

Option 4: Add to pyproject.toml (Poetry/PDM)

Poetry

[tool.poetry.dependencies]
aiassist-secure = { git = "https://github.com/AiAssistSecure/aiassist-python.git", branch = "main" }

Then:

poetry install

PDM

[project]
dependencies = [
    "aiassist-secure @ git+https://github.com/AiAssistSecure/aiassist-python.git@main"
]

Then:

pdm install

Option 5: Install from wheel/tarball

Download the pre-built distribution from the dist/ folder:

# Wheel (faster)
pip install https://raw.githubusercontent.com/AiAssistSecure/aiassist-python/main/dist/aiassist_secure-1.0.0-py3-none-any.whl

# Or tarball
pip install https://raw.githubusercontent.com/AiAssistSecure/aiassist-python/main/dist/aiassist_secure-1.0.0.tar.gz

Or download and install locally:

curl -LO https://github.com/AiAssistSecure/aiassist-python/raw/main/dist/aiassist_secure-1.0.0-py3-none-any.whl
pip install aiassist_secure-1.0.0-py3-none-any.whl

Option 6: Vendor directly (no pip)

Copy the aiassist/ folder into your project:

your-project/
├── your_app.py
└── aiassist/
    ├── __init__.py
    └── client.py

Then import directly:

from aiassist import AiAssistClient

Make sure httpx is installed:

pip install httpx

Verify Installation

from aiassist import AiAssistClient, SyncAiAssistClient

print("AiAssist SDK installed successfully!")

# Quick test (replace with your API key)
async def test():
    async with AiAssistClient(
        api_key="aai_test",
        base_url="https://your-instance.com"
    ) as client:
        models = await client.models.list()
        print(f"Available models: {len(models)}")

import asyncio
asyncio.run(test())

Upgrading

From GitHub

pip install --upgrade git+https://github.com/AiAssistSecure/aiassist-python.git

Force reinstall

pip install --force-reinstall git+https://github.com/AiAssistSecure/aiassist-python.git

Troubleshooting

"Could not find a version that satisfies the requirement"

Make sure you have git installed and accessible:

git --version

"Permission denied" on private repo

Use SSH URL:

pip install git+ssh://git@github.com/AiAssistSecure/aiassist-python.git

Or use a personal access token:

pip install git+https://YOUR_TOKEN@github.com/AiAssistSecure/aiassist-python.git

Import errors after install

Ensure you're using the right Python environment:

which python
pip show aiassist-secure

When PyPI is available

Once published, simply:

pip install aiassist-secure

Until then, use any of the methods above.