semvec/pypi-packages huggingface dataset:
tgext.chameleon_genshi 0.0.1
Chameleon Genshi rendering engine for TurboGears2
License: MIT
Keywords: turbogears2.extension

tgext.chameleon_genshi
======================

Chameleon Genshi rendering engine support for TG2.3.2+

Usage
------------

Insire your ``config/app_cfg.py`` register the ChameleonGenshi renderer::

    from tgext.chameleon_genshi import ChameleonGenshiRenderer
    
    base_config.register_rendering_engine(ChameleonGenshiRenderer)
    base_config.renderers.append('chameleon_genshi')
tgext.wdb 0.0.1
WDB - Web Debugger support for TurboGears2
License: MIT
Keywords: turbogears2.extension

tgext.wdb
======================

WDB - Web Debugger support for TurboGears, replaces the backlash
debugger with WDB.

Usage
------------

Inside your ``config/app_cfg.py`` enable the WDB debugger::

    from tgext.wdb import enable_wdb
    
    enable_wdb(base_config)

Make sure you started the WDB server before using it::

    $ wdb.server.py
gengzip 0.2.3
A python module for gzipping data using generators
License: MIT
Keywords: gzip,generator

#######
gengzip
#######

.. image:: https://travis-ci.org/leetreveil/gengzip.png
        :target: https://travis-ci.org/leetreveil/gengzip

Python generators are cool. The compress() function returns a python generator with the gzipped data.


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

Install via `pip`_:

.. code:: bash

    $ pip install gengzip


Usage
-----

.. code:: python

    input = ['123', '45']
    # compress() returns a python generator object
    # compresslevel defaults to 6
    for compressed in gengzip.compress(input, compresslevel=6):
        print compressed


gzip data and write to file:

.. code:: python

    input = ['123', '45']
    with open('output.gz', 'w') as f:
        for compressed in gengzip.compress(input):
            f.write(compressed)

Licence
-----------------
MIT

.. _pip: http://www.pip-installer.org/
evil 0.5
Expression eviluator
License: MIT
Keywords: expression,eval,evaluate,math,set,graph

Evil
====

Evil is a utility library for evaluating single expressions composed of patterns and operators, allowing user expressivity beyond what command-line arguments can express.

Development
-----------

To run the unit tests for the project you can use Python's built-in unittest library with the following command (though `Nosetests`_ or highly recommended)::

  $ python setup.py test
  .............
  -----------------------------------------------------------------
  14 tests run in 0.0 seconds (14 tests passed)

.. _Nosetests: http://nose.readthedocs.org/en/latest/
s3upload 0.2.4
A python module for uploading data to s3 using the s3 multipart API
License: MIT
Keywords: s3,multipart,upload,amazon

##########
pys3upload
##########

.. image:: https://travis-ci.org/leetreveil/pys3upload.png
        :target: https://travis-ci.org/leetreveil/pys3upload

A python module for uploading data to s3 using the multipart API.

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

Install via `pip`_:

.. code:: bash

    $ pip install s3upload


CLI
---

Use the s3upload CLI to upload from stdin or from data provided on the command line.

.. code:: bash

    Usage: s3upload [options]

    Options:
      -h, --help            show this help message and exit
      -b BUCKET, --bucket=BUCKET
                            the s3 bucket to upload to
      -k KEY, --key=KEY     the name of the key to create in the bucket
      -K AWS_KEY, --aws_key=AWS_KEY
                            aws access key
      -s AWS_SECRET, --aws_secret=AWS_SECRET
                            aws secret key
      -d DATA, --data=DATA  the data to upload to s3 -- if left blank will be read
                            from STDIN
      -t THREADS, --threads=THREADS
                            number of threads to use while uploading in parallel

Module
------

You can also interface with the module from python:

.. code:: python

    >>> from s3upload import upload

.. code:: python

    def upload(bucket, aws_access_key, aws_secret_key,
           iterable, key, progress_cb=None,
           threads=5, replace=False, secure=True):
    ''' Upload data to s3 using the s3 multipart upload API.

        Args:
            bucket: name of s3 bucket
            aws_access_key: aws access key
            aws_secret_key: aws secret key
            iterable: The data to upload. Each 'part' in the list
            will be uploaded in parallel. Each part must be at
            least 5242880 bytes (5mb).
            key: the name of the key to create in the s3 bucket
            progress_cb: will be called with (part_no, uploaded, total)
            each time a progress update is available.
            threads: the number of threads to use while uploading.
            replace: will replace the key in s3 if set to true. (Default is false)
            secure: use ssl when talking to s3. (Default is true)
    '''

Licence
-------
MIT

.. _pip: http://www.pip-installer.org/