semvec/pypi-packages huggingface dataset:
howdyho 3.0.1
Забавный скрипт, без остановки печатающий фразу "Хаудихо помоги".
License: MIT
Requires Python: >=3.7,<4.0

# Howdyho
~~Бесполезный~~ Забавный скрипт, без остановки печатающий фразу "Хаудихо помоги".

# Установка
```shell
pip install -U howdyho
```

# Использование
```shell
howdyho
# или
python -m howdyho
```
pyrankability 0.1.4
Ranking Python Library
License: MIT

## Rankability Toolbox
This repo contains various implementations that provide insights into the rankability of data and the linear ordering problem.

## Install instructions
### Prerequisites
graphviz headers must be installed:
```bash
apt-get install -y libgraphviz-dev
```

### Recommended package installation
```bash
pip install pyrankability
```

### Post package installation: Gurobi License
This library relies on Gurobi optimizer. Gurobi provides free academic licenses and more information on obtaining and installing your license can be found here: https://support.gurobi.com/hc/en-us/articles/360040541251. 

### Verify installation
```python
import pyrankability
n=8
D=np.zeros((n,n))
D[np.triu_indices(n,1)]=1
D[[5,3,7]] = 1-D[[5,3,7]]
D=pd.DataFrame(D)
k_hillside,details_hillside = pyrankability.rank.solve(D,method='hillside')
k_lop,details_lop = pyrankability.rank.solve(D,method='lop')

assert k_hillside == 54 and k_lop == 12.0
```

## Development notes
### Running tests
```bash
cd ranking_toolbox
python3 -m venv ../env
source ../env/bin/activate
cd tests
pytest tests.py
```

## Authors
Paul Anderson, Ph.D.<br>
Department of Computer Science<br>
Director, Data Science Program<br>
College of Charleston<br>

Amy Langville, Ph.D.<br>
Department of Mathematics<br>
College of Charleston<br>

Tim Chartier, Ph.D.<br>
Department of Mathematics<br>
Davidson College

## Acknowledgements
We would like to thank the entire IGARDS team for their invaluable insight and encouragement.
django-pg-ddl-extras 0.1.0
Postgres declarative functions for Django
License: MIT
Requires Python: >=3.7

# django-pg-ddl-extras

A tiny library that implements declarative postgres function definitions for Django.

## Requirements

-   Python >= 3.7
-   Django >= 3.2

## Usage

In the below example, we create a function that is run as part of a constraint trigger.

```py
from django_pg_ddl_extras import (
    PostgresTriggerFunctionDefinition,
    ConstraintTrigger,
    TriggerEvent,
)
from django.db import models
from django.db.models.constraints import Deferrable

# Write a custom constraint in SQL
# In order to get picked up by the migration engine, we include the function definition
# as part of the class `Meta.constraints` list.
# Unfortunately, Django does not seem to have a cleaner way to define this yet.
custom_function = PostgresTriggerFunctionDefinition(
    name="my_function",
    body="""
DECLARE
BEGIN
    IF (TG_OP = 'DELETE') THEN
        RETURN OLD;
    END IF;
    IF NOT FOUND THEN
        RAISE EXCEPTION
            'This is an example constraint error'
            USING ERRCODE = 23514;
    END IF;
    RETURN NEW;
END;
    """,
)

class MyModel(models.Model):
    class Meta:
        constraints = [
            custom_function,
            ConstraintTrigger(
                name="my_trigger",
                events=[TriggerEvent.UPDATE, TriggerEvent.INSERT, TriggerEvent.DELETE],
                deferrable=Deferrable.DEFERRED,
                function=custom_function.as_func(),
            ),
        ]

```