Python bindings for libarc2
Introduction
This library presents a python interface to the low-level libarc2 library
used to interface with ArC TWO™. Most of the user-facing facilities of
libarc2 are present in this library. That being said, pyarc2 itself is
still relatively low-level and a general understanding of the internals of
ArC TWO is required.
Use
pyarc2 maps most of the functionality of libarc2 so the API translates
fairly transparent. Most of the interaction with ArC TWO will be through the
Instrument class that encapsulates the implemented functionality of
libarc2. The library will keep being updated as new functionality is added.
For instance to read the current between two channels you can write
from pyarc2 import Instrument, find_ids
# low voltage channel (typically grounded)
LOWV = 7
# high voltage channel
HIGHV = 33
# read-out voltage
VREAD = 0.2
# Get the ID of the first available ArC TWO
arc2id = find_ids()[0]
# firmware; shipped with your board
fw = 'arc2fw.bin'
# connect to the board
arc = Instrument(arc2id, fw)
current = arc.read_one(LOWV, HIGHV, VREAD)
print('I = %g A' % current)
Additional functionality
pyarc2 can also be used to implement new plugins based on libarc2. Access
to the lower level object is done via Instrument::inner() and
Instrument::inner_mut(). These plugins can fully leverage libarc2
functionality but require some familiarity with Rust and the libarc2 API.
Metadata
Release files for pyarc2 0.6.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 | |
|---|---|---|---|---|
| pyarc2-0.6.0.tar.gz | 35.6 kB | Without provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pyarc2-0.6.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details |
| pyarc2-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.28+ x86-64 | Details |
| pyarc2-0.6.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| pyarc2-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ x86-64 | Details |
| pyarc2-0.6.0-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details |
| pyarc2-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.28+ x86-64 | Details |
| pyarc2-0.6.0-cp310-cp310-win_amd64.whl | CPython 3.10 | CPython 3.10 | Windows x86-64 | Details |
| pyarc2-0.6.0-cp310-cp310-manylinux_2_28_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.28+ x86-64 | Details |
Total release size: 9.0 MB
Release files / pyarc2-0.6.0.tar.gz
| Download URL | pyarc2-0.6.0.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df4d5b3c7045a316b0dafe6b40f370967bfb8357f353fe0450dff206b7fcd59b
|
|
BLAKE2b-256 checksum How to use checksums |
2d45a1f2f0f29cea6c21236cb8e53e7afb127695743184cd5e81cf0e2c097f44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyarc2-0.6.0-cp313-cp313-win_amd64.whl
| Download URL | pyarc2-0.6.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 619.2 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
05ad9da571c5f35f53f71a4b24291aeb72fcf447b4fcc3e1e9b878c57ab2c0fb
|
|
BLAKE2b-256 checksum How to use checksums |
43dcf45b6b90e95596d6fa94eefc43c3de2040d78066281c0d851308378cf265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyarc2-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | pyarc2-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
bcc379e1e597d490e1d609612e48f9b49793747c549ce5e5a1ec9b3c1fb0fedd
|
|
BLAKE2b-256 checksum How to use checksums |
b8e85f93b0d0e9a7b944a9e1c68262b59bd0defd3610e49fc1353468535279a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyarc2-0.6.0-cp312-cp312-win_amd64.whl
| Download URL | pyarc2-0.6.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 619.6 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6fe9c161b4039d12169bb0002bf039261ebca2636234dd8669e1e1ea7c8d81b9
|
|
BLAKE2b-256 checksum How to use checksums |
6be225bb548b13ba1047c7555de6a0b807d6c0c20d66d10c09d9ebdc50653829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyarc2-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | pyarc2-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
794a0b036776b8ce7b79658d9be0aca872d032d8cba7fa6b1fa627be0d6fee51
|
|
BLAKE2b-256 checksum How to use checksums |
49ccc2a5deecb72c237d43731b9927671859d8af2514a5b04979d4e2c2096f49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyarc2-0.6.0-cp311-cp311-win_amd64.whl
| Download URL | pyarc2-0.6.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 561.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dc14c3d7b4d69cfe9eb99192b7f6ba70b045ff40f3af9980eeb50ec5a528fe91
|
|
BLAKE2b-256 checksum How to use checksums |
46157647eb136b50357a3989055c18690f01ce93f52d118eaecf3f842a75e47b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyarc2-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | pyarc2-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e7951356fc3dfd430a2979de56d15a1a6648f0721936432398fed1bbb29d43c4
|
|
BLAKE2b-256 checksum How to use checksums |
d5c04f2b51ed411c86715a8ecd25cf5c2efe7599818b2dddddf5df6730496011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyarc2-0.6.0-cp310-cp310-win_amd64.whl
| Download URL | pyarc2-0.6.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 561.9 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6de4ef469f0792f3b72c5a28fded9b40707098e2e155231a505ac653d69f8f03
|
|
BLAKE2b-256 checksum How to use checksums |
7dde2e205158c5fe877f41b3b2c209decac8d2cd81f4590da0f8080f36d4dde0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pyarc2-0.6.0-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | pyarc2-0.6.0-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9ef72b18efb3b3251a22647c1854e45a84c2e873655d41358d141255d7c037b2
|
|
BLAKE2b-256 checksum How to use checksums |
b259b9bf9203f8a972130453eede8b11a0b73da08c9b4f24048843b371173cfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for pyarc2 0.6.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.