semvec/pypi-packages huggingface dataset:
django-bitmask-field 0.1.3
BitmaskField implementation for Django ORM
License: MIT

====================
django-bitmask-field
====================

BitmaskField implementation for `Django`_ ORM

.. image:: https://travis-ci.org/renskiy/django-bitmask-field.svg?branch=master
    :target: https://travis-ci.org/renskiy/django-bitmask-field

.. image:: https://coveralls.io/repos/github/renskiy/django-bitmask-field/badge.svg?branch=master
    :target: https://coveralls.io/github/renskiy/django-bitmask-field?branch=master

.. _Django: https://www.djangoproject.com

Requirements
------------

* Python 2.7 or Python 3.4+
* Django 1.8+

Example
-------

.. code-block:: python

    from django.db import models
    from django_bitmask_field import BitmaskField


    class MyModel(models.Model):

        bitmask = BitmaskField(
            choices=[(1, 'bit0'), (2, 'bit1'), (4, 'bit2')],  # available choices
            default=1 | 4,  # bit0 and bit2 are enabled by default
        )

Install
-------

.. code-block:: bash

    pip install django-bitmask-field
visedit 1.0.5
Python Library to visualize string edit
License: MIT
Keywords: EditDistance,LevenshteinDistance,NLP

# Abstract
VisEdit is a visualiation library for string edit and differences between two strings.

# Main Features

* visualize differences between two strings
* generate formatted text and html


# Installation

install using pip:

```
$ pip install visedit
```

# Example Codes

## Generate formatted text or html

```
from visedit import StringEdit
source_str = "kitten"
target_str = "sitting"
se = StringEdit(source_str, target_str)
text = se.generate_text()
print(text)

# spaces will be truncated if truncate=True
text = se.generate_text(truncate=True)
# also available html as well as text
html = se.generate_html()
```

## Change color setting

```
# setting for text
e = StringEdit(source_str, target_str, text_color_settings={
"wrong": "YELLOW",
"correct": "GREEN",
"base": "WHITE",
})
# setting for html
e = StringEdit(source_str, target_str, html_color_settings={
"wrong": "YELLOW",
"correct": "GREEN",
"base": "WHITE",
})
```

available colors are:

* BLACK
* RED
* GREEN
* YELLOW
* BLUE
* PURPLE
* CYAN
* WHITE