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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file py_luke-0.0.3.tar.gz.

File metadata

  • Download URL: py_luke-0.0.3.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for py_luke-0.0.3.tar.gz
Algorithm Hash digest
SHA256 25590aba4adcbf9f90cb7373761f205cd6ef0c7f7dfe15a29d6cd28767b214f1
MD5 77ce7ec1d57874586edbc9d5650d618d
BLAKE2b-256 63bd2d8a1d754fb2d1073ce21ef2e3b01dd0937cd00b41a43d1f7c78d6df598d

See more details on using hashes here.

File details

Details for the file py_luke-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: py_luke-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for py_luke-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 acc7b548296ec683822340d0464bc3d63b1aa798f91a1e62af5e357ea23206ca
MD5 5b1895ea6283cea2b7f05ababfdab189
BLAKE2b-256 bb0f4e805eecf9b5780a1d87a2c55a8c934db6ee21afdb6f246b9ac081f9c95c

See more details on using hashes here.

Supported by

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