Skip to main content

CI Coverage PyPI License

pandablocks

A Python client to control and data ports of the PandABlocks TCP server

Source https://github.com/PandABlocks/PandABlocks-client
PyPI pip install pandablocks
Docker docker run ghcr.io/pandablocks/PandABlocks-client:latest
Documentation https://pandablocks.github.io/PandABlocks-client
Releases https://github.com/PandABlocks/PandABlocks-client/releases

Command line tool features an interactive console, load/save control, and HDF5 writing:

$ pip install pandablocks

$ pandablocks control <panda-hostname>
< PCAP.     # Hit TAB key...
PCAP.ACTIVE     PCAP.BITS1      PCAP.BITS3      PCAP.GATE       PCAP.SAMPLES    PCAP.TRIG       PCAP.TS_END     PCAP.TS_TRIG
PCAP.BITS0      PCAP.BITS2      PCAP.ENABLE     PCAP.HEALTH     PCAP.SHIFT_SUM  PCAP.TRIG_EDGE  PCAP.TS_START
< PCAP.ACTIVE?
OK =1

$ pandablocks hdf <panda-hostname> /tmp/panda-%d.h5
INFO:Opened '/tmp/panda-1.h5' with 60 byte samples stored in 11 datasets
INFO:Closed '/tmp/panda-1.h5' after writing 50000000 samples. End reason is 'Disarmed'

Library features a Sans-IO core with both asyncio and blocking wrappers:

from pandablocks.blocking import BlockingClient
from pandablocks.commands import Get

with BlockingClient("hostname-or-ip") as client:
    # Commands sent to Control port
    idn = client.send(Get("*IDN"))
    print(f"Hello {idn}")
    for data in client.data():
        # Data captured from Data port
        print(f"I got some PCAP data {data}")

See https://pandablocks.github.io/PandABlocks-client for more detailed documentation.

Release files for pandablocks 0.10.4

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

Source distribution (sdist)

Source distribution for pandablocks 0.10.4
File Size Uploaded
pandablocks-0.10.4.tar.gz 730.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pandablocks 0.10.4
File Interpreter ABI Platform
pandablocks-0.10.4-py3-none-any.whl Python 3 none any Details

Total release size: 776.3 kB

Release files / pandablocks-0.10.4.tar.gz

Download URL pandablocks-0.10.4.tar.gz
Size 730.8 kB
Tags Source
SHA-256 checksum
How to use checksums
aa2c93e554e8593cc78a36e51ae5be3ae6c50c771b178be5344f5aed793a2421
BLAKE2b-256 checksum
How to use checksums
6fd67301c124051d7549a957a4e0c0ff745df20786de4b2eed5af0881617c497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pandablocks-0.10.4-py3-none-any.whl

Download URL pandablocks-0.10.4-py3-none-any.whl
Size 45.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7e3d3105d38b125496a2a3f0070db01d1170ef1b871c5c01204eeae15a32544
BLAKE2b-256 checksum
How to use checksums
5f29e62d92e29e2779d9d64db3b241148f1ff5a1f55fb93425ed9bcea43d472a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.10.4 This release

2 release files

0.10.3

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.1

1 release file

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