Metadata-Version: 2.1
Name: pyaccessors
Version: 0.0.1
Summary: Access lists of dictionaries with their keys' values
Home-page: https://github.com/hypostulate/pyaccessors
Author: David Born
Author-email: laggs0@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# Pyaccessors: The key to lists

```python
list_of_dicts = [
    {"a": "A1", "b": 1},
    {"a": "A1", "b": 2},
    {"a": "A2", "b": 3},
]

accessor = access(list_of_dict, by="a", group=True)
print(accessor)
# {
#     "A1": [{"a": "A1", "b": 1}, {"a": "A1", "b": 2}],
#     "A2": [{"a": "A2", "b": 3},],
# }

```



