Installation¶
Prerequisites¶
- Python 3.11 or higher
- pip or poetry package manager
From PyPI¶
The easiest way to install the IVCAP Lambda SDK:
Or with poetry:
Package rename
The original package name ivcap-ai-tool has been renamed to ivcap-lambda. A
compatibility shim is still published under the old name and will emit a
DeprecationWarning. Please migrate imports to ivcap_lambda.
From Source¶
For development or to use the latest unreleased features:
git clone https://github.com/ivcap-works/ivcap-ai-tool-sdk-python.git
cd ivcap-ai-tool-sdk-python
poetry install
Verify Installation¶
Test your installation:
You should see the version number printed.
Dependencies¶
ivcap-lambda depends on:
| Package | Purpose |
|---|---|
ivcap-service |
Base service primitives, Service, JobContext, events, logging |
fastapi |
HTTP framework for tool endpoints |
uvicorn |
ASGI server |
pydantic |
Request/result model validation |
opentelemetry-instrumentation-fastapi |
Distributed tracing |
All dependencies are installed automatically.
Optional: Development Dependencies¶
If you plan to contribute or build documentation locally:
# Development tools
poetry install --with dev
# Documentation tools
pip install -r docs/requirements-docs.txt
Next Steps¶
- Read the Quick Start guide
- Build your First Lambda Service
- Check out Examples
Troubleshooting¶
ImportError: No module named 'ivcap_lambda'¶
Make sure you've installed the package:
If using a virtual environment, ensure it's activated.
Python Version Error¶
Check your Python version:
The SDK requires Python 3.11+. If you have multiple Python versions installed, use:
Permission Denied¶
If you get permission errors during installation, use:
Getting Help¶
- Check Best Practices
- Open an issue
- See Contributing