semvec/pypi-packages huggingface dataset:
poolbase 0.1.4
A connection pool for anything
License: MIT

pypool
=====

a simple connection pool

expand pypool
~~~~~~~~~~~~~
must be implemented pypool.connection.Connection all method
a hbase extension like this:https://github.com/duanhongyi/hbase

Sample usage
~~~~~~~~~~~~

::

    from hbase import Connection
    pool = ConnectionPool(size,connection_klass=Connection,**{'host':'127.0.0.1','port':9090,})
    with pool.connection() as conn:
        //do something
        pass

Download
~~~~~~~~

* https://github.com/duanhongyi/pypool
twyg 0.1.0
Generative tree visualiser for Python
License: MIT
Keywords: tree graph visualisation generative graphics layout nodebox cairo pdf png postscript svg

**twyg** lets you visualise arbitrary tree structures in a pretty way. The
appearance of the tree (layout, color, node, connection shapes etc.) is
fully controlled via configuration files in a generative way. This means that
almost all visual properties of the output can be controlled by expressions
that depend on the characteristics of the tree (e.g. the color or shape of a
node can be a function of its hierarchical position in the tree). This allows
for crafting very flexible configurations that can be applied to trees of
arbitrary size and complexity.


Features
--------

- Compatible with Python 2.5, 2.6 and 2.7
- Supports the **Cairo** and **NodeBox1** rendering backends
- 16 visually fine-tuned built-in configurations
- 32 attractive looking colorschemes
- Simple JSON files as input
- PNG, PDF, SVG and PostScript output using the Cairo backend
- Fully customisable node and connection shapes and coloring algorithms
- High-quality font rendering via Cairo
- Gradient and drop shadow support, even in PDF and PostScript files
- Custom human-readable configuration language that allows the visual
  properties of the tree to be defined as expressions of arbitraty complexity
- Ability to cascade configurations and configuration sections
- Full `CSS3 color notation <http://www.w3.org/TR/css3-color/#colorunits>`_
  and `SVG 1.0 color keyword name
  <http://www.w3.org/TR/css3-color/#svg-color>`_ support
- Extensive reference documentation


Installation & Usage
--------------------

For detailed instructions, please refer to the `user documentation
<http://www.johnnovak.net/twyg/docs/>`_.

License
-------

© Copyright 2011-2014, `John Novak <http://www.johnnovak.net/>`_.
This project is released under the MIT license.
django-restviews 1.0-rc1
REST-based Django CrUD-Views
License: MIT

django-restviews
REST-based Django CrUD-Views

Introduction

Django is a great framework for efficient, rapid, maintainable and scalable web applications. With the addition of REST frameworks like the Django REST Framework, an API-based approach to web development is also possible.

This Django application fills one specific gap: If you have an API-based approach to your development, you don't want to build a separate web UI, that is based on the Django view/template/model-framework and doesn't adhere to your own API-standards.

You want a UI, that specifically uses the API for data retrieval and manipulation. Having the API and not the web UI as a first class citizen is a primary goal of an API-based approach.

The problem is, that you loose a whole bunch of development speed if you have to leave Django's wonderful generic class based views behind and recreate the same functionality the AJAX/API-way.

Django-Restviews helps you by offering a complete CrUD-framework (Create, Update, Delete) and a data grid that all use the API for data retrieval and manipulation and in that way offers an alternative for Django's own class based generic views.

For more information, please visit https://github.com/dploeger/django-restviews
tgext.scss 0.4.3
SCSS for TurboGears2, fast middleware to use SCSS for all your CSS
License: MIT
Keywords: turbogears2.extension SCSS WSGI

About tgext.scss
-------------------------

`SCSS <http://sass-lang.com/>`_ is a cool and useful extension to CSS,
but it always required some effort to be used and even
specific production environment configurations for some systems.

tgext.scss has born to make life easier for `TurboGears2  <http://www.turbogears.org>`_ developers,
it will rely on an internal minimal SCSS compiler
(based on `Zeta-Library <https://github.com/klen/zeta-library>`_ SCSS parser)
to serve all the files in your public directory
that end with *.scss* as **text/css** converting them and minifying them.

Installing
-------------------------------

tgext.scss can be installed both from pypi or from bitbucket::

    easy_install tgext.scss

should just work for most of the users

Enabling tgext.scss
----------------------------------

If tgext.pluggable is available enabling tgext.scss is just a matter of appending to your `config/app_cfg.py`::

    from tgext.pluggable import plug
    plug(base_config, 'tgext.scss')

Otherwise manually using tgext.scss is really simple, you edit your `config/middeware.py` and just after
the `#Wrap your base TurboGears 2 application with custom middleware here` comment wrap
`app` with `SCSSMiddleware`::

    from tgext.scss import SCSSMiddleware

    make_base_app = base_config.setup_tg_wsgi_app(load_environment)

    def make_app(global_conf, full_stack=True, **app_conf):
        app = make_base_app(global_conf, full_stack=True, **app_conf)

        # Wrap your base TurboGears 2 application with custom middleware here
        app = SCSSMiddleware(app)
    
        return app


Now you just have to put your .scss file inside *public/css* and they will be served as CSS.

@Import Support
-----------------------------------

tgext.scss provides minimal support for @import command. The required syntax is in the form::

    @import url('/css/file.scss');

The specified path is relative to your project public files directory.
*Nested imports are not implemented right now, this means that imported files cannot import another scss*

How much it will slow me down?
-----------------------------------

Actually as tgext.scss uses aggressive caching it won't you slow down at all,
indeed it might even be able to serve you CSS files even faster.

Here is the report of a benchmark (absolutely not reliable as every other benchmark)
made on paster serving the same CSS file or SCSS::

    $ /usr/sbin/ab -n 1000 http://localhost:8080/css/style.css
    Requests per second:    961.26 [#/sec] (mean)

    $ /usr/sbin/ab -n 1000 http://localhost:8080/css/style.scss
    Requests per second:    1200.34 [#/sec] (mean)

In these case SCSS is even faster than directly serving the same css file as
it is served from memory (due to caching performed by tgext.scss)
and is also minified resulting in less bandwith usage.

Off course this means that tgext.scss will require a bit more memory than serving
your css files alone, but as css files are usually small this amount is trascurable.