Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

python implementation of the redux library

Project Description
Python port of redux library

Simple example app:

from redux import create_store, actiontypes, frozenbunch

action_types = actiontypes('myapp', 'increment decrement')

def app_reducer(state, action):
if state is None:
return frozenbunch(counter=0)
if action.type == action_types.increment:
return state.copy(counter=state.counter + 1)
elif action.type == action_types.decrement:
return state.copy(counter=state.counter - 1)
return state

store = create_store(app_reducer)

The frozenbunch type is an immutable version of the Bunch pattern, whose members can be accessed by item or by attribute. For example:

x = frozenbunch(foo=12, bar=7)
x['foo'] = 17 = 17
x = x.copy(bar=17)

Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
py_redux-0.2.2-py2.py3-none-any.whl (7.6 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Mar 7, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting