Metadata-Version: 2.1
Name: revar
Version: 0.3
Summary: Replace specific values ​​with custom variables
Home-page: https://github.com/decave27/revar
Author: decave27
Author-email: decave27@gmail.com
License: MIT
Project-URL: Source, https://github.com/decave27/revar
Project-URL: Tracker, https://github.com/decave27/revar/issues
Keywords: replace,custom,variable
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# revar
![PyPI](https://img.shields.io/pypi/v/revar?logo=pypi)
![PyPI - License](https://img.shields.io/pypi/l/revar)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Replace specific values ​​with custom variables

## Installation

```bash
pip3 install revar
```
## Examples
Input
```python
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
```
```python
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
```




