pymensago/utils.py
def generate_filename(size: int) -> str:
	'''Generates a unique filename for a file using the Mensago filename template.
	
	Notes:
		Mensago filenames are intended to convey no information about its contents. It
		consists of a UUID, the size of the file, and a timestamp. If None is passed
		as the file size, the file name only consists of a UUID and timestamp.
	'''
	parts = [ str(uuid.uuid4()) ]
	
	if size is not None:
		parts.append(str(size))
	
	parts.append(time.strftime('%Y%m%dT%H%M%SZ', time.gmtime()))
	
	return '.'.join(parts)
Generates a unique filename for a file using the Mensago filename template.
	
	Notes:
		Mensago filenames are intended to convey no information about its contents. It
		consists of a UUID, the size of the file, and a timestamp. If None is passed
		as the file size, the file name only consists of a UUID and timestamp.
	
Generates a unique filename for a file using the Mensago filename template.
Notes:
Mensago filenames are intended to convey no information about its contents. It
consists of a UUID, the size of the file, and a timestamp. If None is passed
as the file size, the file name only consists of a UUID and timestamp.
Generates a unique filename for a file using the Mensago filename template . Notes : Mensago filenames are intended to convey no information about its contents . It consists of a UUID the size of the file and a timestamp . If None is passed as the file size the file name only consists of a UUID and timestamp .
def generate_filename(size: int) -> str:
	parts = [ str(uuid.uuid4()) ]
	if size is not None:
		parts.append(str(size))
	parts.append(time.strftime('%Y%m%dT%H%M%SZ', time.gmtime()))
	return '.'.join(parts)
def generate_filename ( size : int ) -> str : parts = [ str ( uuid . uuid4 ( ) ) ] if size is not None : parts . append ( str ( size ) ) parts . append ( time . strftime ( '%Y%m%dT%H%M%SZ' , time . gmtime ( ) ) ) return '.' . join ( parts )
Generates a unique filename for a file using the Mensago filename template.
Generates a unique filename for a file using the Mensago filename template .
'''Generates a unique filename for a file using the Mensago filename template.
	
	Notes:
		Mensago filenames are intended to convey no information about its contents. It
		consists of a UUID, the size of the file, and a timestamp. If None is passed
		as the file size, the file name only consists of a UUID and timestamp.
	'''
size
int