This repository has been archived on 2021-01-14. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-04 10:47:20 -05:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
"""
|
|
|
|
functions.py
|
|
|
|
|
|
|
|
Functions used by imgupload which can be easily customized.
|
|
|
|
"""
|
2020-09-06 15:24:20 -05:00
|
|
|
|
2020-09-02 17:14:28 -05:00
|
|
|
import string
|
|
|
|
import random
|
|
|
|
|
|
|
|
|
|
|
|
def generate_name():
|
|
|
|
chars = string.ascii_letters + string.digits # uppercase, lowercase, and numbers
|
|
|
|
name = ''.join((random.choice(chars) for i in range(8))) # generate name
|
|
|
|
return name
|