semvec/pypi-packages huggingface dataset:
harp.audioswitch 0.1.0a2
This is a generated Harp device Python interface that interacts with the Harp protocol.
Requires Python: <4.0,>=3.9
Keywords: harp, python

# harp.audioswitch

[![PyPI](https://img.shields.io/pypi/v/harp.audioswitch)](https://pypi.org/project/harp.audioswitch/)

This is a generated Harp device Python interface that interacts with the Harp protocol.

- **Github repository**: <https://github.com/fchampalimaud/harp.devices/>
- **Bug Tracker**: <https://github.com/fchampalimaud/harp.devices/issues>
- **Documentation**: <https://fchampalimaud.github.io/pyharp/harp.audioswitch/>

# Installation
You can install the package using `uv` or `pip`:

```bash
uv add harp.audioswitch
```
or

```bash
pip install harp.audioswitch
```

# Usage example

```python
from harp.protocol import OperationMode
from harp.devices.audioswitch import AudioSwitch

# Example usage of the AudioSwitch device
with AudioSwitch("/dev/ttyUSB0") as device: # For Windows, use "COM8" or similar
    device.info()

    # Set the device to active mode
    device.set_mode(OperationMode.ACTIVE)

    # Get the events
    try:
        while True:
            for event in device.get_events():
                # Do what you need with the event
                print(event.payload)
    except KeyboardInterrupt:
        # Capture Ctrl+C to exit gracefully
        print("Exiting...")
    finally:
        # Do what you need to do to clean up. Disconnect is automatically called with the "with" statement.
        pass
```
harp.analoginput 0.1.0a2
This is a generated Harp device Python interface that interacts with the Harp protocol.
Requires Python: <4.0,>=3.9
Keywords: harp, python

# harp.analoginput

[![PyPI](https://img.shields.io/pypi/v/harp.analoginput)](https://pypi.org/project/harp.analoginput/)

This is a generated Harp device Python interface that interacts with the Harp protocol.

- **Github repository**: <https://github.com/fchampalimaud/harp.devices/>
- **Bug Tracker**: <https://github.com/fchampalimaud/harp.devices/issues>
- **Documentation**: <https://fchampalimaud.github.io/pyharp/harp.analoginput/>

# Installation
You can install the package using `uv` or `pip`:

```bash
uv add harp.analoginput
```
or

```bash
pip install harp.analoginput
```

# Usage example

```python
from harp.protocol import OperationMode
from harp.devices.analoginput import AnalogInput

# Example usage of the AnalogInput device
with AnalogInput("/dev/ttyUSB0") as device: # For Windows, use "COM8" or similar
    device.info()

    # Set the device to active mode
    device.set_mode(OperationMode.ACTIVE)

    # Get the events
    try:
        while True:
            for event in device.get_events():
                # Do what you need with the event
                print(event.payload)
    except KeyboardInterrupt:
        # Capture Ctrl+C to exit gracefully
        print("Exiting...")
    finally:
        # Do what you need to do to clean up. Disconnect is automatically called with the "with" statement.
        pass
```
black-pack 0.1.16
Linting and structural checking for python-packages

##########
black-pack
##########
|TestStatus| |PyPiStatus| |BlackStyle| |BlackPackStyle| |MITLicenseBadge|


|BlackPackLogo|

|BlackPackStyle|

Linting and structural checking for python-packages.
Black-pack helps you to organize your python-package.
Black-pack is very basic and not meant to support custom structures.
Black-pack only checks if a python-package has a specific structure which the author thinks is 'reasonable practice' and which is now backed into black-pack.
Black-pack is meant to help you keep your various python-packages in 'reasonable' shape with ease.
The name 'black-pack' is becasue black-pack adopts parts of the mindset found in 'black'.

*******
Install
*******

.. code-block::

    pip install black_pack


*********************
Usage on command-line
*********************


Check
=====

.. code-block::

    black-pack check /path/to/my/python-package


Black-pack will print a list of errors to stdout when your package differs from black-pack's backed in expectations.


Init
====

.. code-block::

    black-pack init /path/to/my/new/python-package


Will write an entire skeleton for your python-package (All directories and files). You can pass optional arguments to e.g. specify the package's name.


Write
=====

.. code-block::

    black-pack write /path/to/my/python-package .gitignore


Writes a single specific file, e.g. the ``.gitignore``.


.. |BlackStyle| image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black

.. |TestStatus| image:: https://github.com/cherenkov-plenoscope/black_pack/actions/workflows/test.yml/badge.svg?branch=main
    :target: https://github.com/cherenkov-plenoscope/black_pack/actions/workflows/test.yml

.. |PyPiStatus| image:: https://img.shields.io/pypi/v/black_pack
    :target: https://pypi.org/project/black_pack

.. |BlackPackLogo| image:: https://github.com/cherenkov-plenoscope/black_pack/blob/main/readme/black_pack.svg?raw=True

.. |BlackPackStyle| image:: https://img.shields.io/badge/pack%20style-black-000000.svg
    :target: https://github.com/cherenkov-plenoscope/black_pack

.. |MITLicenseBadge| image:: https://img.shields.io/badge/License-MIT-yellow.svg
    :target: https://opensource.org/licenses/MIT