semvec/pypi-packages huggingface dataset:
django-handwriting-widget 0.1.6
A handwriting widget for django
Keywords: handwrite

# Django Handwriting Widget

[![CircleCI](https://circleci.com/gh/arthurc0102/django-handwriting-widget.svg?style=svg)](https://circleci.com/gh/arthurc0102/django-handwriting-widget)

> A handwriting widget for django  

## Installation

Install with `pip`

```
pip install django-handwriting-widget
```

Add this app to `INSTALLED_APPS` in `settings.py`

```python
INSTALLED_APPS = [
    ...
    'handwriting',
]
```

## Usage

[Example model](e_signatures/models.py)

### Form

```python
from django import forms

from handwriting.forms import HandwritingPad

from .models import Signature


class SignatureForm(forms.ModelForm):
    class Meta:
        model = Signature
        fields = '__all__'
        widgets = {
            'image': HandwritingPad(),
        }
```

### Admin

```python
from django.contrib import admin

from handwriting.admin import HandwritingPadModelAdmin

from .models import Signature


@admin.register(Signature)
class SignatureAdmin(HandwritingPadModelAdmin):
    list_display = ('name', 'create_at')
```

or 

```python
from django.contrib import admin

from handwriting.admin import HandwritingPadAdminMixin

from .models import Signature


@admin.register(Signature)
class SignatureAdmin(HandwritingPadAdminMixin, admin.ModelAdmin):
    list_display = ('name', 'create_at')
```

or

```python
from django.contrib import admin

from .forms import SignatureForm
from .models import Signature


@admin.register(Signature)
class SignatureAdmin(admin.ModelAdmin):
    form = SignatureForm
    list_display = ('name', 'create_at')
```
workingless 0.2.1
Holidays and working days calculations
Keywords: holiday working-day

===========
Workingless
===========
.. image:: https://readthedocs.org/projects/workingless/badge/?version=latest
    :target: https://workingless.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. image:: https://circleci.com/gh/pity7736/workingless.svg?style=shield
    :target: https://circleci.com/gh/pity7736/workingless



Workingless is a lib for holidays calculations. Currently it supports Colombia
and Mexico (beta) holidays.


`See full documentation <https://workingless.readthedocs.io/en/latest/?badge=latest>`_.


Usage
-----

Workingless has four methods for the countries supported, they are:
``get_holidays_from_year``, ``is_holiday``, ``is_working_day`` and ``get_next_working_day``.

Example usage:

.. code-block:: python

    import datetime

    from workingless import countries

    colombia = countries.COL()
    holidays = colombia.get_holidays_from_year(year=2020)
    print(type(holidays))  # <class 'generator'>
    print(list(holidays))
    # result:
    # [
    #     datetime.date(2020, 1, 1),
    #     datetime.date(2020, 1, 6),
    #     datetime.date(2020, 3, 23),
    #     datetime.date(2020, 4, 5),
    #     datetime.date(2020, 4, 9),
    #     datetime.date(2020, 4, 10),
    #     datetime.date(2020, 4, 12),
    #     datetime.date(2020, 5, 1),
    #     datetime.date(2020, 5, 25),
    #     datetime.date(2020, 6, 15),
    #     datetime.date(2020, 6, 22),
    #     datetime.date(2020, 6, 29),
    #     datetime.date(2020, 7, 20),
    #     datetime.date(2020, 8, 7),
    #     datetime.date(2020, 8, 17),
    #     datetime.date(2020, 10, 12),
    #     datetime.date(2020, 11, 2),
    #     datetime.date(2020, 11, 16),
    #     datetime.date(2020, 12, 8),
    #     datetime.date(2020, 12, 25)
    # ]
    colombia.is_holiday(date=datetime.date(2020, 1, 1))  # True
    colombia.is_working_day(datetime.date(2020, 1, 1)  # False
    colombia.get_next_working_day(datetime.date(2020, 1, 1)  # datetime.date(2020, 1, 2)

License
-------

Distributed under the terms of the GPLv3 license.

See `license <https://github.com/pity7736/workingless/blob/master/LICENSE>`_.