High level Python bindings for the libarc2 library
Reason this release was yanked:
Incorrect python dependency
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyarc2-0.2.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa3cae58fca98081f69d629ba81acb1b869ecc995f1f449166534c16511edb2 |
|
MD5 | d7a2751f32b8f0e1c03bff7268d49530 |
|
BLAKE2b-256 | 720a15a64c6a352c08a59644afec03dc6c557c01374ff06df059caf97043fed9 |
Hashes for pyarc2-0.2.0-cp311-cp311-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0370b22e516a859a93917554d575938d7e878a2a65cb3f69972a425b6cb69a9b |
|
MD5 | 83197c451a01eb3217423015532e44c1 |
|
BLAKE2b-256 | 8d47b06bf326e55c44f9fcbbfe7c7d7dadc5fb3c92aa31c7db1ac985da728710 |
Hashes for pyarc2-0.2.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b985f2c20cddb228158a6da385d0a6c50510ce7ad61bcab1f6919dbf96fd669d |
|
MD5 | 3087bcc40c258636dbe6bef3073c26c0 |
|
BLAKE2b-256 | af9d10748b69e35caa040097c936b320752db6a66720e81e05a892e1caa454f0 |
Hashes for pyarc2-0.2.0-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b667fab81beb5bbe4b2fd97ed108e59d7c5c9a24a7f0b777db59478fe640885 |
|
MD5 | 2ce144319823f653a8d995e2bc179015 |
|
BLAKE2b-256 | 4c166ea443d6f69713d2b866cb2fae600a6a0b1aaef4745c683c6a454553e9ac |
Hashes for pyarc2-0.2.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f24c91e5c952c96ce739d952326b17f2a8295ad5074bc9a07b77393c134c5e3 |
|
MD5 | 0b2a718c65911d47f2dee2e88d5d8848 |
|
BLAKE2b-256 | a3afad9552ae2ca40d2723836cdd9537e22367ab6d3fdb81e7f2ecafdcd54aa6 |
Hashes for pyarc2-0.2.0-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cae8fad04c1bea85382e1685acb90801cea66178efa2cb3603f1f5a47ce9726 |
|
MD5 | a51c76ee29bc49e92efeb412fb0bdbc2 |
|
BLAKE2b-256 | 37cf47d31c48eaf2d4fbb0da4c05a3c20effe29e3a8c6f1d6ba06708477bc88b |
Hashes for pyarc2-0.2.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc2536da03080b620c2825ec0450fbf6d997546d6613956fcae51c1fc46c524d |
|
MD5 | bc2f2465419f2075e0333679c7a64b3f |
|
BLAKE2b-256 | ba07827456a893e2977beaf1033b989c816495216b8da5eb2a1aeda33bfb8721 |
Hashes for pyarc2-0.2.0-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4fd4b3dd3e5b1d0a3ce9a5e000496a3a5477d91e4e02f18cae3312b664066ae |
|
MD5 | a58565be3c23c45b7cd90071cac95ebe |
|
BLAKE2b-256 | 378ed3523e8a238083df385ae634c7b58326e8115f1c5cd5b2fd4279d7719250 |