semvec/pypi-packages huggingface dataset:
project215-data-transformations 0.4.0
This package includes transpose, time series windowing and cross-correlation libraries.
Requires Python: >=3.9,<4.0

## Introduction

In this project, the goal was to build and publish a python package to PyPI via poetry.

Data Transformations is a Python package that provides 3 functions for data transformation tasks. It includes functions for 2D matrix operations, 1D windowing, and 2D cross-correlation. This package is designed to help data scientists internally.

## Installation

You can install Data Transformations using `pip`:

```bash
pip install project215-data-transformations
```
## Usage

Here's how you can use the functions from Data Transformations in your Python code:


```python

from project215_data_transformations import transpose2d, window1d, cross_correlation2d

# Example usage of the transpose2d function
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
transposed = transpose2d(matrix)
print(transposed)

# Example usage of the window1d function
data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
windows = window1d(data, size=3, shift=1, stride=1)
print(windows)

# Example usage of the cross_correlation2d function
import numpy as np
input_matrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
kernel = np.array([[0, 1], [1, 0]])
result = cross_correlation2d(input_matrix, kernel, stride=1)
print(result)
```
smartmeter-webthing 1.2.32
Smartmeter WebThing
Requires Python: >=3.8

# smart meter webthing
A webthing connector for smart meters

This project provides a smart meter [webthing API](https://webthings.io/). It provides the software to connect an [IR USB sensor](https://wiki.volkszaehler.org/hardware/controllers/ir-schreib-lesekopf-usb-ausgang)

<img src="img.png" height="350" />

The smart meter webthing package provides an http webthing endpoint that supports smart meter consumption values over http. e.g.
```
# webthing has been started on host 192.168.0.23

curl http://192.168.0.23:7122/properties 

{
   "current_power": 389,
   "produced_power_total": 3314.7,
   "consumed_power_total": 259784.2
}
```

To install this software, you can use the [PIP](https://realpython.com/what-is-pip/) package manager as shown below
```
sudo pip install smartmeter_webthing
```

After installation, you can start the webthing http endpoint in your Python code or from the command line by typing
```
sudo smartmeter --command listen --port 7122 --sport /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0051-if00-port0
```
Here the webthing API will use the local port 7122. Additionally, the device address of the IR sensor must be set. To configure the device address, see [setup device](configure.md).

As an alternative to the *list* command, you can also use the *register* command to register and start the webthing service as a systemd device.
This way, the webthing service is started automatically at boot time. Starting the server manually with the *listen* command, as shown above, is no longer necessary.

```
sudo smartmeter --command register --port 7122 --sport /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0051-if00-port0
```