README
Overview
Performs simple string substitution in openapi specifications.
Should be used until CloudFormation natively supports this feature.
Installation
Installation instructions
To install directly from PyPI
python3 -m pip install sceptre-openapi-substitution-hook
To install from the git repo
python3 -m pip install git+https://github.com/nicholasphair/sceptre-openapi-substitution-hook
Usage/Examples
Use the hook with a hook point
hooks:
<hook_point>:
- !openapi_substituter
openapi:
input: <input_path>
output: <output_path>
substitutions:
<key>: <val>
The substituer will look for strings in the form of ${<key>} and replace them
with <val>.
Example
hooks:
before_validate:
- !openapi_substituter
openapi:
input: ../templates/openapi.yaml
output: ../templates/openapi.yaml
substitutions:
foo: bar
baz: qux
Metadata
Release files for sceptre-openapi-substitution-hook 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sceptre_openapi_substitution_hook-0.0.1.tar.gz | 6.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sceptre_openapi_substitution_hook-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / sceptre_openapi_substitution_hook-0.0.1.tar.gz
| Download URL | sceptre_openapi_substitution_hook-0.0.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
205ad0ada724f78e04e3e634a3e29210cd0edd3b71531a7428fa1df0527838b5
|
|
BLAKE2b-256 checksum How to use checksums |
c13d1e7d1f09dacaa3a0cc3bdce6d78a0fb535f456fb142c8a8b26d4f57e556e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.3 Darwin/22.5.0
|
Release files / sceptre_openapi_substitution_hook-0.0.1-py3-none-any.whl
| Download URL | sceptre_openapi_substitution_hook-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59d1b0a7dabccc8d076a4cc469ce8defde0a49dff3cd65e9761887a0f80561e7
|
|
BLAKE2b-256 checksum How to use checksums |
7e156d812bcba827b88ccc9de431fd45a016fcedf936642ca98679a97f20cd79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.3 Darwin/22.5.0
|
Security for sceptre-openapi-substitution-hook 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.