Skip to main content

search-replace

search-replace is a trivial Python script that implements search/replace in text files.

https://github.com/luismsgomes/search-replace

Copyright (c) 2019 Luís Gomes <luismsgomes@gmail.com>

Usage

search-replace <json-table> [<input-file> [<output-file>]]

Where <json-table> is either:

  • an object with search strings as keys and replacement strings as values, e.g. {"search": "replace"}

  • an array of arrays containing search and replacement string pairs, e.g. [["search1", "replace1"], ["search2", "replace2"]]

  • a filename preceeded by @, such as @table.json, and the file should contain the replacement table in one of the two JSON formats described above

In the second form, the order of replacements is ensured to follow the order of the array.

Metadata

Release files for search-replace 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for search-replace 0.1.2
File Size Uploaded Provenance Actions
search-replace-0.1.2.tar.gz 2.3 kB Without provenance Details for search-replace-0.1.2.tar.gz

Release files / search-replace-0.1.2.tar.gz

Download URL search-replace-0.1.2.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
91022453bc034c1f1cf1a0c77dc089deb751f172dcc49786325b12e9aac9452a
BLAKE2b-256 checksum
How to use checksums
9a7f1b419e4b994796d79e97a828ec86c48a61e10d1c2db707ca00af2d0d517f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Security for search-replace 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page