0 purchases
revar 0.3
revar
Replace specific values with custom variables
Installation
pip3 install revar
Examples
Input
import revar
text = "Hello, $username$\nNice to meet $who$"
output = revar.replace(text, {"$username$": "decave27", "$who$": "you"})
print(output)
Output
Hello, decave27
Nice to meet you
import revar
r = revar.Revar(prefix="$")
output = r.replace("Hello, $username\nNice to meet $who", username="decave27", who="you")
print(output)
Output
Hello, decave27
Nice to meet you
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.