semvec/pypi-packages huggingface dataset:
syndesi-drivers 0.2.1
Syndesi drivers
Keywords: python, syndesi, drivers

# Syndesi drivers Python package

This package contains all the official Syndesi Drivers

## Driver structure

```python
class DeviceName(Interfaces):
    def __init__(self, adapter : Adapter) -> 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)
```
Kuyruk-Sentry 1.1.5
Sends exceptions in Kuyruk workers to Sentry.
Keywords: kuyruk sentry

# Kuyruk-Sentry

Sends exceptions in Kuyruk workers to Sentry.

## Install

    $ pip install kuyruk-sentry

## Usage

```python
from kuyruk import Kuyruk, Config
from kuyruk_sentry import Sentry
import sentry_sdk

sentry_sdk.init(dsn="...")  # configure Sentry

config = Config()
kuyruk = Kuyruk(config)

s = Sentry(kuyruk)

@kuyruk.task
def oops():
    1/0  # exception will be sent to Sentry
```