Rororo

Latest version: v3.3.0

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 8

2.1.2

==================

**Fixes:**

- Proper handling of operations with empty security list (120)

**Other:**

- Improve examples & tests structure (118)
- (**deps**) bump aiohttp from 3.6.3 to 3.7.2 (119)

2.1.1

==================

**Fixes:**

- (**openapi**) Proper handling of operations with empty security list (115)

**Other:**

- Do not enforce commitizen check at CI (113)

2.1.0

==================

**Features:**

- Ensure Python 3.9 support (109)

**Other:**

- (**deps**) bump attrs from 20.1.0 to 20.2.0 (108)
- (**deps-dev**) bump pytest from 6.0.1 to 6.1.0 (107)
- (**deps-dev**) bump coverage from 5.2.1 to 5.3 (106)
- (**deps**) bump pyrsistent from 0.16.0 to 0.17.3 (105)
- Integrate badabump for release needs (110)

2.0.2

==================

**Features:**

- Require ``attrs>=19.1,<21`` to allow use ``attrs==20.1.0`` in dependent
projects

**Other:**

- Massive infrastrucutre update: move code to ``src/`` directory, use latest
``pytest`` for tests, better ``Makefile`` targets, etc

2.0.1

==================

**Features:**

- Ensure *rororo* to work properly with ``openapi-core==0.13.4``

2.0.0

==================

Final **2.0.0** release, which completes reimplementing *rororo* as library
for implementing aiohttp.web OpenAPI 3 server applications with schema first
approach.

**Quickstart:**

*rororo* relies on valid OpenAPI 3 schema (both JSON & YAML formats supported).
Example below illustrates using ``openapi.yaml`` schema file, stored next to
``app`` module,

.. code-block:: python

from pathlib import Path
from typing import List

from aiohttp import web
from rororo import setup_openapi

from .views import operations


def create_app(argv: List[str] = None) -> web.Application:
return setup_openapi(
web.Application(),
Path(__file__).parent / "openapi.yaml",
operations,
)

Then, you need to *register* operation handlers in ``views`` module. Example
below shows registering handler for *operationId* ``hello_world``,

.. code-block:: python

from aiohttp import web
from rororo import OperationTableDef


operations.register
async def hello_world(request: web.Request) -> web.Response:
return web.json_response({"data": "Hello, world!"})

`Documentation <https://rororo.readthedocs.io/en/latest/openapi.html>`_
provides more information on implementing aiohttp.web OpenAPI 3 server
applications with schema first approach using *rororo*.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.