{"id":46681644,"url":"https://github.com/dschenck/easytree","last_synced_at":"2026-03-09T00:12:32.406Z","repository":{"id":49578809,"uuid":"284243698","full_name":"dschenck/easytree","owner":"dschenck","description":"A recursive dot-styled defaultdict to read and write deeply-nested trees","archived":false,"fork":false,"pushed_at":"2026-02-05T21:58:54.000Z","size":171,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-06T07:44:49.072Z","etag":null,"topics":["defaultdict","json","python"],"latest_commit_sha":null,"homepage":"https://easytree.readthedocs.io","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/dschenck.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-01T11:06:28.000Z","updated_at":"2026-02-05T21:58:53.000Z","dependencies_parsed_at":"2022-09-21T17:13:43.045Z","dependency_job_id":"185d716b-6898-4d73-a4bf-1b2bc9a5c220","html_url":"https://github.com/dschenck/easytree","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dschenck/easytree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschenck%2Feasytree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschenck%2Feasytree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschenck%2Feasytree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschenck%2Feasytree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dschenck","download_url":"https://codeload.github.com/dschenck/easytree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dschenck%2Feasytree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30278153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["defaultdict","json","python"],"created_at":"2026-03-09T00:12:31.423Z","updated_at":"2026-03-09T00:12:32.376Z","avatar_url":"https://github.com/dschenck.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easytree\n[![pythons](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue)](https://pypi.org/project/easytree)\n[![tests and coverage](https://github.com/dschenck/easytree/actions/workflows/testing.yml/badge.svg?branch=main)](https://github.com/dschenck/easytree/actions/workflows/testing.yml)\n[![PyPI version](https://badge.fury.io/py/easytree.svg)](https://badge.fury.io/py/easytree) \n[![Documentation Status](https://readthedocs.org/projects/easytree/badge/?version=latest)](https://easytree.readthedocs.io/en/latest/?badge=latest) \n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Coverage](https://codecov.io/gh/dschenck/easytree/branch/master/graph/badge.svg?token=CPJXDL17CB )](https://codecov.io/gh/dschenck/easytree)\n\nA recursive dot-styled defaultdict to read and write deeply-nested trees\n\n## Documentation\nDocumentation is hosted on [read the docs](https://easytree.readthedocs.io/en/latest/)\n\n## Installation\n```\npip install easytree\n```\n\n## Quickstart \n```python\n\u003e\u003e\u003e import easytree\n\n\u003e\u003e\u003e tree = easytree.dict()\n\u003e\u003e\u003e tree.foo.bar.baz = \"Hello world!\"\n\u003e\u003e\u003e tree \n{\n    \"foo\": {\n        \"bar\": {\n            \"baz\": \"Hello world!\"\n        }\n    }\n}\n```\n\nCreating trees that combine both list and dict nodes is easy\n```python\n\u003e\u003e\u003e friends = easytree.list()\n\u003e\u003e\u003e friends.append({\"firstname\":\"Alice\"})\n\u003e\u003e\u003e friends[0].address.country = \"Netherlands\"\n\u003e\u003e\u003e friends[0][\"interests\"].append(\"science\")\n\u003e\u003e\u003e friends\n[\n    {\n        \"firstname\": \"Alice\",\n        \"address\": {\n            \"country\": \"Netherlands\"\n        },\n        \"interests\": [\n            \"science\"\n        ]\n    }\n]\n```\n\nWriting deeply-nested trees with list nodes is easy with a context-manager:\n```python\n\u003e\u003e\u003e profile = easytree.dict()\n\u003e\u003e\u003e with profile.friends.append({\"firstname\":\"Flora\"}) as friend: \n...     friend.birthday = \"25/02\"\n...     friend.address.country = \"France\"\n\u003e\u003e\u003e profile\n{\n    \"friends\": [\n        {\n            \"firstname\": \"Flora\",\n            \"birthday\": \"25/02\",\n            \"address\": {\n                \"country\": \"France\"\n            }\n        }\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdschenck%2Feasytree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdschenck%2Feasytree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdschenck%2Feasytree/lists"}