BS120x Ethernet Python Library (bs120xenet)
Python Ethernet driver for Bloomy Controls BS120x. For detailed information on Bs120x operation refer to the user manual available at https://www.bloomy.com/products/battery-management-system-testing/battery-simulator-1201.
Features
Supports Windows and Linux
Implements all commands supported by the BS1201
Implemented as a wrapper around the the C/C++ library for consistent interface across languages
Installation
See docs/installation.rst for installation instructions.
Example Usage
from bs120xenet import Bs120xEnet
from time import sleep
with Bs120xEnet() as client:
# connect to the unit
client.connect(interface_ip, device_ip, udp_port)
# request configuration information
client.query_config()
# wait to receive configuration
sleep(0.1)
config = client.get_unit_config()
print(f"Serial number: {config.get_serial_number()}")
print(f"Firmware version: {config.get_firmware_version()}")
# set Cell 0 to 5V, 0.1A sinking and sourcing current limits
client.set_cell_voltage(0, 5)
client.set_cell_sink_current(0, 0.1)
client.set_cell_source_current(0. 0.1)
client.enable_cell(0, True)
sleep(0.1)
# read back Cell 0 voltage
v = client.get_cell_voltage(0)
print(f"Cell 0 Voltage: {v} V")
client.enable_cell(0, False)
client.disconnect()
Discussion
Please report any bugs on the Github issue tracker.
Metadata
Release files for bs120xenet 1.0.0
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 |
|---|---|---|---|---|
| bs120xenet-1.0.0.tar.gz | 15.0 kB | With provenance | Details for bs120xenet-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bs120xenet-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for bs120xenet-1.0.0-py3-none-any.whl |
Total release size: 24.5 kB
Release files / bs120xenet-1.0.0.tar.gz
| Download URL | bs120xenet-1.0.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a273527371f51ef39c8a337dff6b203f54cc05943ac9947607b714d441755989
|
|
BLAKE2b-256 checksum How to use checksums |
726f8f88f5ff6817fe89af75f994846f7a4551f5516248926961fbe2ba808aa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 28, 2026.
Transparency logRelease files / bs120xenet-1.0.0-py3-none-any.whl
| Download URL | bs120xenet-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa3a8728bcdd85c4a4b8a69538c24d1c175866182c0624595145bd3a8d9ddd87
|
|
BLAKE2b-256 checksum How to use checksums |
945dda9ba95779d31f732758a221e2cf8bffe96a97087122690575e5d3cc6dfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 28, 2026.
Transparency logSecurity for bs120xenet 1.0.0
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 bs120xenet-1.0.0.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 Apr 28, 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.