semvec/pypi-packages huggingface dataset:
undecorate 0.2.1
Let your decorations be undone
License: MIT

undecorate
==========

Let your decorations be undone

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

.. code-block:: sh

    $ pip install undecorate

Usage
-----

.. code-block:: pycon

    >>> from undecorate import unwrap, unwrappable
    >>>
    >>> @unwrappable
    ... def pack(func):
    ...     def wrapper(args, kwargs):
    ...        return func(*args, **kwargs)
    ...     return wrapper
    ...
    >>> @pack
    ... def myfunc(a, b=None, c=None):
    ...     return (a, b, c)
    ...
    >>> myfunc('a', b='b')
    Traceback (most recent call last):
        ...
    TypeError: wrapper() got an unexpected keyword argument 'b'
    >>>
    >>> unwrap(myfunc)('a', b='b')
    ('a', 'b', None)


0.2.1 (2014-09-29)
++++++++++++++++++

* Fix bug in ``create_class_wrapper`` and ``class_wraps`` that caused them to
  always throw an error when used.
* Remove ``CLASS_WRAPPER_DELETES``, and corresponding ``deleted`` arguments on
  ``create_class_wrapper`` and ``class_wraps``.


0.2 (2014-09-29)
++++++++++++++++

* Add ``create_class_wrapper`` and ``class_wraps``.
* Internally use ``__wrapped__`` to match Python 3.2+.
* Add backport versions of functools ``wraps`` and ``update_wrapper``.
  They wrap the stdlib versions, and ensure that ``__wrapped__`` is set.


0.1 (2014-09-04)
++++++++++++++++

* Initial Release
* ``unwrappable`` and ``unwrap`` functions
repoze.who.cas 0.5
a CAS plugin for repoze.who
License: MIT
Keywords: CAS authentication repoze.who

repoze.who.cas
==============

Introduction
------------

repoze.who.cas is a repoze.who plugin that allows the use of a `CAS 
<http://www.jasig.org/cas)` server as an authentication provider. It allows you
to specify a CAS server against which your users can authenticate. Once they 
authenticate against the CAS server, they'll be redirected to your application 
in such a way that their identity will be injected into the WSGI environment 
with a key that you can specify.

Example who.ini
---------------

  [plugin:cas]
  use = repoze.who.plugins.cas:make_plugin
  cookie_name = someapp-cas
  secret = ahardtoguessthing
  cas_login_url = https://cas.example.com/login
  cas_validate_url = https://cas.example.com/validate

  [general]
  request_classifier = repoze.who.classifiers:default_request_classifier
  challenge_decider = repoze.who.classifiers:default_challenge_decider
  remote_user_key = REMOTE_USER

  [identifiers]
  plugins = cas

  [authenticators]
  plugins = cas

  [challengers]
  plugins = cas
Zookeeper-Watcher 0.1.4
Watches a designated node in Zookeeper for data or member changes and trigger a function when an event is detected.
License: MIT
Keywords: zookeeper watch watcher kazoo nodes children

# Zookeeper-Watcher

Watches a designated node in Zookeeper for data or member changes. 
Implements a Watch class which can be used as a decorator to trigger functions when changes are detected on a specified node in Zookeeper.

[![Latest Version](https://pypip.in/version/Zookeeper-Watcher/badge.png)]
(https://pypi.python.org/pypi/Zookeeper-Watcher/)
[![Downloads](https://pypip.in/download/Zookeeper-Watcher/badge.png)]
(https://pypi.python.org/pypi/Zookeeper-Watcher/)
[![Download format](https://pypip.in/format/Zookeeper-Watcher/badge.png)]
(https://pypi.python.org/pypi/Zookeeper-Watcher/)
[![License](https://pypip.in/license/Zookeeper-Watcher/badge.png)]
(https://pypi.python.org/pypi/Zookeeper-Watcher/)


## Supported Platforms

* OSX and Linux.
* Python 2.7

Probably works with other versions as well.

## Quickstart

Install:
```bash
pip install Zookeeper-Watcher
```

Example:
```python
from zookeeper_watcher import ZookeeperWatcher

#instantiate the watcher object by passing it the Zookeeper server address and a optional logger.
watcher = ZookeperWatcher('zookeeper_host:port') #can receive also a custom logger by adding logger=some_logger.

#start the async connection with the Zookeeper server
watcher.start()

#decorate a function that will be triggered once at runtime and on every detected event
@watcher.Watch('/zookeeper/path/to/the/node/that/we/want/to/watch')
def test_function(children, data):
  """decorated function that receives a list of children nodes of the given path 
  and a list of data objects (dictionaries) that are read from each child node"""
  print "list of children nodes", children
  print "list of data objects", data

```

## Changelog

#### 0.1.4

* Fixed some logging bugs.

#### 0.1.3

* Added custom logging.

#### 0.1.2

* Fixed some logging errors.

#### 0.1.1

* Fixed some distribution packaging bug.

#### 0.1.0

* Initial release.
Arugula 0.0.1-alpha
a sample Python 3 project for a command-line script
License: MIT
Keywords: sample python3 project

Arugula
        =======
        
        This is a sample Python 3 project from which to start new projects.
        It demonstrates an initial project structure.
        
        Typical contents for this file would include an overview of the project, basic
        usage examples, etc. Generally, including the project changelog in here is not
        a good idea, although a simple "What's New" section for the most recent version
        may be appropriate.
        
        TODO: generate this file from README.md.
PlayS3 0.2
Python library for working directly on Amazon S3
License: MIT
Keywords: PlayS3,PyS3,Amazon S3,Wrapper for S3

A very simple and light weight wrapper that takes out all the pain of working with Amazon S3 buckets.The simple API provides a better way to access,modify,delete the buckets.

Only secret_id,secret_password of Amazon S3 account are required.Just create an object of S3Account() and sit cool.

PlayS3 supports following features:

1. creating a bucket

2. deleting a bucket

3. deleting contents of bucket

4. modifying the keys in a bucket

5. fetching all buckets

6. fetching all keys from a bucket

7. Large file uploading with chunked data
  
   and many more.

It sits upon boto framework and provides the full access to boto API.

For installing using pip just use this command:

sudo pip install PlayS3
django-stripe-payments 2.0.0
a payments Django app for Stripe
License: MIT

======================
django-stripe-payments
======================

a payments Django app for Stripe


.. image:: https://img.shields.io/travis/pinax/django-stripe-payments.svg
    :target: https://travis-ci.org/pinax/django-stripe-payments

.. image:: https://img.shields.io/coveralls/pinax/django-stripe-payments.svg
    :target: https://coveralls.io/r/pinax/django-stripe-payments

.. image:: https://img.shields.io/pypi/dm/django-stripe-payments.svg
    :target:  https://pypi.python.org/pypi/django-stripe-payments/

.. image:: https://img.shields.io/pypi/v/django-stripe-payments.svg
    :target:  https://pypi.python.org/pypi/django-stripe-payments/

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target:  https://pypi.python.org/pypi/django-stripe-payments/


This app allows you to process one off charges as well as signup users for
recurring subscriptions managed by Stripe.

Documentation can be found at http://django-stripe-payments.readthedocs.org

Some suggested integration steps:
  1. Overload the templates provided to use your inheritance tree (for bases etc) and block names.
  2. Point your stripe account at the webhook address in the payments urls.
  3. Add the static media snippet from here (or else nothing will actually talk to stripe):
    * http://django-stripe-payments.readthedocs.org/en/latest/installation.html#configuration-modifications-to-settings-py
  4. Set up SSL if you have not already.
  5. Define some plans (see docs).
  6. Run syncdb to generate the necessary tables, then init_plans and init_customers.

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

To run test suite::

    $ pip install detox
    $ detox
django-admin-timestamps 1.2
Custom list display of model timestamps for Django Admin.
License: MIT

=======================
Django Admin Timestamps
=======================

Show human readable created/modified dates and/or times in the
``django.contrib.admin`` changelist for models that track the
moment of creation and updates.

Usage
=====

First you will need to have a model that tracks the moment of creation and
modification. The barebones example for that is::

    from django.db import models

    class TimestampedItem(models.Model):
        created = models.DateTimeField('created', auto_now_add=True)
        modified = models.DateTimeField('modified', auto_now=True)

Or, if you are using `django-extensions
<http://packages.python.org/django-extensions/>`_::

    from django_extensions.db.models import TimeStampedModel

    class TimestampedItem(TimeStampedModel):
        pass

Now it's time to register this model with Django's admin site.

Create a admin class, just like you'd usually do, but make it extend
``TimestampedAdminMixin`` as well as any other base admin class you use::

    from django.contrib import admin
    from models import TimestampedItem
    from admintimestamps import TimestampedAdminMixin

    class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):
        pass

    admin.site.register(TimestampedItem, TimestampedAdmin)

That's it!

.. image:: https://bitbucket.org/jaap3/django-admin-timestamps/raw/tip/img/screenshot.png

Configuration
=============

If the names of you timestamp fields aren't ``created`` and ``modified``
but for example ``created_at`` and ``modified_at`` you'll need to do a tiny
bit of configuration in the model admin class::

    class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):
        timestamp_fields = ('created_at', 'modified_at')

You can also use the timestamp_fields tuple to only show one field by
only specifying the field you want to show::

    class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):
        timestamp_fields = ('modified',)

Changelog for django-admin-timestamps
=====================================

1.2 (2014-09-29)
----------------

- Dropped support for Python < 2.6
- Dropped support for Django < 1.4
- Verified support for up to Django 1.7
- Added support for Python 3


1.1.1 (2013-07-01)
------------------

- Handle None values properly


1.1 (2012-02-21)
----------------

- Just displaying one timestamp field is now possible.
- Proper handling of date fields.


1.0.1 (2011-10-11)
------------------

- Fixed setup.py to include the compat subpackage


1.0.0 (2011-10-07)
------------------

- Initial release