semvec/pypi-packages huggingface dataset:
functions3 0.1.3
3 functions for for sprint 2.1 module
Requires Python: >=3.9,<4.0

# Data Transformation Library

## Project description
3 functions that are common for transforming data used in machine learning models.

- __Transpose__ signature: transpose2d(input_matrix: list[list[float]]) -> list
- __Time Series Windowing__ signature: window1d(input_array: list | np.ndarray, size: int, shift: int = 1, stride: int = 1) -> list[list | np.ndarray]
- __Cross-Correlation__ signature: convolution2d(input_matrix: np.ndarray, kernel: np.ndarray, stride : int = 1) -> np.ndarray
django-promotion-counters 0.1.5
Django app to handle promotion and marketing events.
Requires Python: >=3.8

=====
Promotion Counters
=====

Django app to handle promotion and marketing
events based on it's counting and process such counters as achievements.

Quick start
-----------

1. Add "promotion_counters" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...,
        "promotion_counters",
    ]


3. Run ``python manage.py migrate`` to create
the promotion program and promotion counter models.

4. Define your promotion action like this::

    registration = Action(
        alias='registration',
        verbose_name='Регистрация по ссылке',
    )

5. Define your achievement handler like this::

    @on_achievement(action='Issue promo code')
    def registration_handler(counter: Counter):
        PromoCode.objects.create(
            user=counter.user,
            code=generate_promo_code(),
            type=PromoCode.DISCOUNT,
            value=10,
        )

6. Create promotion program using promotion action and achievement handler in admin panel.