| Name: | python-bunch |
|---|---|
| Version: | 1.0.1 |
| Release: | 4.el7 |
| Architecture: | noarch |
| Group: | Development/Languages |
| Size: | 35857 |
| License: | MIT |
| RPM: | python-bunch-1.0.1-4.el7.noarch.rpm |
| Source RPM: | python-bunch-1.0.1-4.el7.src.rpm |
| Build Date: | Wed Oct 25 2017 |
| Build Host: | x86-ol7-builder-01.us.oracle.com |
| Vendor: | Oracle America |
| URL: | http://github.com/dsc/bunch |
| Summary: | Python dictionary with attribute-style access |
| Description: | python-bunch provides a python class which can perform as a dict whose keys are
also accessible as attributes, similar to JavaScript objects. For instance::
>>> import bunch
>>> people = bunch.Bunch({'alice': 'here', 'bob': 'there'})
>>> print people['alice'], people.alice
here here
The piece of python-bunch that sets it apart from similar modules found inside
other projects is the bunchify() function which recursively converts from
a dict to a Bunch::
>>> multi_level = {'array': ['scalar', {'mapping': 'to show recursion'} ]}
>>> bunch.bunchify(multi_level)
Bunch(array=['scalar', Bunch(mapping='to show recursion')]) |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
- New upstream release that adds pyyaml and json serialization
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
- Rebuild for python-2.7
- Initial Fedora Build