Skip to main content

API Scrubber

An OpenAPI scrubber to process and remove certain information depending on the target audience. For example, given something like:

paths:
  /hello:
    get:
      description: Returns a hello world string.
  /admin:
    x-only: admin
    get:
      description: Get the admin settings

Then running apiscrub input.yaml - would result in:

paths:
  /hello:
    get:
      description: Returns a hello world string.

While running apiscrub --keep=admin input.yaml - would result in:

paths:
  /hello:
    get:
      description: Returns a hello world string.
  /admin:
    get:
      description: Get the admin settings

Note that the x-only metadata extension tag gets removed in both cases.

Installation

Install via Python:

$ pip install apiscrub

License

Copyright © 2018 Daniel G. Taylor

http://dgt.mit-license.org/

Metadata

Release files for apiscrub 1.2.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 apiscrub 1.2.0
File Size Uploaded
apiscrub-1.2.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apiscrub 1.2.0
File Interpreter ABI Platform
apiscrub-1.2.0-py3.7.egg Legacy Egg format - - Details

Total release size: 9.5 kB

Release files / apiscrub-1.2.0.tar.gz

Download URL apiscrub-1.2.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
eeea54e9bd935ae62c17c810c56db9374c26b27f48e4ef0f3e14c1247690edf4
BLAKE2b-256 checksum
How to use checksums
51362912b2ee60cf2c2d77c51f76a129c97ca7e2492f1237764faac5c870acf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

Release files / apiscrub-1.2.0-py3.7.egg

Download URL apiscrub-1.2.0-py3.7.egg
Size 6.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
bfde84868319e649902f3dfe93459197090b8f0c79eeb2aee6c1ddc54841ebd3
BLAKE2b-256 checksum
How to use checksums
b8f82af8e4390b41d7c86673097d3919bd2d7b415e3e309a62c6acfabb3ef80a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

3 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