Skip to main content

Preacher: Web API Verification without Coding

PyPI version Documentation Status CircleCI Codecov Language grade: Python

Preacher verifies API servers, which requests to the servers and verify the responses along to given scenarios.

Test scenarios are written only in YAML declaratively, without coding. In spite of that, Preacher can validate your web API flexibly, which enables you to test using real (neither mocks nor sandboxes) backends.

The full documentation is available at preacher.readthedocs.io.

Targets

  • Flexible validation to test with real backends: neither mocks nor sandboxes.
    • Matcher-based validation.
  • CI Friendly to automate easily.
    • A CLI application and YAML-based scenarios.

Usage

First, install Preacher.

The most basic way to install Preacher is using pip. Supports only Python 3.7+.

$ pip install preacher
$ preacher-cli --version

Instead of pip, Docker images are also available on Docker Hub as ymoch/preacher. By default, the container working directory is /work, and the host directory may be mounted here.

$ docker pull ymock/preacher
$ docker run -v $PWD:/work ymoch/preacher preacher-cli --version

Second, write your own scenario.

# scenario.yml
label: An example of a scenario
cases:
  - label: An example of a case
    request: /path/to/foo
    response:
      status_code: 200
      body:
        - describe: .foo
          should:
            equal: bar

Then, run preacher-cli command.

$ preacher-cli -u http://your.domain.com/base scenario.yml

For more information such as grammer of scenarios, see the full documentation.

License

MIT License

Copyright (c) 2019 Yu MOCHIZUKI

Download files

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

Source Distribution

preacher-0.14.9.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

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

preacher-0.14.9-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

Details for the file preacher-0.14.9.tar.gz.

File metadata

  • Download URL: preacher-0.14.9.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.8 Linux/4.15.0-1077-aws

File hashes

Hashes for preacher-0.14.9.tar.gz
Algorithm Hash digest
SHA256 a3883ce08ada3f91b0b6ace96472f9a8e44bce89eaa7f22c546abc57f264eb8a
MD5 0b2478ccc437efac22f25731e5c9bd84
BLAKE2b-256 5d716213b9895bb85b3f4afd61c9c2b398c1ce3d8aaa1afd36bfbaaf107bdc52

See more details on using hashes here.

File details

Details for the file preacher-0.14.9-py3-none-any.whl.

File metadata

  • Download URL: preacher-0.14.9-py3-none-any.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.7.8 Linux/4.15.0-1077-aws

File hashes

Hashes for preacher-0.14.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6e2f810d1b5675268c1b47dcab8d8fca3f625ceb636daf151daab6c827ba2ef6
MD5 71d13ad7fcf5b19ba98e79f1fa1198d5
BLAKE2b-256 9fbf56eb1390aebdf1db789e41a095ab02bf92319badb1dc59508fce3f4d9509

See more details on using hashes here.

Release history Release notifications | RSS feed

0.15.11

2 files

0.15.10

2 files

0.15.9

2 files

0.15.8

2 files

0.15.7

2 files

0.15.6

2 files

0.15.5

2 files

0.15.4

2 files

0.15.3

2 files

0.15.2

2 files

0.15.1

2 files

0.15.0

2 files

This release

0.14.9 This release

2 files

0.14.8

2 files

0.14.7

2 files

0.14.6

2 files

0.14.5

2 files

0.14.4

2 files

0.14.3

2 files

0.14.2

2 files

0.14.1

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.7

2 files

0.11.6

2 files

0.11.5

2 files

0.11.4

2 files

0.11.3

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.2

2 files

0.10.1

2 files

0.10.0

2 files

0.9.11

2 files

0.9.10

2 files

0.9.9

2 files

0.9.8

2 files

0.9.7

2 files

0.9.6

2 files

0.9.5

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.9.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page