Browse Source

Initial commit

foppe 2 năm trước cách đây
mục cha
commit
069247e45a
3 tập tin đã thay đổi với 31 bổ sung0 xóa
  1. 10 0
      main.py
  2. 20 0
      poetry.lock
  3. 1 0
      pyproject.toml

+ 10 - 0
main.py

@@ -0,0 +1,10 @@
+import os
+from dotenv import load_dotenv
+# from pprint import pprint
+
+
+DEBUG = False
+load_dotenv()
+
+version = os.getenv("VERSION")
+print(version)

+ 20 - 0
poetry.lock

@@ -0,0 +1,20 @@
+# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand.
+
+[[package]]
+name = "python-dotenv"
+version = "1.0.0"
+description = "Read key-value pairs from a .env file and set them as environment variables"
+optional = false
+python-versions = ">=3.8"
+files = [
+    {file = "python-dotenv-1.0.0.tar.gz", hash = "sha256:a8df96034aae6d2d50a4ebe8216326c61c3eb64836776504fcca410e5937a3ba"},
+    {file = "python_dotenv-1.0.0-py3-none-any.whl", hash = "sha256:f5971a9226b701070a4bf2c38c89e5a3f0d64de8debda981d1db98583009122a"},
+]
+
+[package.extras]
+cli = ["click (>=5.0)"]
+
+[metadata]
+lock-version = "2.0"
+python-versions = "^3.11"
+content-hash = "c5e9d7ef80551206531e74c9c51ba97d4b66d8df66a3398da6afb0391f703375"

+ 1 - 0
pyproject.toml

@@ -7,6 +7,7 @@ readme = "README.md"
 
 [tool.poetry.dependencies]
 python = "^3.11"
+python-dotenv = "^1.0.0"
 
 
 [build-system]