<commit_before># pyfmt

python style formatter

# Installation

```bash
go install gitli.corp.linkedin.com/secsre/pyfmt
```

# Usage

```Go
dict := make(map[string]string)
dict["name"] = "John"
dict["age"] = "99
foo := pyfmt.Sprintf("Hello {name}, are you really {age} years old?", dict)
```

# Limitations

 * does not allow embedded curly braces
 * does not allow escaped { or }<commit_msg>updated readme with updated usage<commit_after># pyfmt

python style formatter

# Installation

```bash
go install gitli.corp.linkedin.com/secsre/pyfmt
```

# Usage

## `Sprintf` accepts a `map[string]string`:

```Go
dict := make(map[string]string)
dict["name"] = "John"
dict["age"] = "99"
actual := pyfmt.Sprintf("Hello {name}, are you really {age} years old?", dict)
```

## `Sprintf` accepts multiple arguments:

```Go
actual := Sprintf("-->{0}*{1}<--", 3.5, "silly", "ignored")
```
{'fraction_non_alphanumeric': 0.18586088939566706, 'fraction_numerical': 0.009122006841505131, 'mean_word_length': 5.097222222222222, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1475110', 'n_tokens_mistral': 330, 'n_tokens_neox': 303, 'n_words': 86}