OpenAPI Scrubber
Project description
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
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
apiscrub-1.2.0.tar.gz
(3.4 kB
view details)
Built Distribution
apiscrub-1.2.0-py3.7.egg
(6.1 kB
view details)
File details
Details for the file apiscrub-1.2.0.tar.gz
.
File metadata
- Download URL: apiscrub-1.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeea54e9bd935ae62c17c810c56db9374c26b27f48e4ef0f3e14c1247690edf4 |
|
MD5 | 3b361394813a15a5dd1dc58ceb70cbfb |
|
BLAKE2b-256 | 51362912b2ee60cf2c2d77c51f76a129c97ca7e2492f1237764faac5c870acf4 |
File details
Details for the file apiscrub-1.2.0-py3.7.egg
.
File metadata
- Download URL: apiscrub-1.2.0-py3.7.egg
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfde84868319e649902f3dfe93459197090b8f0c79eeb2aee6c1ddc54841ebd3 |
|
MD5 | ce5e5eb94eb9e8c6fd388796076e854b |
|
BLAKE2b-256 | b8f82af8e4390b41d7c86673097d3919bd2d7b415e3e309a62c6acfabb3ef80a |