Filter dictionaries based on a list of field names.
Project description
dictfilter
installation
pip install dictfilter
usage
some_data = {
'name': 'Galactica',
'class': 'Battlestar',
'model': 'Jupiter',
}
result = query(some_data, ['name', 'class'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dictfilter-1.0.0.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file dictfilter-1.0.0.tar.gz
.
File metadata
- Download URL: dictfilter-1.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4dca1e5b3bb3c55fe462cba7d463c0efba9f967bdf431d4590a56b0505fc4dd |
|
MD5 | 438f538f0a16e26e23d1d2b3d2385ea1 |
|
BLAKE2b-256 | eee7c4ce13497146a68a15dd31b787d162f1c052eef8d5f89405efacb6f0985f |
Provenance
File details
Details for the file dictfilter-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: dictfilter-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55efdda54b1a7a3e8628bb8a1e561dec73df209c5cf765a31a2efc1eea30d24f |
|
MD5 | 1afaba2d31ea00be136e3e6a360d404d |
|
BLAKE2b-256 | 76e2c9c1246edec9aeeb2dfd017e49513d2da0dff7e65f16592030c8dcf6cde0 |