Skip to main content

Syndesi

Project description

Syndesi Python Implementation

Syndesi description is available here

Syndesi is a modular Python framework designed to streamline communication and control of a wide range of electronic instruments and devices. By providing a unified abstraction layer for adapters, protocols, and device drivers, Syndesi enables seamless integration with test equipment such as multimeters, oscilloscopes, power supplies, UART/USB devices, and more. Its flexible architecture supports both high-level and low-level operations, making it ideal for automation, data acquisition, and custom device interfacing in laboratory, industrial, and research environments.

Installation

The syndesi Python package can be installed through pip

pip install syndesi

The package can also be installed locally by cloning this repository

git clone https://github.com/syndesi-project/Syndesi
cd Syndesi
pip install .

Usage

The user can work with any of the three following layers :

  • Adapters : low-level communication (IP, UART, ...)
  • Protocols : Encapsulated protocols (Delimited, Modbus, ...)
  • Drivers : Device or application specific commands

Adapters

The adapter allows the user to read and write raw data through IP, serial and VISA

from syndesi import IP

my_adapter = IP('192.168.1.12', port=5025)

my_adapter.write(b'ping\n')

my_adapter.read() # -> b'pong'
from syndesi import SerialPort

arduino = SerialPort('/dev/ttyUSB0', baudrate=115200) # COMx on Windows
arduino.query(b'get_temperature\n') # -> 20.5

Protocols

Protocols encapsulate and format data

from syndesi import IP, Delimited

my_server = Delimited(IP('test.server.local', port=1234))

my_server.query('Hello world\n') # -> Hello world (\n is removed by Delimited)

Drivers

A driver only requires an adapter, the protocol (if used) is instanciated internally

from syndesi_drivers.instruments.mutlimeters.siglent.SDM3055 import SDM3055
from syndesi.adapters import IP

mm = SDM3055(IP("192.168.1.123"))

voltage = mm.measure_dc_voltage()

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

syndesi-0.6.0.tar.gz (74.0 kB view details)

Uploaded Source

Built Distribution

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

syndesi-0.6.0-py3-none-any.whl (88.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: syndesi-0.6.0.tar.gz
  • Upload date:
  • Size: 74.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for syndesi-0.6.0.tar.gz
Algorithm Hash digest
SHA256 dbe9552f8335a2b7d6ddcd5cabdc4905b780589d92e5194bd53db77d77393918
MD5 e1854005b8bfd9ed2f51456d4b3c385f
BLAKE2b-256 f82a0eb879b5990a939e4f7f977b3af5e00c53b7b51fd49f43c792bb25b806e7

See more details on using hashes here.

File details

Details for the file syndesi-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: syndesi-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 88.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for syndesi-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cecf033ab7214150b28e15d541a91a53dee0a0aa6883679099893023446ac814
MD5 a72d99a82bf5636bf5b97d7d0a8178fb
BLAKE2b-256 184b4411a25d06418e18a7cd41f90fe618cd592d770ee40787e76abc75b05807

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