-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
726df3e
commit 392e67e
Showing
6 changed files
with
432 additions
and
76 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
||
*Chat*/ | ||
*chat* | ||
|
||
SCRAT*/ | ||
scra*.py | ||
*.ipynb | ||
|
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
import traceback | ||
|
||
# from dotenv import load_dotenv | ||
from pathlib import Path | ||
|
||
try: | ||
|
||
from dotenv import load_dotenv | ||
|
||
|
||
def load_env(verbose=True): | ||
"""Load environment variables from a .env file in the current directory.""" | ||
dotenv_path = Path(".") / '.env' | ||
if verbose: | ||
print(f"reading apikey from [{dotenv_path}]") | ||
load_dotenv(dotenv_path) | ||
|
||
except Exception: | ||
|
||
print("""[solution] | ||
$ pip install python-dotenv | ||
""") | ||
traceback.print_exc() | ||
|
||
raise ModuleNotFoundError() |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
[tool.poetry] | ||
name = "evdspy" | ||
version = "1.1.34" | ||
version = "1.1.35" | ||
description = "A versatile interface for the 'EDDS' (EVDS) API of the Central Bank of the Republic of Türkiye (https://evds2.tcmb.gov.tr/index.php?/evds/userDocs). This package allows users to easily access and manage economic data through a user-friendly menu function. It features a robust caching mechanism to enhance the efficiency of data requests by storing frequently accessed data for selected periods. Required API keys can be obtained by registering on the EVDS website." | ||
authors = ["Sermet Pekin <[email protected]>"] | ||
license = "MIT" | ||
|