{"id":37071797,"url":"https://github.com/nandoabreu/python-dict2dot","last_synced_at":"2026-01-14T08:25:56.253Z","repository":{"id":41862790,"uuid":"286856964","full_name":"nandoabreu/python-dict2dot","owner":"nandoabreu","description":"Python Dictionary to Dot notation (class) package","archived":false,"fork":false,"pushed_at":"2024-10-23T07:02:00.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T16:18:04.778Z","etag":null,"topics":["dict","dictionary","dot-notation","dot-notation-dict","dotnot","dotnotation","notation","pip","pypi","pypi-package","pypi-source","python","python-dict","python-dictionary"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/dict2dot/","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/nandoabreu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-11T22:04:28.000Z","updated_at":"2022-07-13T08:50:01.000Z","dependencies_parsed_at":"2022-07-13T12:50:26.982Z","dependency_job_id":null,"html_url":"https://github.com/nandoabreu/python-dict2dot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nandoabreu/python-dict2dot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandoabreu%2Fpython-dict2dot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandoabreu%2Fpython-dict2dot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandoabreu%2Fpython-dict2dot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandoabreu%2Fpython-dict2dot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nandoabreu","download_url":"https://codeload.github.com/nandoabreu/python-dict2dot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandoabreu%2Fpython-dict2dot/sbom","scorecard":{"id":673854,"data":{"date":"2025-08-11","repo":{"name":"github.com/nandoabreu/python-dict2dot","commit":"26dc761987e22571653d18c5619990d8565fe754"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T20:57:49.448Z","repository_id":41862790,"created_at":"2025-08-21T20:57:49.448Z","updated_at":"2025-08-21T20:57:49.448Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:16:59.381Z","status":"ssl_error","status_checked_at":"2026-01-14T08:13:45.490Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dict","dictionary","dot-notation","dot-notation-dict","dotnot","dotnotation","notation","pip","pypi","pypi-package","pypi-source","python","python-dict","python-dictionary"],"created_at":"2026-01-14T08:25:55.373Z","updated_at":"2026-01-14T08:25:56.242Z","avatar_url":"https://github.com/nandoabreu.png","language":"Python","readme":"# python-dict2dot\n\nPython Dictionary to **Dot notation**\n\nPublished on\n[GitHub](https://github.com/nandoabreu/python-dict2dot) and \n[PyPi](https://pypi.org/project/python-dict2dot/).  \n\nThis implementation admits dot notation to access dictionaries **and nested dictionaries**. \n\nIn order to expose a dot notated dict, its immediate parent will be changed to replace \nthe dictionary to a new object, meaning that only the mutable types **dict** and **list** \nwill be changed, once a dictionary child is found.\n\n\n## Installation\nTo install through pip, run:\n```shell\npip install dict2dot\n```\n\n\n## Basic usage\n\n```python\nfrom dict2dot import Dict2Dot\n\nmy_dict = {'dogs': {'breeds': ['Golden Retriever', 'Labrador Retriever']}}\nmy_d2d = Dict2Dot(my_dict)\n\nprint(my_d2d.dogs.breeds)\n# ['Golden Retriever', 'Labrador Retriever']\n\nprint(my_d2d.dogs.breeds == my_dict['dogs']['breeds'])\n# True\n\nprint(my_d2d.dogs.breeds[-1] == my_dict['dogs']['breeds'][-1])\n# True\n```\n\n\n## Update and advanced operations\n\n```python\nfrom dict2dot import Dict2Dot\n\nfamous_dict = {'id': 6, 'names': {'first': 'Janelle', 'last': 'Monáe'}, 'pronouns': ['They', 'Them']}\nfamous_d2d = Dict2Dot(famous_dict)\nfamous_d2d.names.update({'full': 'Janelle Monáe Robinson'})\nfamous_d2d.pronouns.append('Their')\nprint(famous_d2d)\n# {'id': 6, 'names': {'first': 'Janelle', 'last': 'Monáe', 'full': 'Janelle Monáe Robinson'}, 'pronouns': ['They', 'Them', 'Their']}\n\nfamily_dict = {'elder': [{'child_1': [], 'child_2': [{'grandchild_2_1': []}, {'grandchild_2_2': []}]}]}\nfamily = Dict2Dot(family_dict)\nfamily.elder[0].child_1.extend(['has two dogs', 'has a bird'])\nfamily.elder[0].child_2[-1].grandchild_2_2.append('has 1 dog')\nprint(family)\n# {'elder': [{'child_1': ['has two dogs', 'has a bird'], 'child_2': [{'grandchild_2_1': []}, {'grandchild_2_2': ['has 1 dog']}]}]}\n\nprint(type(family))\n# \u003cclass 'dict2dot.Dict2Dot'\u003e\n\nprint(type(family.dict()))\n# \u003cclass 'dict'\u003e\n\nother_dot2dict = Dict2Dot()\nother_dot2dict.a_new_key = 'a new value'\nprint(other_dot2dict.a_new_key)\n# a new value\n```\n\n\n## Autocomplete\n\nUsing Python Shell/REPL, autocomplete should respond. Assign a variable to a Dict2Dot dictionary \ninstantiation and use the \u003ctab\u003e to autocomplete the dictionary keys after the dot:\n```python\nfrom dict2dot import Dict2Dot\nd2d = Dict2Dot({'dogs': {'breeds': ['Golden Retriever']}})\nd2d.dogs.bre  # hit the \u003ctab\u003e key to complete \"breeds\"\n```\n\nNote: autocomplete will not respond inside a list.\n```python\nfrom dict2dot import Dict2Dot\nd2d = Dict2Dot({'name': {'first': 'First name'}, 'parents': [{'mom': \"Mom's name\"}, {'dad': \"Dad's name\"}]})\nd2d.name.fir  # hitting \u003ctab\u003e autocompletes \"first\"\nd2d.name.paren  # hitting \u003ctab\u003e autocompletes \"parents\"\nd2d.parents[0].mom  # no autocomplete available\n```\n\n\n## Documentation\n\nPlease try from command line:\n```shell\npython -c \"import dict2dot; print(dict2dot.__doc__)\"\n```\n\nDocumentation can also be found in [docs](docs).\n\n\n## ToDo\n\n- [ ] Read child dictionaries in parent iterators other than list or dict\n- [ ] Remove keys and nested keys previously set\n- [ ] Add recursing limitation option\n- [ ] Add a tree exhibition of the keys\n- [ ] Try to enable autocomplete for nested D2D in lists: `d2d.parents[0].mom`\n- [ ] Update documentation (in the \"docs\" dir)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnandoabreu%2Fpython-dict2dot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnandoabreu%2Fpython-dict2dot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnandoabreu%2Fpython-dict2dot/lists"}