fynd
fyndmakes it super simple to search for strings in complex list/dict (JSON like) data structures. It returns a list of paths from root of the data structure to the found strings.
Installation
pip install fynd
Usage
from fynd import Fynd as fynd
COLLECTION = {
'blogposts': [
{
'title': 'Lorem Ipsum',
'text': 'Dolor Sit Amet Blah Blah Blah'
},
{
'title': 'Brown Fox',
'text': 'The quick brown fox jumps over blah'
}
]
}
# default usage:
RESULT = fynd('blah').inside(COLLECTION)
# ^ will return,
# [
# ['blogposts', 0, 'text'],
# ^ COLLECTION['blogposts'][0]['text'] == 'Dolor Sit ... Blah'
# ['blogposts', 1, 'text']
# ^ COLLECTION['blogposts'][1]['text'] == 'The quick ... blah'
# ]
# case sensitive usage:
RESULT = fynd('blah').case_sensitive().inside(COLLECTION)
# ^ will return,
# [
# ['blogposts', 1, 'text']
# ^ COLLECTION['blogposts'][1]['text'] == 'The quick ... blah'
# ]
# not found case:
RESULT = fynd('hulalala').inside(COLLECTION)
# ^ will return,
# [] an empty list
Meta
- License: MIT
- Author: Ahmed Noor
- Source: https://github.com/ahmednooor/fynd
Metadata
Release files for fynd 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fynd-1.3.0.tar.gz | 2.2 kB | Without provenance | Details for fynd-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fynd-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for fynd-1.3.0-py3-none-any.whl |
Total release size: 4.8 kB
Release files / fynd-1.3.0.tar.gz
| Download URL | fynd-1.3.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecb50cb6e6e108b7af33bb6bbda83519f3c08d3f6fb14048c63e5f8fd21d84f4
|
|
BLAKE2b-256 checksum How to use checksums |
dd473c718cc8ba2a36b386eb4f42115e8f0f8a0949fa27604eed1f041f5ace41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fynd-1.3.0-py3-none-any.whl
| Download URL | fynd-1.3.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff7183484f4464c21e6131b8573d6f19cc5d0b4a10bca36c6d7feb2e74116e17
|
|
BLAKE2b-256 checksum How to use checksums |
591b125f6d21db8576c17afd0f9851643edef6375d746f7f6645ad47649eb01f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fynd 1.3.0
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.