semvec/pypi-packages huggingface dataset:
getobjcols 0.0.1
A package to get a list of object columns in your pandas dataframe
Requires Python: >=3.7

#  getobjcols package Usage

This is a simple package to get a list of object columns in your pandas dataframe. Just call the function named 'obj_cols' from the package and send a pandas dataframe as input and it shall return a list of all object columns.

`from getobjcols import obj_fi`

`obj_fi.obj_cols(data)`
ib110hw-testing 0.1.11
Package used for testing homework assignments in the IB110 course at FI MUNI.
Requires Python: >=3.6.8,<4.0.0

This library was created for the course **IB110 - Introduction to Informatics** at [MUNI FI](https://www.fi.muni.cz/). It builds on top of the [ib110hw](https://pypi.org/project/ib110hw/) and the [hypothesis](https://pypi.org/project/hypothesis/) libraries.

# Setup

Python version required for this library is **>=3.6**. It can be installed using `pip` like so:
```pip install ib110hw_testing```

Using venv to install the library is recommended as it has some dependencies (`ib110hw`, `exrex`, `hypothesis`).

# Modules

## Testing

The module `testing` contains some predefined strategies which can be used with the `hypothesis` library.

### Example Use-case

Below code shows a simple example of strategies used with tests.

```python
from hypothesis import given
from ib110hw.automaton.dfa import DFA
from ib110hw_testing.testing.strategies import dfas, strings_from_regex
from typing import Set

@given(
    dfas(alphabet={"a", "b", "c"}),
    strings_from_regex(regex="[abc]*")
)
def test(dfa: DFA, strings: Set[str])
    ...
```

## Transformation

The module `transformation` contains implementations of some algorithms which can be used to transform automata.

### Example Use-case

Below code shows a simple example of automata comparison.

```python
from ib110hw.automaton.dfa import DFA
from ib110hw.automaton.nfa import NFA
from ib110hw_testing.transformation.transformation import compare_automata

nfa: NFA = NFA(...) # an arbitrary NFA
dfa: DFA = DFA(...) # an arbitrary DFA

compare_automata(nfa, dfa) # returns True/False
```
django-flyio 0.1.1
A set of simple utilities for Django apps running on Fly.io
Requires Python: >=3.7

# django-flyio

[![PyPI - Version](https://img.shields.io/pypi/v/django-flyio.svg)](https://pypi.org/project/django-flyio)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-flyio.svg)](https://pypi.org/project/django-flyio)

---

A set of simple utilities for Django apps running on [Fly.io](https://fly.io).

**Note:** This package is designed to work with [V2 Apps](https://fly.io/docs/reference/apps/). It has not been tested with V1 Apps.

## Installation

```shell
pip install django-flyio
```

## Usage

### Multi-Region Fly Postgres

1.  Set your `DATABASES` settings to call `get_db_config` from `django_flyio.db`.

    This function reads the `PRIMARY_REGION` and `FLY_REGION` environment variables to determine the Fly region the primary database is in and the Fly region the app is currently running in.

2.  Add `django_flyio.routers.FlyDBReplicaRouter` to your `DATABASE_ROUTERS` settings.

    This router reads whether the `DATABASES` setting has a `replica` key and, if so, routes reads to the replica database.

```python
# settings.py
from django_flyio.db import get_db_config

DATABASES = get_db_config()

DATABASE_ROUTERS = ["django_flyio.routers.FlyDBReplicaRouter"]
```

### Middleware

To set the `Fly-Server` header containing the Fly server and region that served the request, add `django_flyio.middleware.FlyResponseMiddleware` to your `MIDDLEWARE` settings.

```python
# settings.py
MIDDLEWARE = [
    # ...
    'django_flyio.middleware.FlyResponseMiddleware',
]
```

## License

`django-flyio` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
ja2mqtt 1.0.6
Jablotron MQTT bridge
Requires Python: >=3.6.0

ja2mqtt is a bridge that connects a Jablotron control unit, extended with the [JA-121T RS-485 bus interface](https://www.jablotron.com/en/produkt/rs-485-bus-interface-426/), to an MQTT broker.

ja2mqtt enables the use of MQTT events to control Jablotron events, allowing for seamless integration with MQTT-based IoT systems and platforms. With this bridge, Jablotron alarms can be integrated into a larger IoT ecosystem, alongside other devices that use industry-standard protocols like ZigBee or MQTT. For example, by using ja2mqtt in conjunction with ZigBee2MQTT, Jablotron alarms and ZigBee devices can be connected in a single network and integrated with other systems such as Alexa, Tahoma, or Google Assistant, providing a unified and interoperable smart home or industrial automation solution.

ja2mqtt reads input from the JA-121T serial interface, converts it into MQTT events, and publishes them to the MQTT broker using defined MQTT topics. It utilizes a ja2mqtt definition file that outlines the implementation of the JA-121T protocol. Additionally, ja2mqtt defines MQTT events that can be converted into input for the JA-121T serial interface, such as changing the state of a section to ARMED or READY. Each MQTT request may contain a correlation ID that is copied to the corresponding generated MQTT event.

If you do not have access to a JA-121T interface for testing, ja2mqtt offers a simulator that can simulate the interaction with the JA-121T interface. This allows you to test and verify the functionality of ja2mqtt even without the physical JA-121T interface available.

See https://github.com/tomvit/ja2mqtt for more details.