Skip to main content

mockapi

mockapi is a small YAML-driven HTTP mock server for local development and API simulation.

The PyPI distribution name is mian-mohid-mockapi, while the CLI command remains mockapi.

Install

pip install mian-mohid-mockapi

Usage

mockapi serve spec.yaml
mockapi serve spec.yaml --port 3000
mockapi validate spec.yaml

Spec

Supported endpoint fields:

  • path
  • method
  • status_code
  • response
  • headers optional
  • delay optional in milliseconds
  • description optional
  • auth optional, including none

See requirements/fr.md for the full functional requirements.

Metadata

Release files for mian-mohid-mockapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mian-mohid-mockapi 0.1.0
File Size Uploaded
mian_mohid_mockapi-0.1.0.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mian-mohid-mockapi 0.1.0
File Interpreter ABI Platform
mian_mohid_mockapi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.5 kB

Release files / mian_mohid_mockapi-0.1.0.tar.gz

Download URL mian_mohid_mockapi-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e6c3bdeda2d1425a088dd54b419833c91c71d3ecd79a8b4fbad72174a0ccbf7b
BLAKE2b-256 checksum
How to use checksums
fd80b2ac8920d989b9afdcfc1766927da6c7823b8408296731776436644e1d13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / mian_mohid_mockapi-0.1.0-py3-none-any.whl

Download URL mian_mohid_mockapi-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96765199fbe35c3d1353fa2138cdcee6a925fae5c20e6d49c61087e54d025329
BLAKE2b-256 checksum
How to use checksums
3d091d580d9006a413d0ea248a9c03d8d75e78ad81d1eb5aa52a18da2b459bec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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