News: 2021-02-22T07_40_54Z

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

OVHCloud publie OpenAPI with Python en open source

(2021/02/22)


OVHCloud publie OpenAPI with Python en open source

lundi 22 février 2021

Les contributions d’OVHCloud à l’écosystème open source sont de plus en plus nombreuses. Le module apispec-fromfile vient de faire son apparition sur Github.

OVHCloud [1]vient ainsi de développer un module Python - [2]apispec-fromfile - afin de simplifier l’utilisation d’OpenAPI en Python en important les spécifications OpenAPI à partir de fichiers.

Un [3]long article de blog rédigé par François Magimel explique pourquoi ce choix et comment exploiter les avantages de ce nouveau module, publié en open source avec une licence Apache version 2.0.

C’est quoi APISpec-fromfile et comment l’installer ?

Le greffon APISpec permet d’ importer les spécifications OpenAPI à partir d’un fichier , au lieu de placer YAML dans les docstrings.

Pour installer APISpec-fromfile , utilisez la commande suivante : pip install apispec-fromfile

Les instructions se trouvent [4]sur Github .

[5]



[1] https://www.ovh.com/blog/openapi-with-python-a-state-of-the-art-and-our-latest-contribution/

[2] https://github.com/ovh/python-apispec-fromfile

[3] https://www.ovh.com/blog/openapi-with-python-a-state-of-the-art-and-our-latest-contribution/

[4] https://github.com/ovh/python-apispec-fromfile

[5] https://www.toolinux.com/?ovhcloud-publie-openapi-with-python-en-open-source#forum

Genius may have its limitations, but stupidity is not thus handicapped.
-- Elbert Hubbard