plover_retro_stringop
Run arbitrary code on the last n words! This is inheritly unsafe and horrible, yay!
Complaints go to [[redacted]]@[[redacted]].com.
Usage
{:retro_stringop:N:EXPR}, where N is the number of words (backwards) to work on and EXPR is the expression that constitutes the new text.
This has text as the entire string and words as an array of the individual words (already stripped, use raw_words for words including the spaces).
{:retro_stringop_sh:N:EXPR} does the same stuff, but calls /bin/sh, and provides the text as TEXT env var.
Examples
{:retro_stringop:1:"(" + text + ")"}: surround last word in parenthesis{:retro_stringop:2:"(" + text + ")"}: surround last two words in parenthesis{:retro_stringop_sh:1:echo "$TEXT" | tee some-file.txt}: log last word to some-file.txt (tee is used here to so that the word doesn't get deleted){:retro_stringop:1:text[::-1]}: reverse the last word{:retro_stringop_sh:1:cat "$TEXT"}: read the last word as a filename, and read that file, replacing the filename with the content{:retro_stringop:3:"".join([w.lower().capitalize() for w in words])}: PascalCase the last 3 words
Metadata
Release files for plover-retro-stringop 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| plover_retro_stringop-0.1.2.tar.gz | 2.2 kB | Without provenance | Details for plover_retro_stringop-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plover_retro_stringop-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for plover_retro_stringop-0.1.2-py3-none-any.whl |
Total release size: 5.1 kB
Release files / plover_retro_stringop-0.1.2.tar.gz
| Download URL | plover_retro_stringop-0.1.2.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a079faa5160829f649193586fc9fc7aed456b205cae30a8f97ae850fd9599ed
|
|
BLAKE2b-256 checksum How to use checksums |
4575e01e81780468f8910d0d291943fea9d753edb299502bebd8531cb1a50ec0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200709 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / plover_retro_stringop-0.1.2-py3-none-any.whl
| Download URL | plover_retro_stringop-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
108b7dabd6e20c7fcf3fbd5868afe37a92a4c468cd3ad113eda20580dd88c1b2
|
|
BLAKE2b-256 checksum How to use checksums |
d47167206e302aee9d325b0a388869e6923ae5d3762ddafb9953b559cace5808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200709 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Security for plover-retro-stringop 0.1.2
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.