Skip to main content

MeCom for Python

Project description

MeerTEC -- Python implemenation of the MeCom interface for Meerstetter TECs.

PyPI Test Status Test Coverage Code style: black

Both communication via USB and Lantronix XPort are supported.

Note that not all commands of MeCom are implemented at this time. Feel free to submit more commands via a Pull Request.

Usage

Connection

USB

from meer_tec.interfaces import USB
from meer_tec.tec import TEC
usb = USB("COM3")
tec = TEC(usb, 0)

XPort

Create a connection to the XPort and pass it as an argument to one of the TECs

from meer_tec.interfaces import USB
from meer_tec.tec import TEC
xp = XPort('192.168.1.123')
tec3 = TEC(xp, 3)

Commands

The commands are implemented as properties. For example the target temperature can be read by simply using

tec3.target_temperature
23.0

tec3.target_temperature = 23.1

Authors

License

MeerTEC -- Python implemenation of the MeCom interface for Meerstetter TECs.

Copyright © 2020-2023 B. Leykauf

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

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

meer_tec-1.0.0.tar.gz (47.8 kB view details)

Uploaded Source

Built Distribution

meer_tec-1.0.0-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file meer_tec-1.0.0.tar.gz.

File metadata

  • Download URL: meer_tec-1.0.0.tar.gz
  • Upload date:
  • Size: 47.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for meer_tec-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7e526705020ffa62d71040ef4a9fb6cb9b129baf7515a5a5fbb51891a161721c
MD5 11a90ccf69c73ee891f939099137054b
BLAKE2b-256 6226501ebf43384aab4212aa27228e8bca43e234d0178978c7d400f06ef6e662

See more details on using hashes here.

File details

Details for the file meer_tec-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: meer_tec-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for meer_tec-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e65d05e3a21bc140c356728e2148b8dc1b8e6fbb0556d0c6ef702563ca7967fb
MD5 ba96bde54ad9f47acda9f4110d670ac2
BLAKE2b-256 ae6db0ee6e2b9344e3ddb0779155c19c3abe17be865e2242e1da291549d80cc4

See more details on using hashes here.

Supported by

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