{"id":20676921,"url":"https://github.com/pyro-ppl/pyro-api","last_synced_at":"2025-07-04T09:31:55.191Z","repository":{"id":35208383,"uuid":"213711888","full_name":"pyro-ppl/pyro-api","owner":"pyro-ppl","description":"Generic API for dispatch to Pyro backends.","archived":false,"fork":false,"pushed_at":"2022-02-13T20:35:54.000Z","size":54,"stargazers_count":16,"open_issues_count":3,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T13:22:26.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pyro.ai/api","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/pyro-ppl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-08T17:46:55.000Z","updated_at":"2024-03-09T17:44:52.000Z","dependencies_parsed_at":"2022-08-08T06:15:26.152Z","dependency_job_id":null,"html_url":"https://github.com/pyro-ppl/pyro-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro-ppl%2Fpyro-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro-ppl%2Fpyro-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro-ppl%2Fpyro-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro-ppl%2Fpyro-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyro-ppl","download_url":"https://codeload.github.com/pyro-ppl/pyro-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249799902,"owners_count":21326994,"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-11-16T21:14:00.681Z","updated_at":"2025-04-19T20:56:59.189Z","avatar_url":"https://github.com/pyro-ppl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/pyro-ppl/pyro-api.svg?branch=master)](https://travis-ci.com/pyro-ppl/pyro-api)\n[![Latest Version](https://badge.fury.io/py/pyro-api.svg)](https://pypi.python.org/pypi/pyro-api)\n[![Documentation Status](https://readthedocs.org/projects/pyro-api/badge/?version=latest)](http://pyro-api.readthedocs.io/en/latest/?badge=master)\n\n# Pyro API\n\nGeneric API for modeling and inference for dispatch to different Pyro backends.\n\n----------------------------------------------------------------------------------------------------\n\n## Testing\n\nFor testing API compatibility on different backends, install pytest and other test dependencies that includes backends like [funsor](https://github.com/pyro-ppl/funsor) and [numpyro](https://github.com/pyro-ppl/numpyro) and run the test suite:\n\n```\npip install -e .[test]\npytest -vs\n```\n\nThis library has no dependencies and can easily be installed for testing your particular Pyro backend\nimplementation. You can use the following pattern and test your backend on models in the `pyroapi.testing`\nmodule.\n\n```python\nfrom pyro_api.dispatch import pyro_backend\nfrom pyro_api.testing import MODELS\n\n\n# Register backend\nwith pyro_backend(handlers='my_backend.handlers', \n                  distributions='my_backend.distributions',\n                  ...):\n                  \n    # Test on models in pyro_api.testing\n    for model in MODELS:\n        f = MODELS[model]()\n        model, model_args = f['model'], f.get('model_args', ())\n        model(*model_args) \n        ... # further testing\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro-ppl%2Fpyro-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyro-ppl%2Fpyro-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro-ppl%2Fpyro-api/lists"}