{"id":13770622,"url":"https://github.com/caxiam/model-api","last_synced_at":"2025-05-11T03:32:50.328Z","repository":{"id":151119460,"uuid":"54451088","full_name":"caxiam/model-api","owner":"caxiam","description":"For modeling remote APIs in an ORM fashion. ","archived":false,"fork":false,"pushed_at":"2016-08-08T18:31:19.000Z","size":44,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-17T06:40:25.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caxiam.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-22T06:31:26.000Z","updated_at":"2024-01-11T20:47:24.000Z","dependencies_parsed_at":"2024-01-06T21:46:55.897Z","dependency_job_id":"ed311403-4d9c-4c80-8bfa-2eb63f24a0ab","html_url":"https://github.com/caxiam/model-api","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/caxiam%2Fmodel-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caxiam%2Fmodel-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caxiam%2Fmodel-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caxiam%2Fmodel-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caxiam","download_url":"https://codeload.github.com/caxiam/model-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253514352,"owners_count":21920327,"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":[],"created_at":"2024-08-03T17:00:39.937Z","updated_at":"2025-05-11T03:32:50.060Z","avatar_url":"https://github.com/caxiam.png","language":"Python","readme":"REST ORM\n========\n.. image:: https://readthedocs.org/projects/model-api/badge/?version=latest\n    :target: http://model-api.readthedocs.org/en/latest/?badge=latest\n    :alt: Documentation Status\n\nREST ORM is a library for interacting with structured data sources.\n\n.. code-block:: python\n\n    from bogus import http # http client of your choice\n    from rest_orm import fields, models\n\n\n    class GoogleModel(models.AdaptedModel):\n        id = fields.AdaptedInteger('[path][to][id]')\n        first_item = fields.AdaptedString('[items][0]')\n\n        def make_request(self, id):\n            body = http.client.get('google.com/some/endpoint/{}'.format(id)).content\n            return body # {'path': {'to': {'id': id}}, 'items': ['some value!']}\n\n\n    model = GoogleModel().connect(15)\n    assert model.id == 15\n    assert model.first_item == 'some value!'\n\n\n=============\nDocumentation\n=============\n\nFull documentation is available at: http://model-api.readthedocs.org/en/latest/\n\n============\nInstallation\n============\n\n.. code-block:: bash\n\n    $ pip install git+git://github.com/caxiam/model-api.git\n\n\n============\nRequirements\n============\nTested on Python 2.7.\n\nREST ORM does not require any external dependencies.\n\n=======\nLicense\n=======\nMIT\n","funding_links":[],"categories":["Model, Schema"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaxiam%2Fmodel-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaxiam%2Fmodel-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaxiam%2Fmodel-api/lists"}