semvec/pypi-packages huggingface dataset:
pyqa 0.6.1
pyqa makes it easy to write conversational scripts that generate configuration
License: MIT
Keywords: scripting,utility,configuration

pyqa -- Configuration generator
===============================

pyqa makes it easier to write terminal based tools which ask the user a
bunch of questions and then generate some configuration file based on
the answers.

Usage
-----

See /demos for some working examples.

pyqa provides single function, "ask". It expects a set of questions
given in a specific format. The following description is in YAML but you
are free to use any other markup language as long as the output matches:

::

    ---
    id: project_name # id to use at the template
    q: Could you please give the project name? # question shown to the user
    ---
    id: license
    q: Please pick a license for your project?
    choices: # if choices field is used, the user will see these as numbered choice
        - BSD
        - GPL
        - MIT
    ---
    id: use_fizzler
    q: Are you sure you want to use fizzler?
    type: boolean -- this will accept either true or false answer and emits True/False

Note that keywords "Yes" and "No" seem to be converted to booleans by
YAML. If you need to use those within choices, remember to use explicit
form (ie. "Yes" instead of Yes).

After the user has finished answering "ask" will return the results in a
format like this:

::

    {'project_name': 'myproject', 'license': 'BSD', 'use_fizzler': True}

This format happens to be compatible with
`pystache <https://github.com/defunkt/pystache>`_ (Python version of
`mustache <http://mustache.github.com/>`_) and no doubt with many other
template engines. Just pass that data to your favorite engine, render
and output the file somewhere. Voilá!

License
-------

pyqa is available under MIT license. See LICENSE for more details.
iterplus 0.2.5
iterplus provides functionality that extends itertools
License: MIT
Keywords: functional programming,itertools

iterplus - itertools_ extended
==============================

This library provides a set of functions that complement Python itertools. These include means to access iterable content via slicing, scan generator (easy series) and chainable wrapper (ie. a.map(...).filter(...)).

* Documentation: http://packages.python.org/iterplus/
* Source: http://github.com/bebraw/iterplus/
* Issue Tracker: http://github.com/bebraw/iterplus/issues/

Examples
--------

Scan
^^^^

    fibo = scan(0, 1, lambda a, b: a + b)

"scan" returns an iterator. Note how simple it's to define series such as Fibonacci's using it. In case an explicit rule is not provided, it infers one automatically (ie. 1,2,3,...).

Sliceable
^^^^^^^^^

    sliceable(scan(0, 1))[2:5] # returns list containing third, fourth and fifth item

"sliceable" makes it possible to slice the content of iterators.

Chainable
^^^^^^^^^

    chainable([1, 2, 3]).map(lambda x: x * 2).filter(lambda x: x > 3).val() == [4, 6]

"chainable" makes it possible to use basic functional utilities (map, filter, reduce) using a chaining syntax.

.. _itertools: http://docs.python.org/library/itertools.html

License
-------

iterplus is available under MIT license. See LICENSE for more details.



Changelog
=========

0.2.5 (2011-11-16)
------------------

* Added index and rindex
* Tidied up docs

0.2.0 (2011-11-11)
------------------

* First public release
* Added caching to sliceable

0.1.0 (2011-09-26)
------------------

* Initial release