semvec/pypi-packages huggingface dataset:
django-nepali-datetime-field 0.8.0
Django nepali datetime fields and helpers.
License: MIT
Requires Python: >=3.6

=====================
Nepali DateTime Field
=====================

Highly motivated package from Django's DateField & DateTimeField. The library is intended to provide
Bikram Sambat Date Time fields for Django's Model and Form.

:code:`Note: Currently only supports DateField. DateTimeField will be supported soon in future releases.`

The package is dependent on `nepali-datetime <https://github.com/amitgaru2/nepali-datetime>`_ package and the UI for the date picker is implemented from https://github.com/leapfrogtechnology/nepali-date-picker.

**Supports: Django 2.0+**

Installation
------------
::

    $ pip install django-nepali-datetime-field


Quick start
-----------

1. Add ``nepali_datetime_field`` to your ``INSTALLED_APPS`` list::

    INSTALLED_APPS = [
        ...
        'nepali_datetime_field',
    ]

2. Importing ``NepaliDateField`` model field to ``models.py`` file::

    from nepali_datetime_field.models import NepaliDateField

    class YourModel(models.Model):
        ...
        nepali_date = NepaliDateField()

3. Importing ``NepaliDateField`` form field to ``forms.py`` file::
   
    from nepali_datetime_field.forms import NepaliDateField

    class YourForm(forms.Form):
        ...
        nepali_date = NepaliDateField()

4. Whenever using ``NepaliDateField`` form field, don't forget to add Widget's media on the `<head>` section of the html as below::
    
    <html>
    <head>
    ...
    {{ form.media }}
    ...
    </head>
    <body>
    ...
    {{ form }}
    ...
    </body>
    </html>

5. Querying the model field::
   
    import nepali_datetime

    nepali_date = nepali_datetime.date(1995,10,1)

    # get query
    YourModel.objects.get(nepali_date=nepali_date)

    # filter query
    YourModel.objects.filter(nepali_date=nepali_date)

    # date range query
    from_date = nepali_datetime.date(1990,1,1)
    to_date = nepali_datetime.date(1999,12,30)
    YourModel.objects.filter(nepali_date__range=(from_date, to_date))


More Usage
----------
Check some of the usage details in `example_app/tests.py <https://github.com/amitgaru2/django-nepali-datetime-field/blob/main/example_app/tests.py>`__.


Demo
----
Play around with the live demo `here <https://nepali-datetime-field.herokuapp.com/example/create>`__.
ghae 1.0.1
This library detects the responses to erroneous requests to the GitHub API. An exception signals these errors.
License: MIT

## FRANÇAIS

Cette bibliothèque détecte les réponses aux requêtes erronées à l'API de
GitHub. Une exception signale ces erreurs.

### Contenu

L'exception `GitHubApiError` peut être levée quand une réponse de l'API de
GitHub indique que la requête est erronée. Ses propriétés sont les suivantes.

* `message`: le message d'erreur.
* `doc_url`: l'URL de la documentation de l'erreur.
* `status`: le code du statut de la réponse.
* `req_url`: l'URL de la requête erronée.

La fonction `detect_github_api_error` examine les données provenant de l'API de
GitHub et lève `GitHubApiError` si elles résultent d'une requête erronée. Les
données doivent être un objet produit par la lecture du contenu de la réponse,
qui est en JSON.

L'utilisateur devrait se fier à `detect_github_api_error` plutôt que lever
`GitHubApiError` lui-même.

Pour plus d'informations, consultez la documentation et la démo dans le dépôt
de code source.

## ENGLISH

This library detects the responses to erroneous requests to the GitHub API. An
exception signals these errors.

### Content

Exception `GitHubApiError` can be raised when a response from the GitHub API
indicates that the request is erroneous. Its properties are the following.

* `message`: the error message.
* `doc_url`: the URL to the error's documentation.
* `status`: the response's status code.
* `req_url`: the erroneous request's URL.

Function `detect_github_api_error` examines data from the GitHub API and raises
a `GitHubApiError` if it is the result of an erroneous request. The data must
be an object returned by the parsing of the response's content, which is in
JSON.

The user should rely on `detect_github_api_error` rather than raising
`GitHubApiError` themself.

For more information, consult the documentation and the demo in the source code
repository.
krkr-sprite-synth 0.2.0
A library for synthesizing character sprites for galgame games using the krkr engine
License: MIT
Requires Python: >=3.8

# Kirikiri Sprite Synth

This is a simple tool to generate a sprite sheet from a set of images. It provides exactly the same sprite sheet as the one generated by the Kirikiri engine, which is used in many visual novels.

## Usage

```python
from PIL import Image
from kirikiri_sprite_synth import SpriteSynth


# Create a SpriteSynth object
synth = SpriteSynth(
    a_info_path='a_info.txt',
    # Path to a_info file, usually located at /fgimage/<character_name>a_info.txt
    b_info_path='b_info.txt',
    # Path to b_info file, usually located at /fgimage/<character_name>b_info.txt
    a_layers_info_path='a.txt',
    # Path to a layer info files, usually located at /fgimage/<character_name>/<character_name>a.txt
    b_layers_info_path='b.txt',
    # Path to b layer info files, usually located at /fgimage/<character_name>/<character_name>b.txt
    assets_path='assets',
    # Path to the assets folder, usually located at /fgimage/<character_name>
    character_name='character_name',
    # Name of the character, used to assist in locating the layer images
)

# Generate the sprite sheet
sprite: Image.Image = synth.draw(
    dress="私服",
    face="01",
    pose="1",
)

# Save the sprite sheet
sprite.save('sprite.png')
```

## Installation

<details open>
<summary>pip</summary>

    pip install kirikiri-sprite-synth

</details>


<details>
<summary>pdm</summary>

    pdm add kirikiri-sprite-synth
</details>
<details>
<summary>poetry</summary>

    poetry add kirikiri-sprite-synth
</details>
<details>
<summary>conda</summary>

    conda install kiri-kiri-sprite-synth -c conda-forge
</details>

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgments

- [Senren * Banka](https://senren.nekonyansoft.com/): Great visual novel that inspired me to create this tool.