mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
21 lines
404 B
Python
21 lines
404 B
Python
import uuid
|
|
|
|
from __version__ import __version__
|
|
|
|
|
|
def get_version() -> str:
|
|
"""Returns current version tag"""
|
|
if __version__ != "<version>":
|
|
return __version__
|
|
|
|
return "development"
|
|
|
|
|
|
def is_valid_uuid(uuid_str: str) -> bool:
|
|
"""Check if a string is a valid UUID."""
|
|
try:
|
|
uuid.UUID(uuid_str, version=4)
|
|
return True
|
|
except ValueError:
|
|
return False
|