From db0d70e5b8afedbd5b136aa369f2d76e896614f5 Mon Sep 17 00:00:00 2001 From: Sermet Pekin Date: Sun, 21 Apr 2024 21:29:45 +0300 Subject: [PATCH] v1.1.22 --- .github/.DS_Store | Bin 6148 -> 6148 bytes .../user_requests/user_requests_2.py | 134 ------------------ evdspy/__version__.py | 3 +- pyproject.toml | 2 +- 4 files changed, 2 insertions(+), 137 deletions(-) delete mode 100644 evdspy/EVDSlocal/index_requests/user_requests/user_requests_2.py diff --git a/.github/.DS_Store b/.github/.DS_Store index d812c30075e970b73798d3dea9a3ccf357d84405..291662d328a12d033af8f7ced3a150734a9b36af 100644 GIT binary patch delta 28 kcmZoMXffDe$jJC%atx!yWG_Z8*1LAvStm9}GOiW_0Eg`fcK`qY delta 26 icmZoMXffDe$jJC^atx!yWG_ap$#sl!n~NAHi2(p}ga{}A diff --git a/evdspy/EVDSlocal/index_requests/user_requests/user_requests_2.py b/evdspy/EVDSlocal/index_requests/user_requests/user_requests_2.py deleted file mode 100644 index 409df77..0000000 --- a/evdspy/EVDSlocal/index_requests/user_requests/user_requests_2.py +++ /dev/null @@ -1,134 +0,0 @@ -""" -class UrlSeries: - @property - def domain(self) -> str: - return "https://evds2.tcmb.gov.tr/service/evds" - @property - def alias(self): - return "series=" - - - -""" -from evdspy.EVDSlocal.index_requests.user_requests import UrlSeries, UrlBuilder - - -class CategoriesMetadata(UrlSeries): - def get_url(self): - return f"{self.domain}/categories/type=json" - - @property - def url(self): - return self.get_url() - - -class DataGroup_info(): - def __init__(self, table_name): - self.table_name = table_name - - -class DatagroupsMetadata(UrlSeries): - def __init__(self, data_group: DataGroup_info): - self.data_group = data_group - - def get_url(self): - # "https://evds2.tcmb.gov.tr/service/evds/datagroups/mode=1&code=bie_yssk&type=json" - # self.table_name = self.table_name # "bie_yssk" - return f"{self.domain}/datagroups/mode=1&code={self.data_group.table_name}&type=json" - - @property - def url(self): - return self.get_url() - - -def test_CategoriesMetadata(capsys): - with capsys.disabled(): - d = DataGroup_info("bie_yssk") - assert d.table_name == "bie_yssk" - a = DatagroupsMetadata(d) - print(a.url) - b = CategoriesMetadata() - print(b.url) - - -class UrlBuilderMetadata(UrlBuilder): - ... - - def get_url(self): - ... - - def categories(self): - """""" - # 4.1 Category Service - # https://evds2.tcmb.gov.tr/service/evds/categories/type=json - - def datagroups_mode_1(self, name="bie_yssk"): - """ - https://evds2.tcmb.gov.tr/service/evds/datagroups/mode=1&code=bie_yssk&type=json - :return: - """ - ... - - def datagroups_mode_2(self, code=1): - """ - https://evds2.tcmb.gov.tr/service/evds/datagroups/mode=2&code=2&type=json - :return: - """ - ... - - def data_group_service(self): - """data_group_service""" - """ - The data group listing is based on the following filtering: - mode=0 Returns all data groups under all categories. - mode=1 Returns data group information according to a data group selection. - mode=2 Returns all data groups information according to a category - mode 1 - code=data group code - mode 2 - code=category code - https://evds2.tcmb.gov.tr/service/evds/datagroups/mode=1&code=bie_yssk&type=json - https://evds2.tcmb.gov.tr/service/evds/datagroups/mode=2&code=2&type=xml - DATAGROUP_CODE Data Group Code - DATAGROUP_NAME Data Group Name (Turkish) - DATAGROUP_NAME_ENG Data Group Name (English) - START_DATE Data Start Date - END_DATE Date End Date - FREQUENCY Original Frequency - FREQUENCY_STR Original Frequency Desc. - DATASOURCE Data Source (Turkish) - DATASOURCE_ENG Data Source (English) - METADATA_LINK Metadata Link (Turkish) - METADATA_LINK_ENG Metadata Link (English) - REV_POL_LINK Revision Policy Link (Turkish) - REV_POL_LINK_ENG Revision Policy Link (English) - APP_CHA_LINK Application Change Link (Turkish) - APP_CHA_LINK_ENG Application Change Link (English) - NOTE Information Note (Turkish) - NOTE_ENG Information Note (English) - """ - # 4.2 Data Group Service - - -from abc import ABC, abstractmethod - - -class GuideMetadata: - def get_meta(self): - ... - - def display_meta(self): - ... - - -class UrlBuilderMetadataCategories(UrlBuilderMetadata, GuideMetadata): - """ - UrlBuilderMetadataCategories - - """ - - -class UrlBuilderMetadataDataGroup(UrlBuilderMetadata, GuideMetadata): - """ - UrlBuilderMetadataCategories - """ diff --git a/evdspy/__version__.py b/evdspy/__version__.py index 4e5c486..9ba3708 100644 --- a/evdspy/__version__.py +++ b/evdspy/__version__.py @@ -1,2 +1 @@ - -#1.1.21 \ No newline at end of file +#1.1.22 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c94e322..79d810b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "evdspy" -version = "1.1.21" +version = "1.1.22" 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 "] license = "MIT"