Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Generic API for dispatch to Pyro backends.

Project description

Build Status Latest Version Documentation Status

Pyro API

Generic API for modeling and inference for dispatch to different Pyro backends.


For testing API compatibility on different backends, install pytest and other test dependencies that includes backends like funsor and numpyro and run the test suite:

pip install -e .[test]
pytest -vs

This library has no dependencies and can easily be installed for testing your particular Pyro backend implementation. You can use the following pattern and test your backend on models in the pyroapi.testing module.

from pyro_api.dispatch import pyro_backend
from pyro_api.testing import MODELS

# Register backend
with pyro_backend(handlers='my_backend.handlers', 

    # Test on models in pyro_api.testing
    for model in MODELS:
        f = MODELS[model]()
        model, model_args = f['model'], f.get('model_args', ())
        ... # further testing

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyro-api, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pyro_api-0.1.1-py3-none-any.whl (8.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyro-api-0.1.1.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page