{"id":18714878,"url":"https://github.com/arenekosreal/deserializer","last_synced_at":"2025-04-12T13:30:32.475Z","repository":{"id":256550136,"uuid":"853157154","full_name":"arenekosreal/deserializer","owner":"arenekosreal","description":"Deserialize class from dict from json/yaml/toml. ","archived":false,"fork":false,"pushed_at":"2024-09-15T12:16:50.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-16T13:36:03.992Z","etag":null,"topics":["deserialize","python","python-dictionary","python3","type-hint"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arenekosreal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-09-06T05:20:47.000Z","updated_at":"2024-09-15T12:16:52.000Z","dependencies_parsed_at":"2024-09-11T16:39:15.052Z","dependency_job_id":"6170d265-51b0-4939-8221-7f4afa407f78","html_url":"https://github.com/arenekosreal/deserializer","commit_stats":null,"previous_names":["arenekosreal/deserializer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenekosreal%2Fdeserializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenekosreal%2Fdeserializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenekosreal%2Fdeserializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arenekosreal%2Fdeserializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arenekosreal","download_url":"https://codeload.github.com/arenekosreal/deserializer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223518546,"owners_count":17158689,"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":["deserialize","python","python-dictionary","python3","type-hint"],"created_at":"2024-11-07T13:06:38.357Z","updated_at":"2024-11-07T13:06:38.990Z","avatar_url":"https://github.com/arenekosreal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deserializer\n\nDeserialize class from dict from json/yaml/toml.\n\n## Why create this\n\nTo have a strong-typed accessing experience like other language.\n\n## How to use\n\n1. Build the wheel:\n   See [How to build](#how-to-build) for more info.\n\n2. Import in your project:\n   Install the wheel or set it as dependency in your project's package manager.\n\n3. Use the library:\n   ```python\n   from deserializer import deserialize\n\n   instance = deserialize(Class, json)\n   ```\n\n## How to build\n\n1. Prepare pdm\n   See [here](https://pdm-project.org/en/latest/#installation) for more info\n\n2. Build\n   Run `pdm install` to create virtual environment for you.\n   Run `pdm build` to build wheel.\n\n## Notes:\n\n1. Please make sure your class is type-hinted well.\n   For example, `Optional[str]` or `Union[str, None]` has been deprecated by python and you need to use `str | None` instead.\n   We do not support these deprecated styles either.\n\n2. Please make sure your class has a non-argument constructor.\n   Most of the time this is not a problem, but you should ensure this yourself if you use a customized constructor.\n   This means `instance = MyClass()` should be a valid way to initialize your class.\n   For example:\n   ```python\n   class MyClass:\n       pass\n   ```\n   This is fine, while\n   ```python\n   class MyClass:\n       def __init__(self, argument: object):\n           pass\n   ```\n   This is not acceptable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farenekosreal%2Fdeserializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farenekosreal%2Fdeserializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farenekosreal%2Fdeserializer/lists"}