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.1.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for chaincrafter-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900631178951adc72914cf7d6bd344af9c470624648397652992edf7768f3bdc |
|
MD5 | a384be3b460e7b8cca61b13ec7cb4ff8 |
|
BLAKE2b-256 | 80814ef9cb68348e9dcf2bcce35685cdd14c1e7430592500e1507f5084b0ed82 |