semvec/pypi-packages huggingface dataset:
wtforms-recaptcha 0.3.2
Custom WTForms field that handles reCaptcha display and validation
License: BSD

=================
WTForms-reCaptcha
=================

Overview
--------
WTForms-reCaptcha is a convenient field for `WTForms <http://wtforms.simplecodes.com/>`_ that transparently handles
reCaptcha display and validation via corresponding widget and validator classes.

reCaptcha
---------
| To get an idea about reCaptcha see the `docs <http://code.google.com/apis/recaptcha/intro.html>`_.
| To start working with it, first get reCaptcha keys `here <https://www.google.com/recaptcha/admin/create>`_.


Installation
------------
Get the distribution::

  pip install wtforms-recaptcha

or if you want the latest::

  pip install hg+http://bitbucket.org/excieve/wtforms-recaptcha#egg=wtforms-recaptcha

or get hg clone of the source code::

  hg clone http://bitbucket.org/excieve/wtforms-recaptcha
  cd wtforms-recaptcha
  python setup.py install


Usage
-----
It is mostly the usual WTForms field that needs some extra data and parameters.
Here's a simple example::

  from wtforms.form import Form
  from wtfrecaptcha.fields import RecaptchaField


  class CaptchaForm(Form):
      captcha = RecaptchaField(public_key=RECAPTCHA_PUB_KEY, private_key=RECAPTCHA_PRIV_KEY, secure=True)


  form = CaptchaForm(request.POST, captcha={'ip_address': request.META['REMOTE_ADDR']})
  if form.validate():
      print "Captcha response is correct"
  else:
      print form.errors['captcha']


Some description of field's parameters:

:public_key:
    Public key generated by reCaptcha service
:private_key:
    Private key generated by reCaptcha service
:secure:
    True if it should be served via HTTPS, False otherwise. Default: *False*.
:http_proxy:
    URL of HTTP proxy for API calls

When form with RecaptchaField is instantiated with bound fields, it must include
*captcha* keyword parameter with dict that has 'ip_address' element.


Other details
-------------
Accessing field as a string will get the widget code with URLs that depend on
*secure* parameter passed to the field.

HTTP errors and errors that are indepentent of user input are logged.
Others are handled as validation errors.


License
-------
| WTForms-reCaptcha is released under BSD license.
| Copyright (c) 2010-2012 Artem Gluvchynsky <excieve@gmail.com> and contributors.

See LICENSE for full licensing information.
Inirama 0.8.0
Inirama -- Simplest parser for INI files. Interpolation supported.
License: BSD
Keywords: config parser ini

|logo| Inirama
##############

.. _description:

Inirama -- Simplest parser for INI-style files.

Features:

    - One single module;
    - No requirements;
    - Tiny interface;
    - Supports variable interpolation;

.. _badges:

.. image:: https://travis-ci.org/klen/inirama.png?branch=develop
    :target: http://travis-ci.org/klen/inirama
    :alt: Build Status

.. image:: https://coveralls.io/repos/klen/inirama/badge.png?branch=develop
    :target: https://coveralls.io/r/klen/inirama
    :alt: Coverals

.. image:: https://pypip.in/v/Inirama/badge.png
    :target: https://crate.io/packages/Inirama
    :alt: Version

.. image:: https://pypip.in/d/Inirama/badge.png
    :target: https://crate.io/packages/Inirama
    :alt: Downloads

.. image:: https://dl.dropboxusercontent.com/u/487440/reformal/donate.png
    :target: https://www.gittip.com/klen/
    :alt: Donate


.. _contents:

Docs are available at https://inirama.readthedocs.org/. Pull requests with
documentation enhancements and/or fixes are awesome and most welcome.


.. contents:: Contents:


.. _requirements:

Requirements
=============

- python (2.6, 2.7, 3.2, 3.3)


.. _installation:

Installation
=============

**Inirama** could be installed using pip: ::

    pip install inirama


.. _quickstart:

Quickstart
==========

::

    from inirama import Namespace

    ns = Namespace()
    ns.read('config.ini')

    print ns['section']['key']

    ns['other']['new'] = 'value'
    ns.write('new_config.ini')


.. _interpolation:

Interpolation
-------------
::

    from inirama import InterpolationNamespace

    ns = InterpolationNamespace()
    ns.parse("""
        [main]
        test = value
        foo = bar {test}
        more_deep = wow {foo}
    """)
    print ns['main']['more_deep']  # wow bar value


.. _bagtracker:

Bug tracker
===========

If you have any suggestions, bug reports or
annoyances please report them to the issue tracker
at https://github.com/klen/inirama/issues


.. _contributing:

Contributing
============

Development of inirama happens at github: https://github.com/klen/inirama


.. _contributors:

Contributors
=============

* klen_ (Kirill Klenov)


.. _license:

License
=======

Licensed under a `BSD license`_.


.. _links:

.. _BSD license: http://www.linfo.org/bsdlicense.html
.. _klen: http://klen.github.com/
.. |logo| image:: https://raw.github.com/klen/inirama/develop/docs/_static/logo.png
                  :width: 100
bettertimeit 1.1.2
A Better Timeit
License: BSD
Keywords: bettertimeit

=============
Better Timeit
=============

.. image:: https://badge.fury.io/py/bettertimeit.png
    :target: http://badge.fury.io/py/bettertimeit

.. image:: https://travis-ci.org/simonpercivall/bettertimeit.png?branch=master
    :target: https://travis-ci.org/simonpercivall/bettertimeit

.. image:: https://pypip.in/d/bettertimeit/badge.png
    :target: https://crate.io/packages/bettertimeit?version=latest


A Better Timeit

* Free software: BSD license
* Documentation: http://bettertimeit.rtfd.org.

Example
-------

``bettertimeit`` will time any function which is named "timeit\_<something>".
The "timeit\_" functions may be contained within a function or in a module.
Each "timeit\_" function will be timed separately::

    from bettertimeit import bettertimeit

    def container():
        a = 5

        def timeit_calculation():
            a**10

        b = 3

        def timeit_calculation_2():
            a**b

    bettertimeit(container)


To run timings from setup.py, you could add this to :func:`setup`::

    setup(
        ...
        timeit_suite="timings",
    )


And then run::

    % python setup.py timeit


This would run timeit functions in ``timings.py``.

Features
--------

* Lets you write your timing test code as regular code instead of strings,
  but without the overhead of a function call.
* Put your timing test code in a module or inside a function
* Uses the same method as timeit.main to calculate the optimal number of
  passes to run.
* Adds a ``timeit_suite`` option to setup() in setup.py, and a distutils
  command ``timeit`` to run timings from setup.py.


=========
Changelog
=========

Here's the recent changes to Better Timeit.

.. changelog::
    :version: 1.1.1
    :released: 2014-05-02

    .. change::
        :tags: general

    Add a target-time option to the distutils command, to tune the target time
    for each run.

.. changelog::
    :version: 1.1
    :released: 2014-04-29

    .. change::
        :tags: general

        Add a distutils command to run timings from setup.py. Also add a
        setup() flag ``timeit_suite`` to set timeit module in setup.py.

.. changelog::
    :version: 1.0.1
    :released: 2014-04-29

    .. change::
        :tags: general

        A version that actually works: the 1.0 release didn't extract the body
        of the timeit function.

.. changelog::
    :version: 1.0
    :released: 2014-04-28

    .. change::
        :tags: general

        First version.