A framework-agnostic Python library to seamlessly integrate Apache Cassandra(R) with ML/LLM/genAI workloads.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install cassiocassIO
A framework-agnostic Python library to seamlessly integrate Apache Cassandra with ML/LLM/genAI workloads.
Note: this is currently an alpha release.
Users
Installation is as simple as:
pip install cassio
For example usages and integration with higher-level LLM frameworks such as LangChain, please visit cassio.org.
CassIO developers
Setup
To develop cassio, we use poetry
pip install poetry
Use poetry to install dependencies
poetry install
Use cassio current code in other Poetry base projects
If the integration is Poetry-based (e.g. LangChain itself), you should get this
in your pyproject.toml:
cassio = {path = "../../cassio", develop = true}
Then you do
poetry remove cassio # if necessary
poetry lock --no-update
poetry install -E all --with dev --with test_integration # or similar, this is for langchain
Inspired from this. You also need a recent Poetry for this to work.
Versioning
We are still at 0.*. Occasional breaking changes are to be expected,
but please think carefully. Later, a stronger versioning model will be adopted.
Style and typing
Style is enforced through black, linting with ruff,
and typechecking with mypy.
The code should run through make format without issues.
Python version coverage
At the moment we try to run tests under Python3.8 and Python3.10 to try and
catch versions-specific issues
(such as the newer typing syntax such as typeA | typeB, illegal on 3.8).
Publishing
- Bump version in pyproject.toml
- Add to
CHANGES.txt - Commit the very code that will be built:
git tag v<x.y.z>; git push origin v<x.y.z>
make build
poetry publish # (login to PyPI ...)
Testing
Please run tests (and add some coverage for new features). This is not enforced other than to your conscience. Type for the available tests.