Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ojadeyemi committed May 7, 2024
1 parent 9fcecd3 commit 4bbdbcb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
virtualenv
virtualenv/
venv/
.env
# Flask stuff:
__pycache__
Expand Down
9 changes: 8 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
"""Configurations file"""
import os

mysqldatabase = f"mysql+pymysql://usportsballwebapp:{os.environ.get('USPORT_BBALL_PASSWORD')}.@localhost/usports_bball"
# Load environment variables from .env file
from dotenv import load_dotenv
load_dotenv()

# Retrieve the environment variable
password = os.getenv("USPORT_BBALL_PASSWORD")

mysqldatabase = f"mysql+pymysql://usportsballwebapp:{password}.@localhost/usports_bball"
class Config:
"""Default Configuration"""
DEBUG = False
Expand Down
10 changes: 8 additions & 2 deletions data_pipeline/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import os
from .database_update import update_usports_bball_db

# Load environment variables from .env file
from dotenv import load_dotenv
load_dotenv()

# Retrieve the environment variable
password = os.getenv("USPORT_BBALL_PASSWORD")

def update_db():
""" Update Database"""
mysql_password = os.environ.get('USPORT_BBALL_PASSWORD')
update_usports_bball_db(mysql_password)
update_usports_bball_db(password)
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
beautifulsoup4==4.12.3
blinker==1.7.0
blinker==1.8.2
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
cryptography==42.0.5
cryptography==42.0.7
Flask==3.0.3
Flask-SQLAlchemy==3.1.1
Flask-WTF==1.2.1
greenlet==3.0.3
idna==3.7
itsdangerous==2.2.0
Jinja2==3.1.3
Jinja2==3.1.4
MarkupSafe==2.1.5
mysql-connector-python==8.3.0
mysql-connector-python==8.4.0
numpy==1.26.4
pandas==2.2.2
pycparser==2.22
Expand All @@ -25,10 +25,10 @@ pytz==2024.1
requests==2.31.0
six==1.16.0
soupsieve==2.5
SQLAlchemy==2.0.29
SQLAlchemy==2.0.30
typing_extensions==4.11.0
tzdata==2024.1
urllib3==2.2.1
usports-basketball==1.0.1
Werkzeug==3.0.2
Werkzeug==3.0.3
WTForms==3.1.2

0 comments on commit 4bbdbcb

Please sign in to comment.