semvec/pypi-packages huggingface dataset:
crispy-tailwind 1.0.3
Tailwind CSS for Django Crispy Forms
License: MIT
Requires Python: >=3.8

===============
Crispy-Tailwind
===============

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black

A `Tailwind CSS`_ template pack for the wonderful django-crispy-forms_.

**WARNING**

This project is still in its early stages of development. Any contributions to
the package would be very welcomed.

Currently the template pack allows the use of the ``|crispy`` filter to style
your form. Here is an example image.

.. image:: https://django-crispy-forms.github.io/crispy-tailwind/_images/crispy_form.png

How to install
--------------

Install via pip. ::

    pip install crispy-tailwind

You will need to update your project's settings file to add ``crispy_forms``
and ``crispy_tailwind`` to your project's ``INSTALLED_APPS`` setting. Also set
``tailwind`` as an allowed template pack and as the default template pack
for your project::

    INSTALLED_APPS = (
        ...
        "crispy_forms",
        "crispy_tailwind",
        ...
    )

    CRISPY_ALLOWED_TEMPLATE_PACKS = "tailwind"

    CRISPY_TEMPLATE_PACK = "tailwind"

How to use
----------

This project is still in its early stages.

Current functionality allows the ``|crispy`` filter to be used to style your
form. In your template:

1. Load the filter: ``{% load tailwind_filters %}``
2. Apply the crispy filter: ``{{ form|crispy }}``

We can also use the ``{% crispy %}`` tag to allow usage of crispy-forms'
``FormHelper`` and ``Layout``. In your template:

1. Load the crispy tag: ``{% load crispy_forms_tags %}``
2. Add ``FormHelper`` to your form and use crispy-forms to set-up your form
3. Use the crispy tag ``{% crispy form %}`` in your template

Documentation
-------------

The documentation for this project is available here:
https://django-crispy-forms.github.io/crispy-tailwind/index.html

FAQs
----

What about custom widgets?
==========================

The template pack includes default styles for widgets included in Django
itself. `Styling of widget instances`_ can be done by using the ``widget.attrs``
argument when creating the widget.

For example the following form will render
``<input type="text" name="name" class="customtextwidget custom-css" required id="id_name">``::

    class CustomTextWidget(forms.TextInput):
        pass

    class CustomTextWidgetForm(forms.Form):
        name = forms.CharField(
            widget=CustomTextWidget(attrs={"class": "custom-css"})
        )

.. _`Styling of widget instances` : https://docs.djangoproject.com/en/dev/ref/forms/widgets/#styling-widget-instances
.. _Tailwind CSS: https://tailwindcss.com/
.. _django-crispy-forms: https://github.com/django-crispy-forms/django-crispy-forms
doky 1.0.1
Doky is a intuitive library and CLI tool for manage your Docker-In-Docker instances from Play With Docker Lab
License: MIT
Requires Python: >=3.11,<4.0

<p align="center">
  <img src="https://i.imgur.com/NcjxDgn.png" width="240" alt="Doky Logo">
  <br>
  <b>Doky Tool</b>
  <br>
  A intuitive CLI tool and Python Library for manage your Docker-In-Docker instances<br>
  from <a href="https://labs.play-with-docker.com/">Play With Docker</a>
  <br><br>
  <a href="test"><b>Any questions? Open an issue!</b></a>
</p>

<p align="center">
  <a href="LICENSE.md"><img src="https://img.shields.io/github/license/d3cryptofc/doky?color=1e90ff"></a>
  <a href="https://pypi.org/project/doky/"><img src="https://img.shields.io/pypi/dm/doky?color=1e90ff"></a>
  <a href="https://pypi.org/project/doky/"><img src="https://img.shields.io/pypi/v/doky?color=1e90ff"></a>
  <a href="https://d3cryptofc.github.io/Doky"><img src="https://img.shields.io/badge/Documentation-1e90ff"></a>
</p>



## Usage

```
$ doky

Usage: doky [OPTIONS] COMMAND [ARGS]...

  Doky is a intuitive library and CLI tool for manage your Docker-In-Docker
  instances from Play With Docker Lab

Options:
  -h, --help  Show this message and exit.

Commands:
  version  Show current app version.

  User authentication management:
    auth me                       Show your authentication user informations.
    auth oauth [--provider NAME]  Request for an OAuth URL to authenticate with a provider.
    auth providers                List available OAuth providers to request an OAuth URL.
    auth token <TOKEN>            Set the authentication session ID.
```

## Installation

Will you only use the CLI? Then install with **pipx**:

```bash
$ pipx install doky
```

Will you use both? Then you can install with **pip/poetry/etc**:

```bash
$ pip install doky
$ poetry add doky
```