semvec/pypi-packages huggingface dataset:
datadis 1.0.1
Datadis API client
Requires Python: <4.0,>=3.8


# Datadis

Python client for https://datadis.es

![GitHub](https://img.shields.io/github/license/mrmarble/datadis)
[![Semantic Release](https://github.com/MrMarble/datadis/actions/workflows/release.yml/badge.svg)](https://github.com/MrMarble/datadis/actions/workflows/release.yml)
![PyPI - Downloads](https://img.shields.io/pypi/dm/datadis)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=MrMarble_datadis&metric=alert_status)](https://sonarcloud.io/dashboard?id=MrMarble_datadis)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/datadis)

## Installation

From [PyPi](https://pypi.org/project/datadis/)

```bash
pip install datadis
```
    
## Usage/Examples

```python
import asyncio
from datadis import get_token, get_supplies

token = asyncio.run(get_token('username', 'password'))

supplies = asyncio.run(get_supplies(token))

#[
#    {
#        "address": "home",
#        "cups": "1234ABC",
#        "postalCode": "1024",
#        "province": "madrid",
#        "municipality": "madrid",
#        "distributor": "Energy",
#        "validDateFrom": "2020/09",
#        "validDateTo": "2021/09",
#        "pointType": 0,
#        "distributorCode": "2"
#    }
#]
```

### Datadis time format

The datadis documentation is a bit sparse regarding the "time" attribute in some of the answers, read this comment from *skgsergio* on the topic https://github.com/MrMarble/datadis/issues/5#issuecomment-1550262886
tmexio 0.2.1
Python framework for building SocketIO applications with typing, dependency injection and more
Requires Python: <4.0,>=3.12

# TMEXIO
Python framework for building SocketIO applications with typing, dependency injection and more

TBA

## Local Development
1. Clone the repository
2. Setup python (the library is made with python 3.12+)
3. Install poetry (should work with v1.8.2)
4. Install dependencies
5. Install pre-commit hooks

Commands to use:
```
pip install poetry==1.8.2
poetry install
pre-commit install
```
LegacyDataValidator 0.1.2
A simple data validation library
Requires Python: >=3.7

# DataValidator

`DataValidator` is a simple, lightweight Python library for validating various types of data. This library aims to provide easy-to-use validation methods for strings, numbers, emails, dates, lists, and dictionaries.

## Features

- **String Validation**: Validate strings with minimum and maximum length, and optional regex patterns.
- **Number Validation**: Validate numbers with constraints like minimum and maximum values, integer check, positive or negative checks.
- **Email Validation**: Validate email addresses with a regex pattern.
- **Date Validation**: Validate date strings with a specified format.
- **List Validation**: Validate lists with minimum and maximum lengths and element type checks.
- **Dictionary Validation**: Validate dictionaries with required keys and key type checks.

## Installation

You can install `DataValidator` using `pip`. Note that this example assumes the library is published on PyPI.

```sh
pip install LegacyDataValidator
examplenewproject 0.3
A Python wrapper for a C++ project
Requires Python: >=3.6

# ExampleNewProject

This is a Python wrapper for a C++ project.

## Installation
```
pip install examplenewproject

```

____________________

```


from examplenewproject.wrapper import process_files

num_iterations = 100
threshold = 0.0001
num_clusters = 12
seed = 17
file_list = [
    "../../Sample_Data/Breastcancer.csv",
    "../../Sample_Data/CreditRisk.csv",
    "../../Sample_Data/census.csv",
    "../../Sample_Data/birch.csv"
]

results = process_files(num_iterations, threshold, num_clusters, seed, file_list)

for result in results:
    print(result)

```
event-plugin-system 0.0.8
A simple plugin event system
Requires Python: >=3.6

# Event System

A simple plugin event system designed to handle events with plugins dynamically loaded from a specified directory.

## Features

- Load plugins from a directory.
- Emit events that plugins can handle.
- Support for both synchronous and asynchronous event handling.

## Installation

To install the package, use:

```bash
pip install event-plugin-system
```

## Usage

```python

from event_plugin_system import EventPluginSystem

# Specify the directory containing your plugins
plugin_dir = "path/to/your/plugins"

# Initialize the event system
event_system = EventPluginSystem(plugin_dir=plugin_dir)

# Emit an event
event_system.emit("start")

# Emit an event with arguments
results = {}
event_system.emit("arg_pass2", arg="test", results=results)

# Check results
# storage/location for results from event handlers need to provided to the handler
# Appropriate safe objects should be used for results
# Consider async queue for async, threadsafe queue when using threads
# Destination URI's are good choices as well like redis, etc..
# if threadsafe/simple flow dictionary can be used with plugin_name as the key
print(results)
```

### Function Syntax
`__call__` is aliased to `emit()`. The instance can be used like a function.
```python
event_system = EventPluginSystem(plugin_dir=plugin_dir)
event_system("event", arg1=arg)
```

## Plugin Structure

Each plugin should be a Python file in the specified plugin directory and contain a class named Plugin. The class should define methods with names following the pattern handle_<event_name>.

### Example Plugin (simple_echo.py):
```python
class Plugin:
    def handle_start(self, **kwargs):
        print("Start event received.")

    def handle_arg(self, arg, **kwargs):
        print(f"Arg received: {arg}")
```

## Asynchronous Support

### For asynchronous event handling, use EventPluginSystemAsync:

```python
import asyncio
from event_plugin_system import EventPluginSystemAsync

es = EventPluginSystemAsync(plugin_dir=plugin_dir)

async def example():
    await es.emit("start")

if __name__ == '__main__':
    asyncio.run(example())

```

## Testing

```
pytest
```