semvec/pypi-packages huggingface dataset:
django-webapp-install-banner 0.1.0
Add web App install banner to django project
License: BSD
Keywords: django-webapp-install-banner

=============================
django-webapp-install-banner
=============================

.. image:: https://badge.fury.io/py/django-webapp-install-banner.png
    :target: https://badge.fury.io/py/django-webapp-install-banner

.. image:: https://travis-ci.org/ferranp/django-webapp-install-banner.png?branch=master
    :target: https://travis-ci.org/ferranp/django-webapp-install-banner

Add web App install banner to django project"

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

The full documentation is at https://django-webapp-install-banner.readthedocs.org.

Quickstart
----------

Install django-webapp-install-banner::

    pip install django-webapp-install-banner

Add to your django settings.py file::

    INSTALLED_APPS += ('webapp_install_banner',)
    MIDDLEWARE_CLASSES += ('webapp_install_banner.middleware.WebAppMiddleware',)

    MANIFEST = {
        "short_name": _("Project name"),
        "name": _("Project log name"),
        "icons": [
            {
                "src": "img/favicon-96x96.png",
                "sizes": "96x96",
                "type": "image/png"
            },
            {
                "src": "img/apple-touch-icon-144x144.png",
                "sizes": "144x144",
                "type": "image/png"
            },
            {
                "src": "img/android-chrome-192x192.png",
                "sizes": "192x192",
                "type": "image/png"
            }
        ],
        "start_url": reverse_lazy("index"),
        "display": "standalone"
    }

Add to your urls.py::

    urlpatterns += (url(r'', include('webapp_install_banner.urls')),)

Add to your base template html header::

    {% load webapp_tags %}
    {% webapp_manifest %}


Features
--------

Adds a manifest.json file, and manages detecting if started from webapp.

TODO: Add service worker file.

Running Tests
--------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install -r requirements-test.txt
    (myenv) $ python runtests.py

Credits
---------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-pypackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2016-03-27)
++++++++++++++++++

* First release on PyPI.
succession 0.5.0
A python library providing concurrent push based lazy linked lists
License: BSD

==========
Succession
==========

|build-status| |coverage|

A python library providing a useful abstraction for recording state transitions, compressing them, and distributing to multiple listeners.



Usage
=====

Compression
-----------

The :class:`Succession` class provides a way to reduce long chains of updates
down to a reduced chain with the same effect.

For example, assume that you only care about the sum of the numbers pushed to a
succession, and that it's fine to replace all of the numbers from before you started
listening with the current total.  You can do something like the following:

>>> succession = Succession(compress=lambda items: [sum(items)])
<succession.Succession object at 0x7f5a65a10518>
>>> from_start = succession.iter()
>>> for i in [1, 2, 3, 4, 5]:
...     succession.push(i)
... succession.close()
>>> from_end = succession.iter()
>>> list(from_start)
[1, 2, 3, 4, 5])
>>> list(from_end)
[15]

Iterators forked earlier will not miss any transitions added from the time they
were created.  Compression is only applied to transitions before the fork.


Installation
============
Recommended method is to use the version from `pypi`_

.. code::

    pip install succession


Links
=====
- Source code: https://github.com/bwhmather/succession
- Issue tracker: https://github.com/bwhmather/succession/issues
- Continuous integration: https://travis-ci.org/bwhmather/succession
- PyPI: https://pypi.python.org/pypi/succession


License
=======
The project is licensed under the BSD license.  See `LICENSE`_ for details.


.. |build-status| image:: https://travis-ci.org/bwhmather/succession.png?branch=develop
    :target: https://travis-ci.org/bwhmather/succession
    :alt: Build Status
.. |coverage| image:: https://coveralls.io/repos/bwhmather/succession/badge.png?branch=develop
    :target: https://coveralls.io/r/bwhmather/succession?branch=develop
    :alt: Coverage
.. _pypi: https://pypi.python.org/pypi/sucession
.. _LICENSE: ./LICENSE