Skip to content

A simple Python lib for working with deep data structures

License

Notifications You must be signed in to change notification settings

boris-chervenkov/datastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datastructure

Thin wrapper around dict or list that provides easy access to nested datastructures that may contain lists, dicts and simple types.

Values can be accessed via a path notation (default: dot-separated).

Supports getting, modifying, appending and removing values from the nested data structure, iteration over a path pattern and in (contains) operation for paths.

Supports either "silent mode", where trying to access non-existing data just returns None, or can throw KeyError of any of the items along the path does not exist.

Does NOT create a copy of the data structure, which can be very handy for processing existing complex data (e.g. parsed JSON value).

See documentation

About

A simple Python lib for working with deep data structures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published