Skip to main content

Mapping keys path to value derivation.

Project description

Usage

import pathing

root = (
    {
        0: {
            'some': [
                'data',
                'right'
            ],
            'here': True
        },
        'is': {
            False: 'too',
            'deep': {
                'for': {
                    'this': {
                        'depth': 'level'
                    }
                },
                'but': {
                    'here': 'it is just right'
                }
            }
        }
    }
)

for keys, value in pathing.derive(root, max = 4):

    print(keys, '->', value)

Installing

python3 -m pip install pathing

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 pathing, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pathing-0.1.3-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pathing-0.1.3.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page