Skip to main content

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:

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

briton-0.1.0.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

briton-0.1.0-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file briton-0.1.0.tar.gz.

File metadata

  • Download URL: briton-0.1.0.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

Hashes for briton-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c38e6ca3e4d105c206cc7ccf1ba23483041e2ebee1159fc357490844ffb4e47f
MD5 4af2b126fe1aa670207a5864b971f063
BLAKE2b-256 20b651824105e61b49c544ec12c6e10fcd1c5cf24fe86340b34d149ba87f88b4

See more details on using hashes here.

File details

Details for the file briton-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: briton-0.1.0-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

Hashes for briton-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21db4490e8862d42e0e43bd36120b0b61ce0223a62ecde46f91ec9670c7e14f9
MD5 66630e63da4467821f8500eea26440bc
BLAKE2b-256 f0c57a0f7a294d28366d85547054547f8f31fe1d928b841b62eeba9d5ed1cb4c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page