Skip to main content

Mock server for OpenAPI documentation

Project description

py-luke

Working on OpenAPI easily.

Build Status Code coverage Download PyPi MIT Py version PyPi version

Features

Some of main features:

  • Create a mock server for OpenAPI document
  • Validate OpenAPI document with readable error messages
  • Bundle OpenAPI fragments into the single document

py-luke supports both json and yaml type. Besides, you can also open file via path or URL.

Installation

You can install py-luke from PyPi or Docker

$ pip install py-luke
$ docker run nguyenkhacthanh/luke:latest

Usage

$ luke mock https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml

or

$ docker run nguyenkhacthanh/latest validate https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml
$ docker run -p8000:8000 nguyenkhacthanh/luke:latest mock https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml

Project details


Download files

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

Source Distribution

py_luke-0.0.3.tar.gz (14.0 kB view hashes)

Uploaded Source

Built Distribution

py_luke-0.0.3-py3-none-any.whl (11.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page