Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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"

python-readme-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for replace, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size replace-2019.4.13.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page