{"id":15579004,"url":"https://github.com/dapper91/pjrpc","last_synced_at":"2025-04-09T11:09:59.222Z","repository":{"id":35934311,"uuid":"207156821","full_name":"dapper91/pjrpc","owner":"dapper91","description":"python json-rpc client/server without boilerplate","archived":false,"fork":false,"pushed_at":"2025-02-15T17:56:17.000Z","size":1571,"stargazers_count":36,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T10:14:06.975Z","etag":null,"topics":["aio-pika","aiohttp","django","flask","httpx","json-rpc","jsonrpc","jsonrpc-client","jsonrpc-server","kombu","openapi","openrpc","pydantic","python","rapidoc","redoc","requests","rpc","starlette","swagger-ui"],"latest_commit_sha":null,"homepage":"https://pjrpc.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dapper91.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-08T18:40:04.000Z","updated_at":"2025-02-15T17:54:19.000Z","dependencies_parsed_at":"2024-04-21T21:25:42.189Z","dependency_job_id":"62b06e9a-f84e-4af8-af25-6e4c61d9e27a","html_url":"https://github.com/dapper91/pjrpc","commit_stats":{"total_commits":187,"total_committers":4,"mean_commits":46.75,"dds":0.09090909090909094,"last_synced_commit":"d75e0557d4957e925a686630dbaa00d3e169359a"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapper91%2Fpjrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapper91%2Fpjrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapper91%2Fpjrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapper91%2Fpjrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dapper91","download_url":"https://codeload.github.com/dapper91/pjrpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027408,"owners_count":21035594,"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":["aio-pika","aiohttp","django","flask","httpx","json-rpc","jsonrpc","jsonrpc-client","jsonrpc-server","kombu","openapi","openrpc","pydantic","python","rapidoc","redoc","requests","rpc","starlette","swagger-ui"],"created_at":"2024-10-02T19:13:34.980Z","updated_at":"2025-04-09T11:09:59.193Z","avatar_url":"https://github.com/dapper91.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====\npjrpc\n=====\n\n.. image:: https://static.pepy.tech/personalized-badge/pjrpc?period=month\u0026units=international_system\u0026left_color=grey\u0026right_color=orange\u0026left_text=Downloads/month\n    :target: https://pepy.tech/project/pjrpc\n    :alt: Downloads/month\n.. image:: https://github.com/dapper91/pjrpc/actions/workflows/test.yml/badge.svg?branch=master\n    :target: https://github.com/dapper91/pjrpc/actions/workflows/test.yml\n    :alt: Build status\n.. image:: https://img.shields.io/pypi/l/pjrpc.svg\n    :target: https://pypi.org/project/pjrpc\n    :alt: License\n.. image:: https://img.shields.io/pypi/pyversions/pjrpc.svg\n    :target: https://pypi.org/project/pjrpc\n    :alt: Supported Python versions\n.. image:: https://codecov.io/gh/dapper91/pjrpc/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/dapper91/pjrpc\n    :alt: Code coverage\n.. image:: https://readthedocs.org/projects/pjrpc/badge/?version=stable\u0026style=flat\n   :alt: ReadTheDocs status\n   :target: https://pjrpc.readthedocs.io/en/stable/\n\n\n``pjrpc`` is an extensible `JSON-RPC \u003chttps://www.jsonrpc.org\u003e`_ client/server library with an intuitive interface\nthat can be easily extended and integrated in your project without writing a lot of boilerplate code.\n\nFeatures:\n\n- framework agnostic\n- intuitive api\n- extendability\n- synchronous and asynchronous client backed\n- synchronous and asynchronous server support\n- popular frameworks integration\n- builtin parameter validation\n- pytest integration\n- openapi schema generation support\n- web ui support (SwaggerUI, RapiDoc, ReDoc)\n\nInstallation\n------------\n\nYou can install pjrpc with pip:\n\n.. code-block:: console\n\n    $ pip install pjrpc\n\n\nExtra requirements\n------------------\n\n- `aiohttp \u003chttps://aiohttp.readthedocs.io\u003e`_\n- `aio_pika \u003chttps://aio-pika.readthedocs.io\u003e`_\n- `flask \u003chttps://flask.palletsprojects.com\u003e`_\n- `jsonschema \u003chttps://python-jsonschema.readthedocs.io\u003e`_\n- `kombu \u003chttps://kombu.readthedocs.io/en/stable/\u003e`_\n- `pydantic \u003chttps://pydantic-docs.helpmanual.io/\u003e`_\n- `requests \u003chttps://requests.readthedocs.io\u003e`_\n- `httpx \u003chttps://www.python-httpx.org/\u003e`_\n- `openapi-ui-bundles \u003chttps://github.com/dapper91/python-openapi-ui-bundles\u003e`_\n- `starlette \u003chttps://www.starlette.io/\u003e`_\n- `django \u003chttps://www.djangoproject.com\u003e`_\n\n\nDocumentation\n-------------\n\nDocumentation is available at `Read the Docs \u003chttps://pjrpc.readthedocs.io\u003e`_.\n\n\nQuickstart\n----------\n\nClient requests\n_______________\n\n``pjrpc`` client interface is very simple and intuitive. Methods may be called by name, using proxy object\nor by sending handmade ``pjrpc.common.Request`` class object. Notification requests can be made using\n``pjrpc.client.AbstractClient.notify`` method or by sending a ``pjrpc.common.Request`` object without id.\n\n.. code-block:: python\n\n    import pjrpc\n    from pjrpc.client.backend import requests as pjrpc_client\n\n\n    client = pjrpc_client.Client('http://localhost/api/v1')\n\n    response: pjrpc.Response = client.send(pjrpc.Request('sum', params=[1, 2], id=1))\n    print(f\"1 + 2 = {response.result}\")\n\n    result = client('sum', a=1, b=2)\n    print(f\"1 + 2 = {result}\")\n\n    result = client.proxy.sum(1, 2)\n    print(f\"1 + 2 = {result}\")\n\n    client.notify('tick')\n\n\nAsynchronous client api looks pretty much the same:\n\n.. code-block:: python\n\n    import pjrpc\n    from pjrpc.client.backend import aiohttp as pjrpc_client\n\n\n    client = pjrpc_client.Client('http://localhost/api/v1')\n\n    response = await client.send(pjrpc.Request('sum', params=[1, 2], id=1))\n    print(f\"1 + 2 = {response.result}\")\n\n    result = await client('sum', a=1, b=2)\n    print(f\"1 + 2 = {result}\")\n\n    result = await client.proxy.sum(1, 2)\n    print(f\"1 + 2 = {result}\")\n\n    await client.notify('tick')\n\n\nBatch requests\n______________\n\nBatch requests also supported. You can build ``pjrpc.common.BatchRequest`` request by your hand and then send it to the\nserver. The result is a ``pjrpc.common.BatchResponse`` instance you can iterate over to get all the results or get\neach one by index:\n\n.. code-block:: python\n\n    import pjrpc\n    from pjrpc.client.backend import requests as pjrpc_client\n\n\n    client = pjrpc_client.Client('http://localhost/api/v1')\n\n    batch_response = await client.batch.send(pjrpc.BatchRequest(\n        pjrpc.Request('sum', [2, 2], id=1),\n        pjrpc.Request('sub', [2, 2], id=2),\n        pjrpc.Request('div', [2, 2], id=3),\n        pjrpc.Request('mult', [2, 2], id=4),\n    ))\n    print(f\"2 + 2 = {batch_response[0].result}\")\n    print(f\"2 - 2 = {batch_response[1].result}\")\n    print(f\"2 / 2 = {batch_response[2].result}\")\n    print(f\"2 * 2 = {batch_response[3].result}\")\n\n\nThere are also several alternative approaches which are a syntactic sugar for the first one (note that the result\nis not a ``pjrpc.common.BatchResponse`` object anymore but a tuple of \"plain\" method invocation results):\n\n- using chain call notation:\n\n.. code-block:: python\n\n    result = await client.batch('sum', 2, 2)('sub', 2, 2)('div', 2, 2)('mult', 2, 2).call()\n    print(f\"2 + 2 = {result[0]}\")\n    print(f\"2 - 2 = {result[1]}\")\n    print(f\"2 / 2 = {result[2]}\")\n    print(f\"2 * 2 = {result[3]}\")\n\n\n- using subscription operator:\n\n.. code-block:: python\n\n    result = await client.batch[\n        ('sum', 2, 2),\n        ('sub', 2, 2),\n        ('div', 2, 2),\n        ('mult', 2, 2),\n    ]\n    print(f\"2 + 2 = {result[0]}\")\n    print(f\"2 - 2 = {result[1]}\")\n    print(f\"2 / 2 = {result[2]}\")\n    print(f\"2 * 2 = {result[3]}\")\n\n\n- using proxy chain call:\n\n.. code-block:: python\n\n    result = await client.batch.proxy.sum(2, 2).sub(2, 2).div(2, 2).mult(2, 2).call()\n    print(f\"2 + 2 = {result[0]}\")\n    print(f\"2 - 2 = {result[1]}\")\n    print(f\"2 / 2 = {result[2]}\")\n    print(f\"2 * 2 = {result[3]}\")\n\n\nWhich one to use is up to you but be aware that if any of the requests returns an error the result of the other ones\nwill be lost. In such case the first approach can be used to iterate over all the responses and get the results of\nthe succeeded ones like this:\n\n.. code-block:: python\n\n    import pjrpc\n    from pjrpc.client.backend import requests as pjrpc_client\n\n\n    client = pjrpc_client.Client('http://localhost/api/v1')\n\n    batch_response = client.batch.send(pjrpc.BatchRequest(\n        pjrpc.Request('sum', [2, 2], id=1),\n        pjrpc.Request('sub', [2, 2], id=2),\n        pjrpc.Request('div', [2, 2], id=3),\n        pjrpc.Request('mult', [2, 2], id=4),\n    ))\n\n    for response in batch_response:\n        if response.is_success:\n            print(response.result)\n        else:\n            print(response.error)\n\n\nBatch notifications:\n\n.. code-block:: python\n\n    import pjrpc\n    from pjrpc.client.backend import requests as pjrpc_client\n\n\n    client = pjrpc_client.Client('http://localhost/api/v1')\n\n    client.batch.notify('tick').notify('tack').notify('tick').notify('tack').call()\n\n\n\nServer\n______\n\n``pjrpc`` supports popular backend frameworks like `aiohttp \u003chttps://aiohttp.readthedocs.io\u003e`_,\n`flask \u003chttps://flask.palletsprojects.com\u003e`_ and message brokers like `kombu \u003chttps://kombu.readthedocs.io/en/stable/\u003e`_\nand `aio_pika \u003chttps://aio-pika.readthedocs.io\u003e`_.\n\n\nRunning of aiohttp based JSON-RPC server is a very simple process. Just define methods, add them to the\nregistry and run the server:\n\n.. code-block:: python\n\n    import uuid\n\n    from aiohttp import web\n\n    import pjrpc.server\n    from pjrpc.server.integration import aiohttp\n\n    methods = pjrpc.server.MethodRegistry()\n\n\n    @methods.add(context='request')\n    async def add_user(request: web.Request, user: dict):\n        user_id = uuid.uuid4().hex\n        request.app['users'][user_id] = user\n\n        return {'id': user_id, **user}\n\n\n    jsonrpc_app = aiohttp.Application('/api/v1')\n    jsonrpc_app.dispatcher.add_methods(methods)\n    jsonrpc_app.app['users'] = {}\n\n    if __name__ == \"__main__\":\n        web.run_app(jsonrpc_app.app, host='localhost', port=8080)\n\n\nParameter validation\n____________________\n\nVery often besides dumb method parameters validation it is necessary to implement more \"deep\" validation and provide\ncomprehensive errors description to clients. Fortunately ``pjrpc`` has builtin parameter validation based on\n`pydantic \u003chttps://pydantic-docs.helpmanual.io/\u003e`_ library which uses python type annotation for validation.\nLook at the following example: all you need to annotate method parameters (or describe more complex types beforehand if\nnecessary). ``pjrpc`` will be validating method parameters and returning informative errors to clients.\n\n\n.. code-block:: python\n\n    import enum\n    import uuid\n    from typing import List\n\n    import pydantic\n    from aiohttp import web\n\n    import pjrpc.server\n    from pjrpc.server.validators import pydantic as validators\n    from pjrpc.server.integration import aiohttp\n\n    methods = pjrpc.server.MethodRegistry()\n    validator = validators.PydanticValidator()\n\n\n    class ContactType(enum.Enum):\n        PHONE = 'phone'\n        EMAIL = 'email'\n\n\n    class Contact(pydantic.BaseModel):\n        type: ContactType\n        value: str\n\n\n    class User(pydantic.BaseModel):\n        name: str\n        surname: str\n        age: int\n        contacts: List[Contact]\n\n\n    @methods.add(context='request')\n    @validator.validate\n    async def add_user(request: web.Request, user: User):\n        user_id = uuid.uuid4()\n        request.app['users'][user_id] = user\n\n        return {'id': user_id, **user.dict()}\n\n\n    class JSONEncoder(pjrpc.server.JSONEncoder):\n\n        def default(self, o):\n            if isinstance(o, uuid.UUID):\n                return o.hex\n            if isinstance(o, enum.Enum):\n                return o.value\n\n            return super().default(o)\n\n\n    jsonrpc_app = aiohttp.Application('/api/v1', json_encoder=JSONEncoder)\n    jsonrpc_app.dispatcher.add_methods(methods)\n    jsonrpc_app.app['users'] = {}\n\n    if __name__ == \"__main__\":\n        web.run_app(jsonrpc_app.app, host='localhost', port=8080)\n\n\nError handling\n______________\n\n``pjrpc`` implements all the errors listed in `protocol specification \u003chttps://www.jsonrpc.org/specification#error_object\u003e`_\nwhich can be found in ``pjrpc.common.exceptions`` module so that error handling is very simple and \"pythonic-way\":\n\n.. code-block:: python\n\n    import pjrpc\n    from pjrpc.client.backend import requests as pjrpc_client\n\n    client = pjrpc_client.Client('http://localhost/api/v1')\n\n    try:\n        result = client.proxy.sum(1, 2)\n    except pjrpc.MethodNotFound as e:\n        print(e)\n\n\nDefault error list can be easily extended. All you need to create an error class inherited from\n``pjrpc.exc.JsonRpcError`` and define an error code and a description message. ``pjrpc`` will be automatically\ndeserializing custom errors for you:\n\n.. code-block:: python\n\n    import pjrpc\n    from pjrpc.client.backend import requests as pjrpc_client\n\n    class UserNotFound(pjrpc.exc.JsonRpcError):\n        code = 1\n        message = 'user not found'\n\n\n    client = pjrpc_client.Client('http://localhost/api/v1')\n\n    try:\n        result = client.proxy.get_user(user_id=1)\n    except UserNotFound as e:\n        print(e)\n\n\nOn the server side everything is also pretty straightforward:\n\n.. code-block:: python\n\n    import uuid\n\n    import flask\n\n    import pjrpc\n    from pjrpc.server import MethodRegistry\n    from pjrpc.server.integration import flask as integration\n\n    app = flask.Flask(__name__)\n\n    methods = pjrpc.server.MethodRegistry()\n\n\n    class UserNotFound(pjrpc.exc.JsonRpcError):\n        code = 1\n        message = 'user not found'\n\n\n    @methods.add\n    def add_user(user: dict):\n        user_id = uuid.uuid4().hex\n        flask.current_app.users[user_id] = user\n\n        return {'id': user_id, **user}\n\n    @methods.add\n     def get_user(self, user_id: str):\n        user = flask.current_app.users.get(user_id)\n        if not user:\n            raise UserNotFound(data=user_id)\n\n        return user\n\n\n    json_rpc = integration.JsonRPC('/api/v1')\n    json_rpc.dispatcher.add_methods(methods)\n\n    app.users = {}\n\n    json_rpc.init_app(app)\n\n    if __name__ == \"__main__\":\n        app.run(port=80)\n\n\n\nOpen API specification\n______________________\n\n``pjrpc`` has built-in `OpenAPI \u003chttps://swagger.io/specification/\u003e`_ and `OpenRPC \u003chttps://spec.open-rpc.org/#introduction\u003e`_\nspecification generation support and integrated web UI as an extra dependency. Three UI types are supported:\n\n- SwaggerUI (`\u003chttps://swagger.io/tools/swagger-ui/\u003e`_)\n- RapiDoc (`\u003chttps://mrin9.github.io/RapiDoc/\u003e`_)\n- ReDoc (`\u003chttps://github.com/Redocly/redoc\u003e`_)\n\nWeb UI extra dependency can be installed using the following code:\n\n.. code-block:: console\n\n    $ pip install pjrpc[openapi-ui-bundles]\n\nThe following example illustrates how to configure OpenAPI specification generation\nand Swagger UI web tool with basic auth:\n\n.. code-block:: python\n\n    import uuid\n    from typing import Annotated, Any, Optional\n\n    import flask\n    import flask_cors\n    import flask_httpauth\n    import pydantic as pd\n    from werkzeug import security\n\n    import pjrpc.server.specs.extractors.pydantic\n    from pjrpc.server.integration import flask as integration\n    from pjrpc.server.specs import extractors\n    from pjrpc.server.specs import openapi as specs\n    from pjrpc.server.validators import pydantic as validators\n\n    app = flask.Flask('myapp')\n    flask_cors.CORS(app, resources={\"/myapp/api/v1/*\": {\"origins\": \"*\"}})\n\n    methods = pjrpc.server.MethodRegistry()\n    validator = validators.PydanticValidator()\n\n    auth = flask_httpauth.HTTPBasicAuth()\n    credentials = {\"admin\": security.generate_password_hash(\"admin\")}\n\n\n    @auth.verify_password\n    def verify_password(username: str, password: str) -\u003e Optional[str]:\n        if username in credentials and security.check_password_hash(credentials.get(username), password):\n            return username\n\n\n    class AuthenticatedJsonRPC(integration.JsonRPC):\n        @auth.login_required\n        def _rpc_handle(self, dispatcher: pjrpc.server.Dispatcher) -\u003e flask.Response:\n            return super()._rpc_handle(dispatcher)\n\n\n    class JSONEncoder(pjrpc.JSONEncoder):\n        def default(self, o: Any) -\u003e Any:\n            if isinstance(o, pd.BaseModel):\n                return o.model_dump()\n            if isinstance(o, uuid.UUID):\n                return str(o)\n\n            return super().default(o)\n\n\n    UserName = Annotated[\n        str,\n        pd.Field(description=\"User name\", examples=[\"John\"]),\n    ]\n\n    UserSurname = Annotated[\n        str,\n        pd.Field(description=\"User surname\", examples=['Doe']),\n    ]\n\n    UserAge = Annotated[\n        int,\n        pd.Field(description=\"User age\", examples=[25]),\n    ]\n\n    UserId = Annotated[\n        uuid.UUID,\n        pd.Field(description=\"User identifier\", examples=[\"c47726c6-a232-45f1-944f-60b98966ff1b\"]),\n    ]\n\n\n    class UserIn(pd.BaseModel):\n        \"\"\"\n        User registration data.\n        \"\"\"\n\n        name: UserName\n        surname: UserSurname\n        age: UserAge\n\n\n    class UserOut(UserIn):\n        \"\"\"\n        Registered user data.\n        \"\"\"\n\n        id: UserId\n\n\n    class AlreadyExistsError(pjrpc.exc.JsonRpcError):\n        \"\"\"\n        User already registered error.\n        \"\"\"\n\n        code = 2001\n        message = \"user already exists\"\n\n\n    class NotFoundError(pjrpc.exc.JsonRpcError):\n        \"\"\"\n        User not found error.\n        \"\"\"\n\n        code = 2002\n        message = \"user not found\"\n\n\n    @specs.annotate(\n        summary='Creates a user',\n        tags=['users'],\n        errors=[AlreadyExistsError],\n    )\n    @methods.add\n    @validator.validate\n    def add_user(user: UserIn) -\u003e UserOut:\n        \"\"\"\n        Creates a user.\n\n        :param object user: user data\n        :return object: registered user\n        :raise AlreadyExistsError: user already exists\n        \"\"\"\n\n        for existing_user in flask.current_app.users_db.values():\n            if user.name == existing_user.name:\n                raise AlreadyExistsError()\n\n        user_id = uuid.uuid4().hex\n        flask.current_app.users_db[user_id] = user\n\n        return UserOut(id=user_id, **user.model_dump())\n\n\n    @specs.annotate(\n        summary='Returns a user',\n        tags=['users'],\n        errors=[NotFoundError],\n    )\n    @methods.add\n    @validator.validate\n    def get_user(user_id: UserId) -\u003e UserOut:\n        \"\"\"\n        Returns a user.\n\n        :param object user_id: user id\n        :return object: registered user\n        :raise NotFoundError: user not found\n        \"\"\"\n\n        user = flask.current_app.users_db.get(user_id.hex)\n        if not user:\n            raise NotFoundError()\n\n        return UserOut(id=user_id, **user.model_dump())\n\n\n    @specs.annotate(\n        summary='Deletes a user',\n        tags=['users'],\n        errors=[NotFoundError],\n    )\n    @methods.add\n    @validator.validate\n    def delete_user(user_id: UserId) -\u003e None:\n        \"\"\"\n        Deletes a user.\n\n        :param object user_id: user id\n        :raise NotFoundError: user not found\n        \"\"\"\n\n        user = flask.current_app.users_db.pop(user_id.hex, None)\n        if not user:\n            raise NotFoundError()\n\n\n    json_rpc = AuthenticatedJsonRPC(\n        '/api/v1',\n        json_encoder=JSONEncoder,\n        spec=specs.OpenAPI(\n            info=specs.Info(version=\"1.0.0\", title=\"User storage\"),\n            servers=[\n                specs.Server(\n                    url='http://127.0.0.1:8080',\n                ),\n            ],\n            security_schemes=dict(\n                basicAuth=specs.SecurityScheme(\n                    type=specs.SecuritySchemeType.HTTP,\n                    scheme='basic',\n                ),\n            ),\n            security=[\n                dict(basicAuth=[]),\n            ],\n            schema_extractor=extractors.pydantic.PydanticSchemaExtractor(),\n            ui=specs.SwaggerUI(),\n        ),\n    )\n    json_rpc.dispatcher.add_methods(methods)\n\n    app.users_db = {}\n\n    myapp = flask.Blueprint('myapp', __name__, url_prefix='/myapp')\n    json_rpc.init_app(myapp)\n\n    app.register_blueprint(myapp)\n\n    if __name__ == \"__main__\":\n        app.run(port=8080)\n\n\nSpecification is available on http://localhost:8080/myapp/api/v1/openapi.json\n\nWeb UI is running on http://localhost:8080/myapp/api/v1/ui/\n\nSwagger UI:\n~~~~~~~~~~~\n\n.. image:: docs/source/_static/swagger-ui-screenshot.png\n  :width: 1024\n  :alt: Open API full example\n\nRapiDoc:\n~~~~~~~~\n\n.. image:: docs/source/_static/rapidoc-screenshot.png\n  :width: 1024\n  :alt: Open API cli example\n\nRedoc:\n~~~~~~\n\n.. image:: docs/source/_static/redoc-screenshot.png\n  :width: 1024\n  :alt: Open API method example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapper91%2Fpjrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdapper91%2Fpjrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapper91%2Fpjrpc/lists"}