multiple replace
Project description
Installation
$ [sudo] pip install replace
Functions
function | __doc__ |
---|---|
replace.replace(source, replacement) |
replace multiple elements/substrings and return result |
Examples
import replace
>>> replace.replace(["3.6","3.7","3.8"], {"3.7": "3.7-dev", "3.8": "3.8-dev"})
["3.6","3.7-dev","3.8-dev""3.8"]
>>> replace.replace("package/module.py", {"/": ".", ".py": ""})
"package.module"
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
replace-2019.3.22.tar.gz
(1.4 kB
view hashes)
Built Distribution
Close
Hashes for replace-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7432a2a8682fdd3c51830d9f8b311d7365b647d4474fc0d5a9e92423f67ce1 |
|
MD5 | 70055fd1ec15bf6c2e4f21ccff56a300 |
|
BLAKE2b-256 | f127fae5781e5471d3545d5a893a6e35e17a8b908020318d8a7dba01d083197a |