Skip to main content

Bit Pirate Python

Python clients for controlling ESP32 Bit Pirate through:

  • USB serial CLI
  • Wi-Fi WebSocket CLI
  • BPIO2 binary GPIO, I2C, and SPI adapter mode

Installation

pip install bit-pirate

The PyPI distribution is named bit-pirate; the Python import package is bitpirate.

USB serial CLI

from bitpirate import BitPirate

bp = BitPirate.auto_connect()
bp.start()
bp.change_mode("i2c")
bp.send("scan")
bp.wait()
print(bp.receive())
bp.stop()

A specific serial port can also be selected:

from bitpirate import BitPirate

bp = BitPirate("/dev/ttyACM0")

Wi-Fi CLI

from bitpirate import BitPirateWifi

bp = BitPirateWifi("192.168.4.1")
bp.start()
bp.change_mode("uart")
bp.send("read")
print(bp.receive())
bp.stop()

BPIO2

Switch ESP32 Bit Pirate to the BPIO2 USB adapter before opening the port.

from bitpirate.bpio2 import BPIOClient

with BPIOClient("/dev/ttyACM0", timeout=3) as client:
    status = client.status_request()
    print(status)

Protocol helpers are available as BPIOGPIO, BPIOI2C, and BPIOSPI.

Metadata

Release files for bit-pirate 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bit-pirate 0.1.1
File Size Uploaded
bit_pirate-0.1.1.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bit-pirate 0.1.1
File Interpreter ABI Platform
bit_pirate-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 24.1 kB

Release files / bit_pirate-0.1.1.tar.gz

Download URL bit_pirate-0.1.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
417e6226678ae8b31d688ea099582c2f280512e4945f08425ddcd0c38c86632b
BLAKE2b-256 checksum
How to use checksums
819a5058e73a79b70d4635934b88f69dae50cd539bfc005d2b005712fd2a7121
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 Jun 17, 2026.

Transparency log

Release files / bit_pirate-0.1.1-py3-none-any.whl

Download URL bit_pirate-0.1.1-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e76bb4aa2050eeb62e420778ba232b935f79bc660d628eb42b05023e10d2151
BLAKE2b-256 checksum
How to use checksums
f3c1f311a282ace9943b0084438aa22085baa77c803d6f58e7ba8d0850e8e879
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 Jun 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page