{"id":19584912,"url":"https://github.com/krypton-byte/dict2object","last_synced_at":"2026-05-06T15:36:48.631Z","repository":{"id":62568104,"uuid":"385229526","full_name":"krypton-byte/dict2object","owner":"krypton-byte","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-18T11:06:57.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T05:06:53.447Z","etag":null,"topics":["dictionary","javascript","json","object","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krypton-byte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-07-12T11:49:51.000Z","updated_at":"2022-03-05T16:16:42.000Z","dependencies_parsed_at":"2024-04-18T12:27:34.770Z","dependency_job_id":"f99c78c7-84e8-411a-83f1-ec112e3b44b7","html_url":"https://github.com/krypton-byte/dict2object","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.25,"last_synced_commit":"713db26d15d4de63ceb17539559ac1298beed6f2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypton-byte%2Fdict2object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypton-byte%2Fdict2object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypton-byte%2Fdict2object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypton-byte%2Fdict2object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krypton-byte","download_url":"https://codeload.github.com/krypton-byte/dict2object/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240858536,"owners_count":19868997,"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","javascript","json","object","python"],"created_at":"2024-11-11T07:51:34.141Z","updated_at":"2026-05-06T15:36:43.592Z","avatar_url":"https://github.com/krypton-byte.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Install\n```bash\n$ pip install git+https://github.com/krypton-byte/dict2object\n```\n### Convert Dict Datatype to Javascript Object Like\n```python\n\u003e\u003e\u003e from dict2object import JSObject\n\u003e\u003e\u003e js=JSObject(indent=' '*4).fromDict({\n        'a':3,\n        '1':10,\n        'add':(lambda a, b: a.__add__(b))\n})\n\u003e\u003e\u003e js\n{\n    add: \u003cfunction \u003clambda\u003e at 0x7f9b5f4bd1b0\u003e,\n    '1': 10,\n    a: 3\n}\n\n\u003e\u003e\u003e js.add(9, 11)\n20\n\u003e\u003e\u003e js.add(js['1'], js.a)\n13\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypton-byte%2Fdict2object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrypton-byte%2Fdict2object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypton-byte%2Fdict2object/lists"}