initial commit

This commit is contained in:
Lucas Jensen
2024-05-01 09:19:01 -07:00
commit 5d67c0c2b2
117 changed files with 9917 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import toml
from pathlib import Path
def get_version() -> str:
abs_path = Path(__file__).resolve().parent.parent.parent / "pyproject.toml"
try:
with open(abs_path) as file:
data = toml.load(file)
return data["tool"]["poetry"]["version"]
except Exception as e:
return "0.0.0"
finally:
file.close()
if __name__ == "__main__":
print(get_version())