Skip to content

Commit

Permalink
updated requirements.txt due to security issue in certifi
Browse files Browse the repository at this point in the history
  • Loading branch information
LordOfTheSnow committed Jan 3, 2023
1 parent 0c0cdf8 commit a40a1e0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ In the current implementation, the timestamp will always be at 0:00 local time a

## History

* 03-Jan-2023
* V2.0.1: updated requirements.txt due to security issue in certifi

* 14-Aug-2022
* Released V2.0 which can also handle Influx DB 2.x

Expand Down
4 changes: 1 addition & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def main():
parser.add_argument("-dnw", "--do_not_write", action='store_true',
help="do not write values to database")

parser.add_argument
args = parser.parse_args()
data_link_log.debug(f"symbol: {args.symbol}")

Expand Down Expand Up @@ -91,7 +90,6 @@ def main():
# read the data
data = nasdaqdatalink.Dataset(args.symbol).data(params={ 'start_date':start_date, 'end_date':end_date})


if influxVersion == "1":
if (not (influxUrl and influxDbName)):
logging.exception("InfluxDB configuration parameters are missing. Program terminated.")
Expand Down Expand Up @@ -120,7 +118,7 @@ def main():
def handleData(log, data, args, influxDbClient, influxBucket, start_date, end_date):
if data:
df = data.to_pandas()
# print(df.head())
log.debug(f"df.head():\n{df.head()}")
if not args.do_not_write:
for index, row in df.iterrows():
dataPoint = DataPoint(args.symbol,index, row['Value'])
Expand Down
28 changes: 15 additions & 13 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
certifi==2022.6.15
charset-normalizer==2.0.12
certifi==2022.12.7
charset-normalizer==2.1.1
colorclass==2.2.2
docopt==0.6.2
idna==3.3
idna==3.4
inflection==0.5.1
influxdb-client==1.31.0
more-itertools==8.14.0
influxdb-client==1.35.0
more-itertools==9.0.0
msgpack==1.0.4
Nasdaq-Data-Link==1.0.3
numpy==1.23.1
packaging==21.3
pandas==1.4.3
pip-upgrader==1.4.15
Nasdaq-Data-Link==1.0.4
numpy==1.24.1
packaging==22.0
pandas==1.5.2
pyparsing==3.0.9
python-dateutil==2.8.2
python-dotenv==0.20.0
pytz==2022.2
python-dotenv==0.21.0
pytz==2022.7
reactivex==4.0.4
requests==2.28.1
Rx==3.2.0
six==1.16.0
terminaltables==3.1.10
urllib3==1.26.11
typing_extensions==4.4.0
upgrade-requirements==1.7.0
urllib3==1.26.13

0 comments on commit a40a1e0

Please sign in to comment.