Skip to main content

Syndesi drivers

Project description

Syndesi drivers Python package

This package contains all the official Syndesi Drivers

Driver structure

class DeviceName(Interfaces):
    def __init__(self, adapter : IAdapter) -> None:
        """
        Device description
        """
        super().__init__()

        # Check the adapter type here
        assert isinstance(adapter, ...), "Invalid adapter"

        # Use a protocol
        self._prot = SCPI(adapter)
        #self._prot = Raw(adapter)

    # Declare a method
    def my_method(self) -> int:
        """
        Method description
        """
        self._prot.write('...')
        data = self._prot.read('...')
        return int(data)

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-drivers-0.2.0.tar.gz (18.6 kB view hashes)

Uploaded Source

Built Distribution

syndesi_drivers-0.2.0-py3-none-any.whl (49.7 kB view hashes)

Uploaded Python 3

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