Change portions of static config files
* Python 3.9 through 3.13, PyPy
New in 1.0.x
integration with drain-swamp-action; all badges; docs to py310;
New in 0.0.x
move snip from package drain-swamp;
Whats a snippet?
Within a configuration, there are times when some bit of text needs to be changed.
The only requirement is the file format should recognize pound symbol # as a comment.
A snippet without an snippet code (id)
before snippet
# @@@ editable
code block
# @@@ end
after snippet
A snippet with an snippet code (id)
before snippet
# @@@ i_am_a_snippet_co
code block
# @@@ end
after snippet
What batteries are included?
None
This is a base package. Other authors are encouraged to:
not reinvent the wheel
avoid packages with snippet implementations, when only just want the base class, Snip
Packages using drain-swamp-snippet-pypi
Acknowledgement
The technique and initial implementation is from Ned Batchelder
Ned Batchelder is also the author of cog which creates content by embedding both Python code and output in the original file.
Check out introduction to cog
Release files for drain-swamp-snippet 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| drain_swamp_snippet-1.0.2.tar.gz | 72.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| drain_swamp_snippet-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.8 kB
Release files / drain_swamp_snippet-1.0.2.tar.gz
| Download URL | drain_swamp_snippet-1.0.2.tar.gz |
|---|---|
| Size | 72.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4782b9d62ac5b0628573c366bd30ae9283ed432df0e2cef40bd5c048956715e0
|
|
BLAKE2b-256 checksum How to use checksums |
bb1ece6aa577129cbeec84b3bccb4c46eeda85e77b4309c8880bcaafad67ce56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 7, 2025.
Transparency logRelease files / drain_swamp_snippet-1.0.2-py3-none-any.whl
| Download URL | drain_swamp_snippet-1.0.2-py3-none-any.whl |
|---|---|
| Size | 38.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
252b2b04eec9e71720b747a92c5b97a33da42776e9396ad898400ba92d4ca709
|
|
BLAKE2b-256 checksum How to use checksums |
0a2d2bf82eb5eaac66637b616a562bf4d7040616c19940fdfd400757ae8ed432
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 7, 2025.
Transparency log