mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
86fabcd5e3
+ merge main.py and manage.py + move start logic to swingmusic/__main__.py + add a run.py on the project root
10 lines
209 B
Python
10 lines
209 B
Python
import string
|
|
import random
|
|
|
|
|
|
def get_random_str(length=5):
|
|
"""
|
|
Generates a random string of length `length`.
|
|
"""
|
|
return "".join(random.choices(string.ascii_letters + string.digits, k=length))
|