Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyarc2-0.6.0.tar.gz (35.6 kB view details)

Uploaded Source

Built Distributions

pyarc2-0.6.0-cp313-cp313-win_amd64.whl (619.2 kB view details)

Uploaded CPython 3.13Windows x86-64

pyarc2-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pyarc2-0.6.0-cp312-cp312-win_amd64.whl (619.6 kB view details)

Uploaded CPython 3.12Windows x86-64

pyarc2-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pyarc2-0.6.0-cp311-cp311-win_amd64.whl (561.7 kB view details)

Uploaded CPython 3.11Windows x86-64

pyarc2-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pyarc2-0.6.0-cp310-cp310-win_amd64.whl (561.9 kB view details)

Uploaded CPython 3.10Windows x86-64

pyarc2-0.6.0-cp310-cp310-manylinux_2_28_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file pyarc2-0.6.0.tar.gz.

File metadata

  • Download URL: pyarc2-0.6.0.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyarc2-0.6.0.tar.gz
Algorithm Hash digest
SHA256 df4d5b3c7045a316b0dafe6b40f370967bfb8357f353fe0450dff206b7fcd59b
MD5 a4fe2f5e333835fd874d0ad10125230f
BLAKE2b-256 2d45a1f2f0f29cea6c21236cb8e53e7afb127695743184cd5e81cf0e2c097f44

See more details on using hashes here.

File details

Details for the file pyarc2-0.6.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyarc2-0.6.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 619.2 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyarc2-0.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 05ad9da571c5f35f53f71a4b24291aeb72fcf447b4fcc3e1e9b878c57ab2c0fb
MD5 03211d72bafbfb2914b1ea796af14253
BLAKE2b-256 43dcf45b6b90e95596d6fa94eefc43c3de2040d78066281c0d851308378cf265

See more details on using hashes here.

File details

Details for the file pyarc2-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyarc2-0.6.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bcc379e1e597d490e1d609612e48f9b49793747c549ce5e5a1ec9b3c1fb0fedd
MD5 f3f386c889e5e68f91f8626250b4dd8e
BLAKE2b-256 b8e85f93b0d0e9a7b944a9e1c68262b59bd0defd3610e49fc1353468535279a4

See more details on using hashes here.

File details

Details for the file pyarc2-0.6.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyarc2-0.6.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 619.6 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyarc2-0.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6fe9c161b4039d12169bb0002bf039261ebca2636234dd8669e1e1ea7c8d81b9
MD5 d02ab7536224068cec666e67c27f5116
BLAKE2b-256 6be225bb548b13ba1047c7555de6a0b807d6c0c20d66d10c09d9ebdc50653829

See more details on using hashes here.

File details

Details for the file pyarc2-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyarc2-0.6.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 794a0b036776b8ce7b79658d9be0aca872d032d8cba7fa6b1fa627be0d6fee51
MD5 636d73461cdebc9d0f4f28ac7ed21a9f
BLAKE2b-256 49ccc2a5deecb72c237d43731b9927671859d8af2514a5b04979d4e2c2096f49

See more details on using hashes here.

File details

Details for the file pyarc2-0.6.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyarc2-0.6.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 561.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyarc2-0.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dc14c3d7b4d69cfe9eb99192b7f6ba70b045ff40f3af9980eeb50ec5a528fe91
MD5 8ca7fcb7a8a621a64c8b074c6ca504f6
BLAKE2b-256 46157647eb136b50357a3989055c18690f01ce93f52d118eaecf3f842a75e47b

See more details on using hashes here.

File details

Details for the file pyarc2-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyarc2-0.6.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e7951356fc3dfd430a2979de56d15a1a6648f0721936432398fed1bbb29d43c4
MD5 3edd6a138565980d62c65c2cd88f2b78
BLAKE2b-256 d5c04f2b51ed411c86715a8ecd25cf5c2efe7599818b2dddddf5df6730496011

See more details on using hashes here.

File details

Details for the file pyarc2-0.6.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyarc2-0.6.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 561.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyarc2-0.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6de4ef469f0792f3b72c5a28fded9b40707098e2e155231a505ac653d69f8f03
MD5 c4d88a05a5ae9a8f3a79b0a57b6517c5
BLAKE2b-256 7dde2e205158c5fe877f41b3b2c209decac8d2cd81f4590da0f8080f36d4dde0

See more details on using hashes here.

File details

Details for the file pyarc2-0.6.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyarc2-0.6.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9ef72b18efb3b3251a22647c1854e45a84c2e873655d41358d141255d7c037b2
MD5 13a1af927b231f681e21e7ee4650a4d9
BLAKE2b-256 b259b9bf9203f8a972130453eede8b11a0b73da08c9b4f24048843b371173cfb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page