Skip to content

Commit bd1836f

Browse files
authored
Merge pull request #1 from untilhamza/dev/load-env-vars-automatically
Dev/load env vars automatically
2 parents 143a614 + 9647677 commit bd1836f

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.env
2-
venv
2+
venv
3+
.venv

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import os
55
from io import BytesIO
66
from md2pdf.core import md2pdf
7+
from dotenv import load_dotenv
8+
9+
load_dotenv()
710

811
GROQ_API_KEY = os.environ.get("GROQ_API_KEY", None)
912

requirements.txt

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,50 @@ annotated-types==0.6.0
33
anyio==4.3.0
44
attrs==23.2.0
55
blinker==1.8.2
6+
Brotli==1.1.0
67
cachetools==5.3.3
78
certifi==2024.2.2
9+
cffi==1.16.0
810
charset-normalizer==3.3.2
911
click==8.1.7
12+
cssselect2==0.7.0
1013
defusedxml==0.7.1
1114
distro==1.9.0
15+
docopt==0.6.2
16+
exceptiongroup==1.2.1
1217
fonttools==4.51.0
1318
fpdf2==2.7.9
1419
gitdb==4.0.11
1520
GitPython==3.1.43
1621
groq==0.6.0
1722
h11==0.14.0
23+
html5lib==1.1
1824
httpcore==1.0.5
1925
httpx==0.27.0
2026
idna==3.7
2127
Jinja2==3.1.4
2228
jsonschema==4.22.0
2329
jsonschema-specifications==2023.12.1
2430
markdown-it-py==3.0.0
31+
markdown2==2.4.13
2532
MarkupSafe==2.1.5
33+
md2pdf==1.0.1
2634
mdurl==0.1.2
2735
numpy==1.26.4
2836
packaging==24.0
2937
pandas==2.2.2
3038
pillow==10.3.0
3139
protobuf==4.25.3
3240
pyarrow==16.1.0
41+
pycparser==2.22
3342
pydantic==2.7.1
3443
pydantic_core==2.18.2
3544
pydeck==0.9.1
45+
pydyf==0.10.0
3646
Pygments==2.18.0
47+
pyphen==0.15.0
3748
python-dateutil==2.9.0.post0
49+
python-dotenv==1.0.1
3850
pytz==2024.1
3951
referencing==0.35.1
4052
requests==2.31.0
@@ -43,13 +55,15 @@ rpds-py==0.18.1
4355
six==1.16.0
4456
smmap==5.0.1
4557
sniffio==1.3.1
46-
streamlit==1.34.0
58+
streamlit==1.36.0
4759
tenacity==8.3.0
60+
tinycss2==1.3.0
4861
toml==0.10.2
4962
toolz==0.12.1
5063
tornado==6.4
5164
typing_extensions==4.11.0
5265
tzdata==2024.1
5366
urllib3==2.2.1
54-
weasyprint
55-
md2pdf
67+
weasyprint==62.3
68+
webencodings==0.5.1
69+
zopfli==0.2.3

0 commit comments

Comments
 (0)