{"id":19556334,"url":"https://github.com/fiverr/pyresolve","last_synced_at":"2025-04-26T22:33:02.969Z","repository":{"id":46278975,"uuid":"274509490","full_name":"fiverr/pyresolve","owner":"fiverr","description":"Resolve dot notation from dictionary","archived":false,"fork":false,"pushed_at":"2024-07-10T10:37:24.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-14T07:02:59.600Z","etag":null,"topics":["dictionary","dot-notation","python","resolve"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pyresolve/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fiverr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-23T21:09:54.000Z","updated_at":"2024-07-10T10:37:27.000Z","dependencies_parsed_at":"2024-11-11T04:37:41.135Z","dependency_job_id":null,"html_url":"https://github.com/fiverr/pyresolve","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiverr%2Fpyresolve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiverr%2Fpyresolve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiverr%2Fpyresolve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fiverr%2Fpyresolve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fiverr","download_url":"https://codeload.github.com/fiverr/pyresolve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251063667,"owners_count":21530837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dictionary","dot-notation","python","resolve"],"created_at":"2024-11-11T04:37:36.688Z","updated_at":"2025-04-26T22:32:58.320Z","avatar_url":"https://github.com/fiverr.png","language":"Python","readme":"# pyresolve [![](https://img.shields.io/pypi/v/pyresolve?style=flat-square)](https://pypi.org/project/pyresolve/) [![](https://img.shields.io/static/v1?label=github\u0026message=pyresolve\u0026labelColor=black\u0026color=3572a5\u0026style=flat-square\u0026logo=github)](https://github.com/fiverr/pyresolve) [![](https://circleci.com/gh/fiverr/pyresolve.svg?style=svg)](https://circleci.com/gh/fiverr/pyresolve)\n\nResolve dot notation from dictionary\n\n```py\nfrom pyresolve import resolve\n\nmy_dictionary = {\"out\":{\"middle\":{\"in\":\"Balue\"}}}\n\n# Before\nmy_dictionary.get('out', {}).get('middle', {}).get('in')\n\n# After\nresolve(my_dictionary, \"out.middle.in\") # \"Balue\"\n```\n\nDoes not break for missing properties\n```py\nresolve(my_dictionary, \"outer.missing.something\") # None\n```\n\nCan specify a different default value\n```py\nresolve(my_dictionary, \"outer.missing.something\", []) # []\n```\n\nSupports index in list\n```py\ndictionary_with_list = {\"users\": [{\"name\":\"Joe\"}, {\"name\":\"Jane\"}]}\nresolve(my_dictionary, \"users.1.name\") # Jane\n```\n\nSupports list notation\n```py\ndictionary_with_list = {\"users\": [{\"name\":\"Joe\"}, {\"name\":\"Jane\"}]}\nresolve(my_dictionary, \"users[1].name\") # Jane\n```\n\nInstall\n\n```bash\npip install pyresolve\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiverr%2Fpyresolve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiverr%2Fpyresolve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiverr%2Fpyresolve/lists"}