string-le 0.2.0

Extract every string in a codebase, with its position, so a person can read them
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Module docstring.

Two lines, one string.
"""

# A comment mentioning "the docs" is prose, not a literal.


def greet(name):
    '''Greet a user politely.'''
    template = f"Hello, {name}!"
    pattern = r"\d+ items"
    payload = b"bytes"
    both = rb'raw bytes'
    inline = 'single quoted'
    hashed = "a # inside a string"
    empty = ''
    return template, pattern, payload, both, inline, hashed, empty