{"id":15009933,"url":"https://github.com/iapetus-11/classy-json","last_synced_at":"2025-10-03T19:30:27.278Z","repository":{"id":62562502,"uuid":"288839302","full_name":"Iapetus-11/Classy-JSON","owner":"Iapetus-11","description":"Adds dot-access for Python dictionaries, similar to how JS objects work","archived":true,"fork":false,"pushed_at":"2022-07-23T21:08:56.000Z","size":1761,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T10:14:22.060Z","etag":null,"topics":["dict","dictionary","dictionary-tools","dot-access","javascript","json","python","python-3","python-dict","python-dictionaries","python-library","python-module","python3"],"latest_commit_sha":null,"homepage":"","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/Iapetus-11.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-19T21:15:18.000Z","updated_at":"2024-02-21T03:12:41.000Z","dependencies_parsed_at":"2022-11-03T15:17:48.092Z","dependency_job_id":null,"html_url":"https://github.com/Iapetus-11/Classy-JSON","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iapetus-11%2FClassy-JSON","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iapetus-11%2FClassy-JSON/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iapetus-11%2FClassy-JSON/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iapetus-11%2FClassy-JSON/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Iapetus-11","download_url":"https://codeload.github.com/Iapetus-11/Classy-JSON/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235173190,"owners_count":18947453,"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":["dict","dictionary","dictionary-tools","dot-access","javascript","json","python","python-3","python-dict","python-dictionaries","python-library","python-module","python3"],"created_at":"2024-09-24T19:29:10.752Z","updated_at":"2025-10-03T19:30:22.018Z","avatar_url":"https://github.com/Iapetus-11.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Classy-JSON ![Code Quality](https://www.codefactor.io/repository/github/iapetus-11/classy-json/badge) ![PYPI Version](https://img.shields.io/pypi/v/classy-json.svg?color=0FAE6E) ![PYPI Downloads](https://img.shields.io/pypi/dw/classy-json?color=0FAE6E)\n*`dict.key` (Dot access) for Python dictionaries*\n\n## How do I use Classy-JSON?\n* Classy-JSON can be used nearly identically to the regular built-in json module! [json module docs](https://docs.python.org/3/library/json.html)\n* The only differences are that you can now access dictionaries via `dict.key` as well as `dict['key']`, and that the `.copy()` method is now a deep copy.\n* What seperates Classy-JSON and its custom data structures from other alternatives? Classy-JSON is both better in its speed and package size, other similiar packages have unecessary code and just aren't as fast as Classy-JSON\n\n## Example Usage\n```py\nimport classyjson as cj\n\n# load data from a json file\nwith open('tests/test_large.json', 'r') as f:\n  data = cj.load(f)\n\n# turn a regular dictionary into a ClassyDict\nmy_dict = {'a': 'b'}\nmy_classy_dict = cj.classify(my_dict)\nprint(my_classy_dict.a)\n\n# or\n\nmy_classy_dict = cj.ClassyDict(my_dict)\nprint(my_classy_dict.a)\n\n# make a new ClassyDict\nnew_classy_dict = cj.ClassyDict()\nnew_classy_dict.a = 'b'\n```\n\n## Setup / Install\n### Using pip:\n```\npython3 -m pip install classy-json\n```\n### Manually:\n* Clone the repository\n```\ngit clone https://github.com/Iapetus-11/Classy-JSON.git\n```\n* cd into the directory\n```\ncd Classy-JSON\n```\n* Run setup.py\n```\npython3 setup.py build install\n```\n\n## Contribution\n* Contributions are welcome! Just submit a pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiapetus-11%2Fclassy-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiapetus-11%2Fclassy-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiapetus-11%2Fclassy-json/lists"}