semvec/pypi-packages huggingface dataset:
wsgi-basic-auth-isl 1.0.4
Simple wsgi middleware to provide basic http auth
License: MIT

===============
WSGI Basic Auth
===============

Really simple wsgi middleware to provide basic http auth. It is intented to
work with environment variables. This makes it simple to use in a docker
context.

Status
------

.. image:: https://readthedocs.org/projects/wsgi-basic-auth/badge/?version=latest
    :target: https://readthedocs.org/projects/wsgi-basic-auth/

.. image:: https://travis-ci.org/mvantellingen/wsgi-basic-auth.svg?branch=master
    :target: https://travis-ci.org/mvantellingen/wsgi-basic-auth

.. image:: https://ci.appveyor.com/api/projects/status/im609ng9h29vt89r?svg=true
    :target: https://ci.appveyor.com/project/mvantellingen/wsgi-basic-auth

.. image:: http://codecov.io/github/mvantellingen/wsgi-basic-auth/coverage.svg?branch=master
    :target: http://codecov.io/github/mvantellingen/wsgi-basic-auth?branch=master

.. image:: https://img.shields.io/pypi/v/wsgi-basic-auth.svg
    :target: https://pypi.python.org/pypi/wsgi-basic-auth/



Getting started
===============

Using this module is really simple.  In Django for example edit the wsgi.py
file and add the following to the end of the file.

.. code-block:: python

  from wsgi_basic_auth import BasicAuth
  application = BasicAuth(application)

Now run docker with the env variable WSGI_AUTH_CREDENTIALS=foo:bar and you have
to authenticate with username foo and password bar. Multiple credentials are
separated with a | (pipe) character.

To exclude specific paths for healthchecks (e.g. the Amazon ELB healthchecks)
specify the environment variable WSGI_AUTH_EXCLUDE_PATHS=/api/healthchecks.
Here multiple paths can be separated with the ; char.

To include only specific paths specify the environment variable
WSGI_AUTH_EXCLUDE_PATHS. Here multiple paths can be separated with the ; char.

You can use both include and exclude paths together for example:
WSGI_AUTH_INCLUDE_PATHS=/foo
WSGI_AUTH_EXCLUDE_PATHS=/foo/bar
This will force Basic Auth on all paths under /foo except /foo/bar


Installation
============

You can install the latest version using pip::

    pip install wsgi-basic-auth
django-bitfield-manager 0.1.0
Automatically manage bitfields in django models
License: MIT
Keywords: django-bitfield-manager

=============================
bitfield_manager
=============================

.. image:: https://badge.fury.io/py/django-bitfield-manager.svg
    :target: https://badge.fury.io/py/django-bitfield-manager

.. image:: https://travis-ci.org/goodmase/django-bitfield-manager.svg?branch=master
    :target: https://travis-ci.org/goodmase/django-bitfield-manager

.. image:: https://codecov.io/gh/goodmase/django-bitfield-manager/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/goodmase/django-bitfield-manager

Your project description goes here

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

The full documentation is at https://django-bitfield-manager.readthedocs.io.

Quickstart
----------

Install bitfield_manager::

    pip install django-bitfield-manager

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'bitfield_manager.apps.BitfieldManagerConfig',
        ...
    )


Features
--------

* Allows for automatic bitfield management for Django Models

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

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install tox
    (myenv) $ tox

Credits
-------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

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




History
-------

0.1.0 (2017-01-18)
++++++++++++++++++

* First release on PyPI.
invisible-ink 0.1.1
Embedded messages in text for Python.
License: MIT

Invisible Ink
=============

This library includes a set of tools for using zero-width unicode characters to
embed human-invisible messages in text.

Watermarking
------------
You can use invisible ink to uniquely identify a piece of text by embedding a
UUID:

::

    >>> from invisible_ink import encode_watermark, decode_watermark
    >>> encoded_text, uuid = encode_watermark(u'asdf')
    >>> print encoded_text
    asdf
    >>> uuid
    UUID('3ca37a37-9c5a-4b9e-a9c0-a50c47c48dba')
    >>> decode_watermark(encoded_text)
    (u'asdf', UUID('3ca37a37-9c5a-4b9e-a9c0-a50c47c48dba'))

encode_watermark *(text, watermark_uuid=None, prepend=False)*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Encodes the given text with a watermark string generated from the given uuid.
Optionally appends or prepends the watermark string.

Parameters:

* ``text``: Unicode string to which the watermark will be added

* ``watermark_uuid``: ``uuid.UUID`` instance to use as the watermark.
  (``uuid.uuid4()`` will be used to generate one if not provided.)

* ``prepend``: Indicates whether the watermark should be prended to ``text``
  (defaults to ``False``). If ``False``, the watermark will be appended.

Returns:

A 2-tuple: ``(encoded_text, watermark_uuid)``

decode_watermark *(encoded_text)*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Decodes the given text, separating out the original text and the watermark uuid.

Paramters:

* ``encoded_text``: Unicode string which potentially includes a watermark

Returns:

A 2-tuple: ``(text, watermark_uuid)``. If no watermark is detected,
``text`` is the original text and ``watermark_uuid is None``.

Installation
------------
::

    $ pip install invisible-ink