semvec/pypi-packages huggingface dataset:
django-goodforms 0.2.1
Custom renderer for django form fields
License: BSD
Keywords: django forms

.. image:: https://travis-ci.org/zenwalker/django-goodforms.svg
   :target: https://travis-ci.org/zenwalker/django-goodforms
   :alt: Build Status

Good forms for Django
=====================

**GoodForms** — rails-like renderer for your form fields. Provide fully control of filed styles and attributes. It's not replacement for ``django.forms``.


Installation
------------

Run ``pip install django-goodforms`` and add ``goodforms`` to ``INSTALLED_APPS``. That's all.


Usage
-----

The view::

    from django.shortcuts import render
    from django import forms

    class LoginForm(forms.Form):
        username = forms.CharField()
        password = forms.PasswordField()

    def sign_up(request):
        from = MyForm(initial={'username': 'johnsmith'})
        return render(request, 'index.html', {'form': form})


The template::

    {% load form_fields %}

    {% form name="login" class="login-form" %}
        {% textfield form.username class="login-form_input" %}
        {% textfield form.password class="login-form_input" %}
        {% submit_button "Login" %}
    {% endform %}


Controls
--------

Form tag
~~~~~~~~

- Form tag automatically inject csrf-token.
- Fields use ``name`` attribute as prefix for ``id`` and ``for`` in labels.

::

    {% form name="myform" %}
        <!-- Form content -->
    {% endform %}


Textfield and Textarea
~~~~~~~~~~~~~~~~~~~~~~

::

    {% textfield form.title **kwargs %}
    {% textarea form.description **kwargs %}


Select
~~~~~~

::

    {% select form.country values="ru:Russia,de:Germany" %}

You can use any dict, iterable collection or queryset as values list::

    {% select form.county values=any_iterable_object value_key="code" label_key="title" %}


Checkbox and radio-button
~~~~~~~~~~~~~~~~~~~~~~~~~

::

    {% radio form.gender value="female" %}
    {% radio form.gender value="male" %}

The ``label`` attribute wraps checkbox to ``<label>`` tag. All attributes provite to it::

    {% checkbox form.agree label="I agree" style="font-weight: bold;" %}

    <label style="font-weight: bold;">
        <input type="checkbox" name="agree" value="1"> <span>I agree</span>
    </label>


Submit button
~~~~~~~~~~~~~

::

    {% submit_button "Send message" %}
    {% submit_button "Save as draft" name="is_draft" value=True %}


Tips
----

You can use any of field without a form class::

    {% input "username" required=True %}
    {% select "city" values="1:New York, 2:London" %}


Settigns
--------

``GOODFORMS_XHTML`` — Enable or disable XHTML syntax (default: ``False``)

``GOODFORMS_AUTO_ID`` — Automatically generate ``id`` and ``for`` attributes for fields and labels (default: ``True``)

``GOODFORMS_ID_PREFIX`` — Prefix for auto-generated ``id`` and ``for`` attributes. For forms without ``name`` attribute (default: ``field``)


License
-------

Licensed under the MIT license.
htmlutils 0.1.2
UNKNOWN
License: BSD
Keywords: html

==========
Html utils
==========

.. image:: https://travis-ci.org/zenwalker/python-htmlutils.svg
   :target: https://travis-ci.org/zenwalker/python-htmlutils
   :alt: Build Status


Usage
=====

tags.tag(content: str, **attrs) -> str
--------------------------------------

Render HTML tags as ``tags.h1('hello', _class='heading')``.

htmlutils.parse_attrs(attrs: str) -> dict
-----------------------------------------

Parse a string like ``class="input" type="text" required`` into ``dict``.

htmlutils.render_attrs(attrs: dict) -> str
------------------------------------------

Render ``dict`` to string like ``class="input" type="text" required``.


Running tests
=============

::

    $ python -m unittest tests/test_html.py
pyersinia 1.0.5
Herramienta para ataques de capa de enlace
License: BSD

pyersinia
=========


![Logo](https://raw.githubusercontent.com/abirtone/STB/master/stb_lib/doc/images/logo.png)

*pyersinia: Herramienta para ataques de capa de enlace*

Code | https://github.com/nottinghamprisateam/pyersinia
---- | ----------------------------------------------
Issues | https://github.com/nottinghamprisateam/pyersinia/issues/
Python version | Python 3 & 2

What's pyersinia
----------------

Framework realizado en python utilizando la libreria scapy para implementar ataques a protocolos de la capa de enlace.

What's new?
-----------

This pyersinia version, add a lot of new features and fixes, like:

Version 1.0.0
+++++++++++++

- First version released

You can read entire list in CHANGELOG file.

Installation
------------

Install pyersinia is so easy:

```
$ python -m pip install pyersinia
```

**Remember that pyersinia only runs in Python 3**.

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

You can display inline help writing:

```bash

python pyersinia.py -h
```

Advanced options
----------------

There are the advanced options:

- **-v**, **-vv**, **-vvv**: Enable verbose mode.

References
----------

* OMSTD (Open Methodology for Security Tool Developers): http://omstd.readthedocs.org
* STB (Security Tool Builder): https://github.com/abirtone/STB