grocery
grocery is a toolkit which is collected on my daily work.
Requirements
You will need the following prerequisites in order to use grocery:
- Python 3.6+
Installation
To install grocery:
.. code-block:: bash
$ pip install grocery
Introduction
list_ext which an enhancement of built-in list objects. It can filter the dict-list. e.g.: You have the following dict-list, and want to filter the items which are 'a' > 3 and 'b' >= 4:
dict of list:
dict_of_list = [
{'a': 1, 'b': 2},
{'a': 4, 'b': 3},
{'a': 3, 'b': 8},
{'a': 6, 'b': 10},
{'a': 2, 'b': 9}
]
Usage:
from grocery.builtins_ext import list_ext
l = list_ext(dict_of_list)
for item in l.filter_dict(a__gt=3, b__ge=4):
print(item)
# output: {'a': 6, 'b': 10}
Other introduction is coming
Metadata
Release files for grocery 1.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| grocery-1.4.6-py3-none-any.whl | Python 3 | none | any | Details for grocery-1.4.6-py3-none-any.whl |
Release files / grocery-1.4.6-py3-none-any.whl
| Download URL | grocery-1.4.6-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04480465543b6571f348cd4664c65809acfe123d27ea14eea3e026a2f4bd47e1
|
|
BLAKE2b-256 checksum How to use checksums |
5b8680ad07d3034a645d0f8a5b2161e4811aa6d367a4b96d058aadd9f1e02c2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for grocery 1.4.6
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.