-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance boostWe now use json instead of yaml.
- Loading branch information
1 parent
ba17b3a
commit fa335bc
Showing
9 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PYTHONPATH=src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ report.xml | |
build/* | ||
.pytest_cache/* | ||
.vscode/* | ||
src/pytickersymbols/data/stocks.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ wheel==0.33.4 | |
pytest | ||
pytest-cov | ||
pandas==0.24.2 | ||
yfinance==0.1.44 | ||
yfinance==0.1.44 | ||
PyYAML==5.1.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import yaml | ||
import json | ||
import os | ||
|
||
# convert yaml file to json | ||
input_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), | ||
'stocks.yaml') | ||
output_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), | ||
'src', 'pytickersymbols', 'data', 'stocks.json') | ||
|
||
os.makedirs(os.path.dirname(os.path.realpath(output_path))) | ||
|
||
with open(output_path, 'w') as out_file: | ||
with open(input_path, 'r') as in_file: | ||
out_file.write(json.dumps(yaml.safe_load(in_file))) |