Python component of using Briton
Project description
Briton
The python side of Briton. Briton server is written in C++ for high performance and provides a grpc endpoint for interaction. A major function of this python libarary is to provide easier interaction with the Briton Server. e.g. there's logic to startup the Briton server and ensure it's healthy. It also provides adapters for using Briton from Truss. For certain features, such as draft model based speculative decoding, a subtantial chunk of the implementation is in this library.
Running tests
poetry run pytest
Formatting code
poetry run ./format.sh
Manually publishing to PyPi
Before running this, please increment the version appropriately in pyproject.toml.
Find the basetenbot
credentials in 1Password, which can be used to sign into PyPi
and generate a token. This token can be saved in your .pypirc
as follow:
[distutils]
index-servers =
pypi
[pypi]
username = __token__
password = # either a user-scoped token or a project-scoped token you want to set as the default
Or entered into the CLI when prompted by twine upload
below:
rm -rf dist
poetry build
poetry run twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file briton-0.2.0.dev0.tar.gz
.
File metadata
- Download URL: briton-0.2.0.dev0.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b37d2d16b77364ce30f46a2ed37bd2471e191ebbbf852a2c2a04ad6616d678c3 |
|
MD5 | e95472929ab8ff64e08edfe258e7f347 |
|
BLAKE2b-256 | 808c8ef17ce9a4a66bc17c3ca7cebb32ee9d16c7d1f0a7d405fc2d7b4f76d178 |
File details
Details for the file briton-0.2.0.dev0-py3-none-any.whl
.
File metadata
- Download URL: briton-0.2.0.dev0-py3-none-any.whl
- Upload date:
- Size: 36.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b566a07f05f9f83895a817b575f6bc633c2ae3bc230cefd59a09227eb02fd4f |
|
MD5 | eda8774df46ce357d7b61e2e7b50ca94 |
|
BLAKE2b-256 | ffca1b9596b1d2891fe361f0f387fd6e1f00ca70c5030a4d8c63b1fedb642a56 |