Seamless integration and composability for large language model apps.
Project description
chaincrafter - Python
Local Development
python -m venv ./venv
source ./venv/bin/activate
pip install -r requirements.txt
To test different models, install the packages required, for example with OpenAI, run pip install openai
.
The imports for the models should be part of the __init__
or the complete
method of the ChatModel
class.
Build and Publish
- Update classifiers in
pyproject.toml
andsetup.py
- Update project metadata
- Create an API token
- Set your username to
__token__
- Set your password to the token value, including the
pypi-
prefix
- Set your username to
cd /path/to/chaincrafter/python
pip install build
python -m build
pip install twine
# test upload
twine upload -r testpypi dist/*
# upload
twine upload dist/*
Testing in another package
python setup.py sdist
# install the package in another project
pip install /path/to/chaincrafter/python/dist/chaincrafter-0.1.0.tar.gz
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
chaincrafter-0.2.0.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for chaincrafter-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fec7b01e4bffe4669dfb82b5bfbae22283557579b7433cb6442b5273d4cf0a59 |
|
MD5 | 863e8a7f5c5343f61e4d727b437a9507 |
|
BLAKE2b-256 | c1cdd548c1f58ae0331928c47beb92ee0d7bfce8bc3952b51a8e55e76964ce74 |