Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v.1.1.20 #11

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,39 @@
* The API key parameter has been moved to the HTTP header as required by recent updates from EDDS data provider.
This change enhances security by ensuring that sensitive information is not exposed in URLs.
* get_series function was added
* get_datagroup function will be depreciated in the future versions. You may use get_series function for both series
datagroups.

> get_series function for both datagroups and series

```python
from evdspy import get_series, default_start_date_fnc, default_end_date_fnc

# datagroup `bie_gsyhgycf`
df1 = get_series("bie_gsyhgycf", cache=False, api_key="YOUR_API_KEY_HERE")

# series `TP_GSYIH01_GY_CF ...`

template = """TP_GSYIH01_GY_CF
TP_GSYIH02_GY_CF
TP_GSYIH03_GY_CF
TP_GSYIH04_GY_CF
TP_GSYIH05_GY_CF
TP_GSYIH06_GY_CF
TP_GSYIH07_GY_CF
TP_GSYIH08_GY_CF
TP_GSYIH09_GY_CF
TP_GSYIH10_GY_CF
TP_GSYIH11_GY_CF
TP_GSYIH14_GY_CF
TP_GSYIH15_GY_CF
TP_GSYIH16_GY_CF
"""
df2 = get_series(template, debug=False, cache=False)



```

```python

Expand Down Expand Up @@ -145,6 +178,7 @@ proxies = {
```python
from evdspy.main import *

# will be deprecated in future versions.
df = get_df_datagroup(
datagroup="bie_gsyhgycf",
start_date="01-01-1998",
Expand All @@ -160,6 +194,14 @@ print(df)
* The categories menu now goes only one step back as it should instead of returning.
* Fixed some verbose debug results.

### Menu

```python
from evdspy.main import menu

menu()
```

![image](https://user-images.githubusercontent.com/96650846/198966008-77302f42-f8f5-430c-962d-a988abe57bb7.png)

## Visual Menu to request data
Expand Down
221 changes: 0 additions & 221 deletions evdspy/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion evdspy/EVDSlocal/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
import evdspy
1 change: 0 additions & 1 deletion evdspy/EVDSlocal/__version__.py

This file was deleted.

4 changes: 2 additions & 2 deletions evdspy/EVDSlocal/components/evds_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DfColumnsDoesNotMatch(BaseException):
# field(default_factory=URLClass)
@dataclass
class EvdsSorgu(ABC):
""" EVDS Genel Sınıf"""
""" EVDS Genel Sınıf"""
options_: Options
session: any
series_: EvdsSeriesRequest = field(
Expand Down Expand Up @@ -243,7 +243,7 @@ def save_excel(self, file_name=None):
# */
@dataclass
class EvdsSorguSeries(EvdsSorgu):
""" Seriler §in """
""" Seriler için """
def summary(self):
if not self.check_api_key_first():
return False
Expand Down
6 changes: 3 additions & 3 deletions evdspy/EVDSlocal/index_requests/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def get_categories_data() -> str:
def get_table_header():
from rich.table import Table
table = Table(title="Categories / Kategoriler")
table.add_column("ID/Sayı", justify="right", style="cyan", no_wrap=True)
table.add_column("Title/Başlık (ENG)", style="magenta")
table.add_column("Title/Başlık (TR)", justify="right", style="green")
table.add_column("ID/Sayı", justify="right", style="cyan", no_wrap=True)
table.add_column("Title/Başlık (ENG)", style="magenta")
table.add_column("Title/Başlık (TR)", justify="right", style="green")
return table
from typing import List
import typing as t
Expand Down
2 changes: 0 additions & 2 deletions evdspy/EVDSlocal/index_requests/datagroup_individual.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ def get_datagroup_individual_with_code_helper(
options_=SingletonOptions())) # this number will be overwritten . does not matter what number
gid.create_url_first_part()
gid.add_extra_params(code=code_str)
# start_date = SingletonOptions().get_valid_value("default_start_date")
# end_date = SingletonOptions().get_valid_value("default_end_date")
if not start_date:
start_date = SingletonOptions().get_valid_value("default_start_date")
if not end_date:
Expand Down
Loading
Loading