semvec/pypi-packages huggingface dataset:
django-gevent-deploy 1.0.1
Django manage.py hook for starting gevent's WSGI server
License: MIT
Keywords: django

Gevent Deploy
=============

This library adds a simple hook into Django's ``manage.py`` to be able to start gevent's WSGI
server to serve the Django project.

Install
-------

Install the library into your Python installation via ``pip``::

    pip install django-gevent-deploy

Then add the library into ``INSTALLED_APPS`` within Django's project ``settings.py``::

    INSTALLED_APPS = (
        ...
        'django_gevent_deploy',
    )

Configuration
-------------

You may add two settings to your ``settings.py``:

``GEVENT_ADDR_PORT``
~~~~~~~~~~~~~~~~~~~~

Specifies what address and what port should be used for the gevent's WSGI server.
Must be a **string** and of the ``[[addr:]port]`` format::

    '8000'            # default
    'localhost:8000'
    '127.0.0.1:8000'

``GEVENT_POOL_SIZE``
~~~~~~~~~~~~~~~~~~~~

Specifies the number of greenlets gevent can spawn for the server. Can be ``None``
or an integer value::

    None              # default
    1
    100

Usage
-----

To start the gevent's WSGI server, simply call ``rungevent`` in ``manage.py``. The command
accepts optional argumets which are the same as described in `Configuration`_ section.
If the arguments are not provided, then the configuration from the ``settings.py`` is used,
or default if ``settings.py`` is not configured::

    $ python manage.py rungevent [[addr]:port] [pool_size]

Credits
-------

* Miroslav Shubernetskiy

License
-------

This library is packaged with MIT license::

    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:

    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
    LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
    OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Changelog
---------

1.0.1
~~~~~

* Added gevent monkey patching

1.0
~~~

* Initial version
twosheds 0.1.2
extensible Python shell
License: MIT
Keywords: twosheds,shell

twosheds
========

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

.. image:: https://pypip.in/d/twosheds/badge.png
        :target: https://crate.io/packages/twosheds/

twosheds is a command language interpreter (shell), written in Python.

Most existing shells are written in C which makes extension difficult. Python
is comparatively easy to learn, read, and write, and is fast enough to operate
as a day-to-day shell::

    >>> import twosheds
    >>> shell = twosheds.Shell()
    >>> shell.interact()
    $ ls
    AUTHORS.rst       build             requirements.txt  test_twosheds.py
    LICENSE           dist              scripts           tests
    Makefile          docs              setup.cfg         twosheds
    README.rst        env               setup.py          twosheds.egg-info

Features
--------

- Highly extensible
- History
- Completion

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

To install twosheds, simply:

.. code-block:: bash

    $ pip install twosheds

You may need to `sudo` if you intend to install system wide.


Documentation
-------------

Documentation is available at http://twosheds.readthedocs.org/en/latest/.


Contribute
----------

#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
#. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off it).
#. Write a test which shows that the bug was fixed or that the feature works as expected.
#. Send a pull request and bug the maintainer until its get merged and published. :) Make sure to add yourself to AUTHORS_.

.. _`the repository`: http://github.com/Ceasar/twosheds
.. _`AUTHORS`: https://github.com/Ceasar/twosheds/blob/master/AUTHORS.rst
matplotlib-subsets 1.0
Functions for plotting area-proportional hierarchical subset diagrams in matplotlib.
License: MIT
Keywords: matplotlib plotting charts venn-diagrams subset tree hierarchy

==============================================================
Hierarchical subset diagram plotting for Python/Matplotlib
==============================================================

Routines for plotting area-weighted diagrams of subsets and subsets of subsets.
This consistutes an extension to Venn diagrams in some sense (hierarchy), while a limitation 
in another (subsets only).

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

The simplest way to install the package is via ``easy_install`` or ``pip``::

    $ easy_install matplotlib-subsets

Dependencies
------------

- ``numpy``, ``scipy``, ``matplotlib``.

Usage
-----
The package provides the function: ``treesets_rectangles``.

It takes a tree, where each node is defined as ((number-of-items-contained, 
label, dictionary-of-plotting-attributes), [child nodes...]).

For example::

	tree = ((120, '120', None), [
		((50, 'A50', None), []),
		((50, 'B50', None), [])
		])
	
	treesets_rectangles(tree)
	plt.savefig('example_tree.pdf', bbox_inches='tight')
	plt.close()

Here, the node '120' is of size 120. It has two subsets, 'A50' and 'B50', each of size 50.
No additional plotting attributes are given (e.g. the color of rectangles is chosen automatically).

See also
--------

* Report issues and submit fixes at Github: https://github.com/JohannesBuchner/matplotlib-subsets
django-assetfiles 0.8.0
Drop-in replacement for staticfiles which handles asset processing.
License: MIT

Django Assetfiles
=================

Django Assetfiles is a drop-in replacement for staticfiles which handles asset processing.


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

1. Install package from PyPi:

    ``` sh
    $ pip install django-assetfiles
    ```

2. Replace `'django.contrib.staticfiles'` in `INSTALLED_APPS` with `'assetfiles'`:

    ``` python
    INSTALLED_APPS = (
        # ...
        # 'django.contrib.staticfiles',
        'assetfiles',
    )
    ```

3. That's it! Assetfiles will default to your [Staticfiles settings](https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/).


Usage
-----

1. Add an asset file that should be processed:

     ``` scss
     // static/css/main.scss
     $color: red;

     body {
       color: $color;
     }
     ```

2. Add a link to the processed CSS file in your template (you can use standard Staticfiles conventions):

    ``` html+django
    {% load staticfiles %}
    <link href="{% static 'css/main.css' %}" rel="stylesheet">
    ```

    Assetfiles will automatically serve up the processed version of `main.scss` at the static url of `/static/css/main.css`.

4. To serve assets in development, either use `runserver` as normal or add the following to your `urls.py`:

    ``` python
    from assetfiles.urls import assetfiles_urlpatterns

    # ... the rest of your URLconf goes here ...

    urlpatterns += assetfiles_urlpatterns()
    ```

5. For deployment, run `collectstatic` as usual and Assetfiles will process and copy over the assets:

    ``` sh
    $ python manage.py collectstatic
    $ cat public/css/main.css
    body {
      color: red; }
    ```


Copyright
---------

Copyright (c) 2012 [LocalMed, Inc.](http://localmed.com). See LICENSE for details.