semvec/pypi-packages huggingface dataset:
dbt-yaml-check 0.3.0
dbt-yaml-check checks that columns defined in YAML also exist in SQL.
Requires Python: >=3.7,<4.0

# dbt-yaml-check
![PyPI](https://img.shields.io/pypi/v/dbt-yaml-check)
[![test](https://github.com/k-aranke/dbt-yaml-check/actions/workflows/test.yml/badge.svg)](https://github.com/k-aranke/dbt-yaml-check/actions/workflows/test.yml)

`dbt-yaml-check` checks that columns defined in YAML also exist in SQL.

This is particularly useful for identifying extraneous columns and typos in column names.

## Installation

`dbt-yaml-check` requires Python version 3.7 or higher.

```shell
pip install dbt-yaml-check
```

## Usage

```shell
$ cd jaffle_shop
$ dbt run
$ dbt docs generate
$ dbt-yaml-check
+-----------+--------------------+-----+------+
|   Model   |       Column       | SQL | YAML |
+-----------+--------------------+-----+------+
| customers | total_order_amount |  ✕  |  ✓   |
+-----------+--------------------+-----+------+
```

## FAQ

### How can I specify a custom target directory?

Use the `target-dir` option like so: `dbt-yaml-check --target-dir <path_to_your_target>`.
django-subject-sort 0.2.0
Allows items of a collection to be manually sorted(such as for use with drag-and-drop).
Requires Python: >=3.6

# Django Subjective Sort

## Installation

```shell
    $ pip install django-subjective-sort
```

## Usage

1. Extend the `Sortable` class to add custom sorting logic to any Django model.

```python
# food/models.py
from typing import List

from django.db import models

from src.django_subjective_sort.models import Sortable


class Food(Sortable):
    name = models.CharField(max_length=255)

    # Extend the `Sortable` class to save sorting order.
    # This allows flexibility to save other changes simultaneously.
    def reposition(self,
                   peers: List['Food'],
                   position: int = None) -> List['Food']:
        sortables_affected = super().reposition(peers, position) + [self]
        # Save the changes
        return Food.objects.bulk_update(sortables_affected, ['position'])
```

2. Apply migrations.

```shell
    $ python manage.py makemigrations
    $ python manage.py migrate
```