PyBinbot
Utility functions for the binbot project. Most of the code here is not runnable, there's no server or individual scripts, you simply move code to here when it's used in both binbot and binquant.
pybinbot is the public API module for the distribution.
This module re-exports the internal shared and models packages and the most commonly used helpers and enums so consumers can simply::
from pybinbot import round_numbers, ExchangeId
Python 3.15 or newer is required. Pandas and NumPy use matching version pins in pybinbot, binbot, and binquant. Import these libraries directly:
import numpy as np
import pandas as pd
Installation
uv sync --extra dev
--extra dev also installs development tools like ruff and mypy
Telegram delivery
Import TelegramDelivery from pybinbot.shared.telegram_delivery. Initialization
loads the application's .env and reads TELEGRAM_BOT_KEY and TELEGRAM_USER_ID,
without overriding existing environment variables. Credentials may also be
passed explicitly.
Use send_once(message) for a synchronous attempt with a short timeout and no
retry or cooldown. Use await send(message) for asynchronous delivery with
rate-limit retries and optional spacing configured at initialization. Both use
HTML formatting and disable link previews. Delivery does not persist messages.
The Telegram library is installed as a dependency of pybinbot.
Publishing
- Save your changes and do the usual Git flow (add, commit, don't push the changes yet).
- Bump the version, choose one of these:
make bump-patch
or
make bump-minor
or
make bump-major
- Git tag the version for Github. This will read the bump version. There's a convenience command:
make tag
git commit --amend. This is to put these new changes in the previous commit so we don't dup uncessary commits. Thengit push
For further commands take a look at the Makefile such as testing make test
Metadata
Release files for pybinbot 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pybinbot-2.1.1.tar.gz | 95.8 kB | With provenance | Details for pybinbot-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybinbot-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for pybinbot-2.1.1-py3-none-any.whl |
Total release size: 179.3 kB
Release files / pybinbot-2.1.1.tar.gz
| Download URL | pybinbot-2.1.1.tar.gz |
|---|---|
| Size | 95.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8d9a7e54b556d6ee331c2a818f85b88bf5e8e6a2df065379c5ee35acf380bd9
|
|
BLAKE2b-256 checksum How to use checksums |
68915935694e0ba0c9109ed9a12088c7089b413ce33bc0f869b1858ae78afe09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / pybinbot-2.1.1-py3-none-any.whl
| Download URL | pybinbot-2.1.1-py3-none-any.whl |
|---|---|
| Size | 83.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a3ff5bf73f62802a0132da1034ba52250fa8707d167acfde29fe00394cb0774
|
|
BLAKE2b-256 checksum How to use checksums |
49855366109d8fd482456018e2e082af1cd2c4ab2cd8379de69d6cbcf3be394d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for pybinbot 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pybinbot-2.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.