Skip to main content

REST API verification — typed probes, checks, and findings. Sibling of mgf-common.

Project description

mgf-apiprobe

REST API verification — typed probes, checks, and findings.

mgf-apiprobe is the API-verification sibling of mgf-common. It builds on mgf-common's settings, error, and observability primitives, and adds:

  • Probes — typed descriptions of an HTTP request + the expected response shape.
  • Checks — pluggable verifiers that emit structured Findings (code, severity, root_cause, evidence, remediation).
  • Suites — collections of probes that run async and produce a Report.
  • AuthFlows — bearer / basic / api-key / cookie / custom; OAuth2 is a future add.
  • Matchers — DSL for asserting response shape (format + semantic; IBAN, IMEI, E.164 included).

Install

pip install mgf-apiprobe

Optional extras (forward-declared):

pip install 'mgf-apiprobe[openapi]'   # OpenAPI ingestion
pip install 'mgf-apiprobe[faker]'     # Faker-backed factories
pip install 'mgf-apiprobe[signing]'   # Cassette signing

Quick start

from mgf.apiprobe import Probe, Suite, BearerAuth

probe = (
    Probe.get("https://httpbin.org/get")
    .with_auth(BearerAuth(token="..."))
    .expects_status(200)
    .expects_json_shape({"url": str, "headers": dict})
)

suite = Suite([probe])
report = await suite.run()
print(report.to_human())

Standards

This package targets mgf-common's L1 — Production-Ready standards day-one (BaseAppSettings, AppError, structured logging, redaction, py.typed, semver, ≥80% coverage, no secrets in cassettes/logs). It will graduate to L2 as the sibling matures. See LIFT_CHECKLIST.md.

Layout

File Purpose
DESIGN.md The design spec (≈ 1990 lines). WHAT we're building.
HANDOFF.md Integration plan. HOW it ships as a sibling of mgf-common.
LIFT_CHECKLIST.md Federation conformance acknowledgment.

License

MIT. See LICENSE (TBD).

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

mgf_apiprobe-0.2.1.tar.gz (226.7 kB view details)

Uploaded Source

Built Distribution

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

mgf_apiprobe-0.2.1-py3-none-any.whl (72.2 kB view details)

Uploaded Python 3

File details

Details for the file mgf_apiprobe-0.2.1.tar.gz.

File metadata

  • Download URL: mgf_apiprobe-0.2.1.tar.gz
  • Upload date:
  • Size: 226.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mgf_apiprobe-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b590b4ef6fb6b6cc46ebe4e9285d6bab19bbc94e4c01ec1b507a21d979473ad2
MD5 632171c5ad7151a95fea14f80d0d8694
BLAKE2b-256 fd36843a4ac03f3d9de8ca30c80a5272f8f2650e7f6da3d8ab5dbffef498ab9b

See more details on using hashes here.

File details

Details for the file mgf_apiprobe-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mgf_apiprobe-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 72.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mgf_apiprobe-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9cfdb64d195c5c0d2ad9120397744c802f5518d49f8e2c43e162e847723e6a51
MD5 31822482320256837532c1de001fc4b7
BLAKE2b-256 025681207c82a3de54be5335bf2b3461615d15cbaa660815eb369d68fe346668

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