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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| apiscrub-1.2.0.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|