High level Python bindings for the libarc2 library
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
File details
Details for the file pyarc2-0.5.0.tar.gz
.
File metadata
- Download URL: pyarc2-0.5.0.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70120afafff8c3cef54ddbb7b2cfc8853db65ef127c4dfacdaf5446b70d45b7b |
|
MD5 | 314050f6f244a23f4ecf3ddb6be33c2d |
|
BLAKE2b-256 | 46531679b3c597ba8663ffcd499c3d475f7212b8df0a5609dce22e2d00cbc387 |
File details
Details for the file pyarc2-0.5.0-cp312-none-win_amd64.whl
.
File metadata
- Download URL: pyarc2-0.5.0-cp312-none-win_amd64.whl
- Upload date:
- Size: 621.7 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9b146a8a8667b4faceb9176d402a27eb96d17806156647037ad0b584338977a |
|
MD5 | 45aa5a33cd15887adada3880fc5b4d0b |
|
BLAKE2b-256 | cc5b27a5491e414fa369d9be5be94898da6e550e73bcc99dc32f87b210ebecdb |
File details
Details for the file pyarc2-0.5.0-cp312-cp312-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pyarc2-0.5.0-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb5f36a805854d8e356a6c50a67bf2159bbb09b5ed3d7ca5a18a36cf219a9327 |
|
MD5 | 842e1669b418ed4aea58f44bb70b7b0b |
|
BLAKE2b-256 | 45a04d95e6677ae849941fa923ef721db592c507db925dd479b8f659339d12b7 |
File details
Details for the file pyarc2-0.5.0-cp311-none-win_amd64.whl
.
File metadata
- Download URL: pyarc2-0.5.0-cp311-none-win_amd64.whl
- Upload date:
- Size: 621.6 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59c001e5241806f45576b0cef5f493f747013484e34714e52e7ca9e346b13953 |
|
MD5 | 396321bb3d172ef3339a172448a3ed32 |
|
BLAKE2b-256 | 60a80a29b0718f97ff4d091bed7ea2491545cb658e4fd421d3eece34b2564c52 |
File details
Details for the file pyarc2-0.5.0-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pyarc2-0.5.0-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36699826c2ccf825cef691e2320f1bf8ae522762a204dd3bd3d7830ffeaed021 |
|
MD5 | 14a248ea53e39276236569ecaed292ae |
|
BLAKE2b-256 | d7a81a57500d599238aed58c56596e21dd789e15759b0bec6b2256a67578d818 |
File details
Details for the file pyarc2-0.5.0-cp310-none-win_amd64.whl
.
File metadata
- Download URL: pyarc2-0.5.0-cp310-none-win_amd64.whl
- Upload date:
- Size: 615.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be8f893b5f0b189d0e72117b7f390ce8e19fcb6e451a64bba6bd757c47f27dbb |
|
MD5 | 2ac922d1663331d8cb4a66dae4c97410 |
|
BLAKE2b-256 | a98a33c625e6fe96aea29e16bd137c17016d6deef00a6c64d68d68989c6d14e5 |
File details
Details for the file pyarc2-0.5.0-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pyarc2-0.5.0-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba209563d9ccf325d8c8f3224a43b0ec754302d94f1d06a61b889af37799dff |
|
MD5 | bf2ead5d905bffc06ecec059a7c3f633 |
|
BLAKE2b-256 | 4f4933f61c7b6e50e96acfbe819ebdc0c36aac1d7539e220ddb8718bd129632c |
File details
Details for the file pyarc2-0.5.0-cp39-none-win_amd64.whl
.
File metadata
- Download URL: pyarc2-0.5.0-cp39-none-win_amd64.whl
- Upload date:
- Size: 616.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df5ef80e212262718321adfbb2fd58769e350dfa9055b057ed7ca8c5800dfa1d |
|
MD5 | 77c95b1dea94f4edcc89983745e7aacc |
|
BLAKE2b-256 | 325927b4271786a75d7da6effb11dc52418e867b3870ae8537d2bb9e03603092 |
File details
Details for the file pyarc2-0.5.0-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pyarc2-0.5.0-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a706b7fe3d21f382337338cec09dd2f05fd0905ae3d97b4764703e59c74762ca |
|
MD5 | f3a4d1a49e0d7dbeed2ef4141872e471 |
|
BLAKE2b-256 | f4a19aaa25b2edd33700dfe9f2917c0a63b0916bcd243534c726e4f84972faa7 |