{"id":19462516,"url":"https://github.com/kulgan/justobjects","last_synced_at":"2025-07-10T06:35:17.823Z","repository":{"id":45612312,"uuid":"408644397","full_name":"kulgan/justobjects","owner":"kulgan","description":"It's all just objects","archived":false,"fork":false,"pushed_at":"2021-12-05T07:33:37.000Z","size":216,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T04:48:05.432Z","etag":null,"topics":["data","json-schema","justobjects","objects","parsing","python","python3","validation"],"latest_commit_sha":null,"homepage":"https://justobjects.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kulgan.png","metadata":{"files":{"readme":"README.rst","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":"2021-09-21T00:44:53.000Z","updated_at":"2021-12-05T07:30:10.000Z","dependencies_parsed_at":"2022-09-24T19:20:38.634Z","dependency_job_id":null,"html_url":"https://github.com/kulgan/justobjects","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulgan%2Fjustobjects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulgan%2Fjustobjects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulgan%2Fjustobjects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulgan%2Fjustobjects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kulgan","download_url":"https://codeload.github.com/kulgan/justobjects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240672819,"owners_count":19838929,"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":["data","json-schema","justobjects","objects","parsing","python","python3","validation"],"created_at":"2024-11-10T18:02:06.498Z","updated_at":"2025-02-25T12:47:32.900Z","avatar_url":"https://github.com/kulgan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"justobjects\n===========\n|Pypi version| |Python versions| |ci| |Documentation Status|\n\nSimple python data objects management and validation based on standard jsonschema_ concepts. Project\nrequires python3.6+ and allows users define how data objects should look and relate with other data objects.\nSupports python3.6+ typing annotations and customs attributes for more complex relationships.\n\nObjectives\n----------\n1. Define and demarcate data objects with just python annotations\n2. Define constraints in simple jsonschema_ compliant manner\n3. Validate data objects using standard jsonschema_ validators\n4. Express complete jsonschema_ as simple data objects (its just objects)\n\nSimilar Projects\n----------------\n* pydantic_\n\nInstall\n-------\ninstall from pip\n\n.. code-block:: bash\n\n    $ pip install justobjects\n\ninstall from source\n\n.. code-block:: bash\n\n    $ pip install git+https://github.com/kulgan/justobjects@\u003cversion\u003e#egg=justobjects\n\nUsage Example\n-------------\n.. code-block:: python\n\n    import json\n    import justobjects as jo\n\n\n    @jo.data(typed=True)\n    class Model:\n        a: int\n        b: float\n        c: str\n\n\n    # display schema\n    print(json.dumps(jo.show_schema(Model), indent=2))\n\n\n    try:\n        # fails validation\n        jo.validate(Model(a=3.1415, b=2.72, c=\"123\"))\n    except jo.ValidationException as err:\n        print(err.errors)\n\n\nContributing\n------------\nThe fastest way to get feedback on contributions/bugs is create a issues_\n\nRunning Tests\n-------------\nThe project makes use of tox to run tests and other common tasks\n\n.. code-block:: bash\n\n   $ tox -e py36\n\n\n\n\n.. _pydantic: https://pydantic-docs.helpmanual.io\n.. _jsonschema: https://json-schema.org\n.. _issues: https://github.com/kulgan/justobjects/issues\n\n.. |PyPI version| image:: https://img.shields.io/pypi/v/justobjects.svg\n   :target: https://pypi.python.org/pypi/justobjects\n   :alt: PyPi version\n\n.. |ci| image:: https://github.com/kulgan/justobjects/workflows/justobjects/badge.svg\n   :target: https://github.com/kulgan/justobjects/actions\n   :alt: CI status\n\n.. |Python versions| image:: https://img.shields.io/pypi/pyversions/justobjects.svg\n   :target: https://pypi.org/project/justobjects\n   :alt: PyPi versions\n\n.. |Documentation status| image:: https://readthedocs.org/projects/justobjects/badge/?version=latest\n   :target: https://justobjects.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulgan%2Fjustobjects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkulgan%2Fjustobjects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulgan%2Fjustobjects/lists"}