semvec/pypi-packages huggingface dataset:
tlslib 0.0.2rc3
An example MVP for the updated PEP 543 proposal
Requires Python: >=3.12

# tlslib.py

<!--- BADGES: START --->
[![CI](https://github.com/trailofbits/tlslib.py/actions/workflows/tests.yml/badge.svg)](https://github.com/trailofbits/tlslib.py/actions/workflows/tests.yml)
[![PyPI version](https://badge.fury.io/py/tlslib.svg)](https://pypi.org/project/tlslib)
[![Packaging status](https://repology.org/badge/tiny-repos/python:tlslib.svg)](https://repology.org/project/python:tlslib/versions)
<!--- BADGES: END --->

Interfaces and example backends for a modern unified TLS API for Python, adapted from [PEP 543].

## Licensing

This repository is licensed under the terms of the Apache License, Version 2, except where noted below.

The `asyncio` example is adapted from the CPython `asyncio` and falls under the PSF license (see [LICENSE.cpython]).

[PEP 543]: https://peps.python.org/pep-0543/

[LICENSE.cpython]: ./LICENSE.cpython
conrad-relaycard 0.2
Library and commandline tool to control Conrad relay cards.
Requires Python: >=3.7

================
Conrad Relaycard
================

Control Conrad relaycard via python

https://www.conrad.com/p/conrad-components-197720-relay-card-component-12-v-dc-24-v-dc-197720

Usage
=====

.. code-block:: python

    from conrad_relaycard import Relaycard

    rly = Relaycard()
    rly.setup()
    rly.get_port(1, 1)
    rly.set_port(1, 1, True)

via CLI
*******

.. code-block:: console

    usage: conrad-relaycard [-h] [-v] [-q] [-i INTERFACE] [-a ADDRESS] [-p PORT] [--scan] [--get-ports] [--set-ports STATE] [--toggle-ports]

    options:
      -h, --help            show this help message and exit
      -v, --verbose         Output verbosity
      -q, --quiet           Minimized output (allow easier parsing)
      -i INTERFACE, --interface INTERFACE
                            Serial interface to use
      -a ADDRESS, --address ADDRESS
                            Relaycard address (not needed for --scan)
      -p PORT, --port PORT  Ports to get/set (only for some commands)
      --scan                Scan for relay cards
      --get-ports           Get port states on relay card
      --set-ports STATE     Set port states on relay card <on/off>
      --toggle-ports        Toggle port states on relay card