Skip to main content

A super simple string searching library for complex list/dict structures

Project description


PyPI Build Status

fynd makes 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.


pip install fynd


from fynd import Fynd as fynd

    '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


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fynd, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size fynd-1.3.0-py3-none-any.whl (2.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fynd-1.3.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page