Skip to main content

Python representations (think drivers) of frequently used lab equipment.

Project description

HEROS Devices

This repository contains python representations (think drivers) of frequently used lab equipment. While these drivers can be perfectly used also locally on the system attached to the lab equipment, the real advantage arises, when the created python object is made available in the network via HEROS.

The drivers in this repository sit in the hardware submodule and are arranged in submodules corresponding the vendor name of the device.

Howto Use

Standalone

The hardware control code in this repository is developed as stand-alone code. That means it also runs locally, without any HEROS magic. Thus, the classes in this module do not inherit from LocalHERO. It is up to the user to make it a HERO or to use BOSS as described in the following.

Using as a HERO with BOSS

Using the BOSS Object Starter Service (BOSS) it is easy to instantiate objects of the classes provided in this repository and make them a HERO that is available through the network. To this end you can either install BOSS in your system and follow it's instructions to create an object from the heros-devices module.

Interfaces

To signal that a HERO provides a certain interface, herosdevices provides the submodule interfaces. Inheriting from the classes therein enforces that particular methods and attributes are implemented by the HERO (otherwise it errors upon initialization of the HERO) and signals it's compatibility through the hero metadata. This allows the remote site to safely assume that a certain interface is present with the HERO. This allows to, for example, to transparently use HEROs in an atomiq script as RFSource, VoltageSource, CurrentSource, DACChannel, Switch, etc. This is explicitly possible without herosdevices depending on atomiq itself. The mechanism can easily be extended to have interface classes for other systems as well.

.. note:: The interfaces mechanism is completely optional. If a HERO does not inherit from an interface, nothing breaks but also none of the magic described above will happen on the remote side.

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

herosdevices-0.5.2.tar.gz (981.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

herosdevices-0.5.2-py3-none-any.whl (100.9 kB view details)

Uploaded Python 3

File details

Details for the file herosdevices-0.5.2.tar.gz.

File metadata

  • Download URL: herosdevices-0.5.2.tar.gz
  • Upload date:
  • Size: 981.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for herosdevices-0.5.2.tar.gz
Algorithm Hash digest
SHA256 6ebd3e95b3d828896ba6161bdc6e263c366a0240b86f0dce3e375adb18af8932
MD5 fd6fc75c86192dff5cec4996e5736571
BLAKE2b-256 d3e5ce3f7e7770a2a9fe934a15dd40544f19f89d6f8a70c8e44ce96b4d29ba01

See more details on using hashes here.

File details

Details for the file herosdevices-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: herosdevices-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 100.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for herosdevices-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5e6cb524a442e86aec8e8186022a92d9a1a12583ae320faedd5038081885709
MD5 22f68aff0216a83e54a28345e9682b30
BLAKE2b-256 a736732a3a6683ab83a2e1b79b2b1bb7b0d8c22049a2fccaf06051821d183477

See more details on using hashes here.

Supported by

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