Skip to main content
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']
x.foo
x['foo'] = 17
x.foo = 17
x = x.copy(bar=17)
```


Metadata

Release files for py-redux 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for py-redux 0.2.2
File Interpreter ABI Platform Actions
py_redux-0.2.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for py_redux-0.2.2-py2.py3-none-any.whl

Release files / py_redux-0.2.2-py2.py3-none-any.whl

Download URL py_redux-0.2.2-py2.py3-none-any.whl
Size 7.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a6855e8737cf97857fa74a1f39f0a77fc2dee0adb2a8495e517cb2e520231dd3
BLAKE2b-256 checksum
How to use checksums
c7629f41513b413f4941ff8cbd7cc101c24995b4f609eabefb25fb4e2b407436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for py-redux 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page