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)
Built Distribution
Close
Hashes for syndesi_drivers-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf2927767f5c08cdc303daea0f7c2a2338aeb6b131af15e99be5c41090ab9af |
|
MD5 | cef8ed2ab818bcb986c0f70817864c06 |
|
BLAKE2b-256 | d658b032a7d1f366efa4ecbc8778aa94d9f47d9517ae15dcba223b23fd5bda4d |