semvec/pypi-packages huggingface dataset:
ssw-py 1.0.1
Python bindings for Complete-Striped-Smith-Waterman-Library (SSW) project
License: MIT

# ssw-py: Striped Smith-Waterman SIMD accelerated Python Package for Use in Genomic Applications

<a href="https://github.com/libnano/ssw-py/actions/" rel="actions">![Actions](https://github.com/libnano/ssw-py/actions/workflows/ssw-py-ci-github-action.yml/badge.svg)</a>
<a href="http://www.gnu.org/licenses/gpl-2.0.html" rel="license">![License](https://img.shields.io/pypi/l/ssw-py.png)</a>
<a href="https://pypi.python.org/pypi/ssw-py" rel="pypi">![PyPi](https://img.shields.io/pypi/v/ssw-py.png)</a>


This library uses the excellent source code from this is
[original source repository](https://github.com/mengyao/Complete-Striped-Smith-Waterman-Library)

Please cite this [PLOS ONE paper](http://dx.plos.org/10.1371/journal.pone.0082138) by Zhao et al. 2013 when using this software.

## Overview

**ssw-py** provides a fast implementation of the Smith-Waterman algorithm,
which uses the Single-Instruction Multiple-Data (SIMD) instructions to parallelize
the algorithm at the instruction level.

Using `ssw.AlignmentMgr`, you can compute the Smith-Waterman score, alignment location and traceback path
([CIGAR](https://genome.sph.umich.edu/wiki/SAM#What_is_a_CIGAR.3F)) of the
optimal alignment accurately; and return the sub-optimal alignment score and
location heuristically.

Note: When Striped Smith-Waterman opens a gap, the gap open penalty alone is applied.

## Installation

from [PyPi](https://pypi.org/project/ssw-py/)

    $ pip install ssw-py


or from source

    $ python setup.py install

## Documentation
See [documentation](https://libnano.github.io/ssw-py/) for help on using these
bindings.
django-role 0.1.6
Role for django User model
License: MIT
Requires Python: >=3.10,<4.0
Keywords: django


<a href="https://pypi.org/project/django-role/">
  <img src="https://img.shields.io/pypi/dm/django-role"/>
</a>
<a href="https://pypi.org/project/django-role/">
  <img src="https://img.shields.io/pypi/v/django-role"/>
</a>
<a href="https://github.com/isys35/django-role">
  <img src="https://img.shields.io/github/last-commit/isys35/django-role"/>
</a>

# django-role

Пакет включает в себя:
* Модель пользователя с **ролью** вместо **групп**
* Виджет для выбора прав

Роль в отличии от групп связана с моделю пользователя связью **Один ко многим**

## Установка

```pip install django-role```

```poetry add django-role```

### Использование модели пользователя
_models.py_
```python
from user_role.models import AbstractUser

class User(AbstractUser):
    ...
```
_settings.py_
```python
AUTH_USER_MODEL = "app_name.User"
```

### Использование виджета для выбора прав

_settings.py_
```python
PERMISSIONS_LABELS = {
    "add": "Добавление",
    "change": "Изменение",
    "view": "Просмотр",
    "delete": "Удаление",
}
```

_forms.py_
```python
from django import forms
from django.contrib.auth.models import Permission
from django.utils.translation import gettext_lazy as _

from user_role.models import Role
from user_role.widgets import PermissionsSelectMultiply


class RoleCreationForm(forms.ModelForm):
    permissions = forms.ModelMultipleChoiceField(
        label=_("Permissions"),
        widget=PermissionsSelectMultiply(),
        queryset=Permission.objects.all()
    )

    class Meta:
        model = Role
        fields = [
            "name",
            "permissions"
        ]
```

<img src="widget.png"/>

### Группирование прав и настройка виджета

```python
class MyPermissionsSelectMultiply(PermissionsSelectMultiply):
    groups_permissions = {
        "Безопасность": ["user_role.user", "user_role.role"]
    }
```

<img src="widget2.png"/>