evdspy 2.2.0__tar.gz → 2.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. {evdspy-2.2.0 → evdspy-2.2.1}/PKG-INFO +3 -4
  2. {evdspy-2.2.0 → evdspy-2.2.1}/README.md +2 -2
  3. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_v220_improvements.py +3 -3
  4. evdspy-2.2.1/evdspy/EVDSlocal/tests_main.py +6 -0
  5. evdspy-2.2.1/evdspy/__version__.py +1 -0
  6. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/skills/evdspy/SKILL.md +29 -34
  7. {evdspy-2.2.0 → evdspy-2.2.1}/pyproject.toml +2 -2
  8. evdspy-2.2.0/evdspy/EVDSlocal/tests_main.py +0 -15
  9. evdspy-2.2.0/evdspy/__version__.py +0 -1
  10. {evdspy-2.2.0 → evdspy-2.2.1}/LICENSE +0 -0
  11. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/__init__.py +0 -0
  12. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/__init__.py +0 -0
  13. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/clear_cache_folder.py +0 -0
  14. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/colors.py +0 -0
  15. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/common_imports.py +0 -0
  16. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/file_classes.py +0 -0
  17. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/files.py +0 -0
  18. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/folder_name_checks.py +0 -0
  19. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/prog.py +0 -0
  20. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/table.py +0 -0
  21. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/common/url_clean.py +0 -0
  22. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/__init__.py +0 -0
  23. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/api_params.py +0 -0
  24. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/api_params_enums.py +0 -0
  25. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/bucket_from_series.py +0 -0
  26. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/evds_files.py +0 -0
  27. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/evds_seri_files.py +0 -0
  28. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/excel_class.py +0 -0
  29. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/options_class.py +0 -0
  30. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/request_or_cache.py +0 -0
  31. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/components/url_class.py +0 -0
  32. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/config/__init__.py +0 -0
  33. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/config/apikey_class.py +0 -0
  34. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/config/config.py +0 -0
  35. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/config/credentials_file.py +0 -0
  36. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/config/dotenv.py +0 -0
  37. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/console/__init__.py +0 -0
  38. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/console/menu.py +0 -0
  39. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/console/menu_async.py +0 -0
  40. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/console/menu_logo_header.py +0 -0
  41. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/console/panel.py +0 -0
  42. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/console/proxy_for_menu.py +0 -0
  43. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/console/screen.py +0 -0
  44. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/helper/__init__.py +0 -0
  45. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/helper/print_m.py +0 -0
  46. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/__init__.py +0 -0
  47. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/categories.py +0 -0
  48. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/data_models.py +0 -0
  49. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/datagroup_individual.py +0 -0
  50. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/datagroups.py +0 -0
  51. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/datagroups_extra.py +0 -0
  52. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/datagroups_initial.py +0 -0
  53. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/df_operations.py +0 -0
  54. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/error_classes_index.py +0 -0
  55. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/get_series_indexes.py +0 -0
  56. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/get_series_indexes_exp.py +0 -0
  57. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/get_series_indexes_utils.py +0 -0
  58. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/index_classes.py +0 -0
  59. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/index_util_funcs.py +0 -0
  60. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/real_reqs_tests.py +0 -0
  61. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/Api_requester.py +0 -0
  62. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/Data_processor.py +0 -0
  63. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/Proxy_manager.py +0 -0
  64. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/Request_config.py +0 -0
  65. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/Serialize.py +0 -0
  66. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/Url_builder.py +0 -0
  67. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/Url_series.py +0 -0
  68. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/User_req_typings.py +0 -0
  69. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/User_request_utils.py +0 -0
  70. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/_Tables.py +0 -0
  71. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/index_requests/user_requests/__init__.py +0 -0
  72. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/__init__.py +0 -0
  73. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/cache_folder.py +0 -0
  74. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/cmd_line_classes.py +0 -0
  75. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/command_pictures.py +0 -0
  76. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/load_commands_.py +0 -0
  77. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/load_commands_cmds_to_load.py +0 -0
  78. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/load_modules.py +0 -0
  79. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/sample_series_content.py +0 -0
  80. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/start_args.py +0 -0
  81. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/start_options.py +0 -0
  82. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial/try_loading_initial_commands.py +0 -0
  83. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial_setup/__init__.py +0 -0
  84. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial_setup/api_key_save.py +0 -0
  85. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial_setup/initial_setups.py +0 -0
  86. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/initial_setup/setup_folders.py +0 -0
  87. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/log_classes/__init__.py +0 -0
  88. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/log_classes/log_template.py +0 -0
  89. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/main_.py +0 -0
  90. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/manual_requests/__init__.py +0 -0
  91. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/manual_requests/prepare.py +0 -0
  92. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/messages/__init__.py +0 -0
  93. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/messages/cmd_formats.py +0 -0
  94. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/messages/current_menu_message.py +0 -0
  95. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/messages/error_classes.py +0 -0
  96. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/messages/error_messages.py +0 -0
  97. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/messages/help_messages.py +0 -0
  98. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/requests_/__init__.py +0 -0
  99. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/requests_/ev_request.py +0 -0
  100. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/requests_/lower_energy.py +0 -0
  101. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/requests_/mock_req.py +0 -0
  102. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/requests_/my_cache.py +0 -0
  103. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/requests_/real_requests.py +0 -0
  104. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/requests_/request_error_classes.py +0 -0
  105. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/requests_/test_reg_result.pickle +0 -0
  106. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/__init__.py +0 -0
  107. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/populate_series.py +0 -0
  108. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/populate_series_helper.py +0 -0
  109. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/read_config_series.py +0 -0
  110. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/sample_series_content.py +0 -0
  111. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/series_creator.py +0 -0
  112. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/series_creator_on_setup.py +0 -0
  113. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/series_examples.py +0 -0
  114. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/series_format_config_funcs.py +0 -0
  115. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/series_format/stats/save_stats_of_requests.py +0 -0
  116. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/session/__init__.py +0 -0
  117. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/session/session_.py +0 -0
  118. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/setup_project/__init__.py +0 -0
  119. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/setup_project/read_config_series.py +0 -0
  120. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/setup_project/user_options_config.py +0 -0
  121. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/setup_project/user_series_config.py +0 -0
  122. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/setup_project/user_setup.py +0 -0
  123. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/setup_project/user_setup_helper.py +0 -0
  124. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/state/__init__.py +0 -0
  125. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/state/current_state.py +0 -0
  126. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/state/test_or_real.py +0 -0
  127. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/stats/__init__.py +0 -0
  128. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/stats/save_stats_of_requests.py +0 -0
  129. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/__init__.py +0 -0
  130. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/core_options_test.py +0 -0
  131. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_apikey_checks.py +0 -0
  132. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_categories.py +0 -0
  133. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_datagroups.py +0 -0
  134. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_frequency.py +0 -0
  135. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_get_proxies_env.py +0 -0
  136. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_get_series.py +0 -0
  137. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_get_series_exp.py +0 -0
  138. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_get_series_exp_cache.py +0 -0
  139. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_log_session.py +0 -0
  140. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_main_load.py +0 -0
  141. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_manual_series.py +0 -0
  142. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_multifreq_edge_cases.py +0 -0
  143. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_requests.py +0 -0
  144. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/test_user_requests.py +0 -0
  145. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/tests/testing_mock_credentials.py +0 -0
  146. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/utils/__init__.py +0 -0
  147. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/utils/github_actions.py +0 -0
  148. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/utils/utils_general.py +0 -0
  149. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/EVDSlocal/utils/utils_test.py +0 -0
  150. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/__init__.py +0 -0
  151. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/main.py +0 -0
  152. {evdspy-2.2.0 → evdspy-2.2.1}/evdspy/main_t.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: evdspy
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: A versatile interface for the 'EDDS' (EVDS) API of the Central Bank of the Republic of Türkiye (https://evds3.tcmb.gov.tr/dokumanlar). 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.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -22,7 +22,6 @@ Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Programming Language :: Python :: 3.13
23
23
  Classifier: Programming Language :: Python :: 3.14
24
24
  Classifier: Programming Language :: Python :: 3.15
25
- Classifier: Programming Language :: Python :: 3.9
26
25
  Classifier: Typing :: Typed
27
26
  Provides-Extra: jupyter
28
27
  Requires-Dist: openpyxl (>3.0.10)
@@ -71,8 +70,8 @@ Description-Content-Type: text/markdown
71
70
  It gives an AI assistant what it needs to write working evdspy code on the first try:
72
71
 
73
72
  - API key setup (`.env`, environment variable, `api_key=`, `save()`)
74
- - every `get_series` / `get_series_exp` parameter, with the allowed `frequency`, `formulas` and `aggregation` values
75
- - the output shapes (the date column is `Tarih` or `index`; formula columns get a `-N` suffix) and a `tidy()` helper that normalises them
73
+ - every `get_series` / `get_series_exp` / `get_metadata` parameter, with the allowed `frequency`, `formulas`, `aggregation`, `paginate`, and `parse_dates` options
74
+ - normalized date output (`Tarih` period-start timestamps across all frequencies, flexible `YYYY-MM-DD` / `DD-MM-YYYY` / `datetime.date` inputs, and typed exceptions)
76
75
  - checked series codes (current CPI is `TP.TUKFIY2025.GENEL`; `TP.FG.J0` is archived), datagroups (`bie_...`), recipes, and a troubleshooting table
77
76
 
78
77
  The skill is installed with the package (`pip install -U evdspy`), so you can copy it from there.
@@ -33,8 +33,8 @@
33
33
  It gives an AI assistant what it needs to write working evdspy code on the first try:
34
34
 
35
35
  - API key setup (`.env`, environment variable, `api_key=`, `save()`)
36
- - every `get_series` / `get_series_exp` parameter, with the allowed `frequency`, `formulas` and `aggregation` values
37
- - the output shapes (the date column is `Tarih` or `index`; formula columns get a `-N` suffix) and a `tidy()` helper that normalises them
36
+ - every `get_series` / `get_series_exp` / `get_metadata` parameter, with the allowed `frequency`, `formulas`, `aggregation`, `paginate`, and `parse_dates` options
37
+ - normalized date output (`Tarih` period-start timestamps across all frequencies, flexible `YYYY-MM-DD` / `DD-MM-YYYY` / `datetime.date` inputs, and typed exceptions)
38
38
  - checked series codes (current CPI is `TP.TUKFIY2025.GENEL`; `TP.FG.J0` is archived), datagroups (`bie_...`), recipes, and a troubleshooting table
39
39
 
40
40
  The skill is installed with the package (`pip install -U evdspy`), so you can copy it from there.
@@ -571,9 +571,9 @@ def test_no_pandas_warnings_during_processing(monkeypatch):
571
571
 
572
572
 
573
573
  def test_package_version_and_clean_exports():
574
- assert __version__ == "2.2.0"
575
- assert evdspy.__version__ == "2.2.0"
576
- assert config.version == "2.2.0"
574
+ assert isinstance(__version__, str) and len(__version__.split(".")) == 3
575
+ assert evdspy.__version__ == __version__
576
+ assert config.version == __version__
577
577
 
578
578
  assert hasattr(evdspy, "__all__")
579
579
  for name in (
@@ -0,0 +1,6 @@
1
+
2
+ from evdspy.EVDSlocal.tests.test_main_load import *
3
+ from evdspy.EVDSlocal.tests.test_log_session import *
4
+ from evdspy.EVDSlocal.tests.test_requests import *
5
+ from evdspy.EVDSlocal.tests.test_apikey_checks import *
6
+ from evdspy.EVDSlocal.tests.test_categories import *
@@ -0,0 +1 @@
1
+ __version__ = "2.2.1"
@@ -162,7 +162,7 @@ datagroup codes (`bie_...`) are kept as written.
162
162
 
163
163
  EVDS codes are not guessable. Ways to find them:
164
164
  1. Browse https://evds3.tcmb.gov.tr, open a series, copy its code (e.g. `TP.TUKFIY2025.GENEL`).
165
- 2. Call `get_series_exp(code).metadata` to confirm what a code is before relying on it.
165
+ 2. Call `get_metadata(code)` (evdspy ≥ 2.2.0; or `get_series_exp(code).metadata`) to confirm what a code is before relying on it.
166
166
  3. Ask the user for the code if unsure — do not invent codes.
167
167
 
168
168
  Commonly used codes (verified against EVDS metadata, Dec 2026):
@@ -181,50 +181,44 @@ Commonly used codes (verified against EVDS metadata, Dec 2026):
181
181
  | `bie_abres2` | Datagroup: CBRT reserves (gold, FX, total) | weekly |
182
182
 
183
183
  EVDS series get **rebased and archived** (metadata name ends with `(Archive)` and data stops).
184
- If a series' latest data is old, check `get_series_exp(code).metadata["SERIE.NAME.ENG"]` and
184
+ If a series' latest data is old, check `get_metadata(code)["SERIE.NAME.ENG"]` and
185
185
  look for the replacement series/datagroup on the EVDS site.
186
186
 
187
187
  ## 6. Recipes
188
188
 
189
- **`tidy` — clean, datetime-indexed frame for analysis or plotting** (works for every frequency;
190
- each period is dated at its start: `2023-S2` → 2023-07-01, `2023` → 2023-01-01)
191
- ```python
192
- import pandas as pd
193
-
194
- def tidy(df: pd.DataFrame) -> pd.DataFrame:
195
- """Normalise any get_series output: DatetimeIndex named 'date', series columns only."""
196
- date_col = "Tarih" if "Tarih" in df.columns else df.columns[0] # 'Tarih' or 'index'
197
- s = df[date_col].astype(str).str.strip()
198
- s = (s.str.replace(r"^(\d{4})$", r"\1-01-01", regex=True) # annual: 2023
199
- .str.replace(r"^(\d{4})-S1$", r"\1-01-01", regex=True) # semiannual: 2023-S1
200
- .str.replace(r"^(\d{4})-S2$", r"\1-07-01", regex=True)
201
- .str.replace(r"^(\d{4})-Q(\d)$", r"\1Q\2", regex=True)) # quarterly: 2023-Q1
202
- out = df.drop(columns=[date_col])
203
- out.index = pd.Index(
204
- [pd.Period(x, "Q").start_time if "Q" in x else pd.to_datetime(x, dayfirst=x[2:3] == "-", errors="coerce")
205
- for x in s], name="date")
206
- return out.drop(columns=[c for c in ("YEARWEEK", "UNIXTIME") if c in out.columns])
207
- ```
189
+ In evdspy ≥ 2.2.0, `get_series` parses `Tarih` to period-start `Timestamp`s across every frequency and aggregation (`basic=False` returns a `DatetimeIndex` directly), and automatically paginates past the 1,000-row cap — no custom date-parsing or paging boilerplate needed.
208
190
 
209
191
  **Annual CPI inflation, monthly, to Excel**
210
192
  ```python
211
193
  from evdspy import get_series
212
- df = tidy(get_series("TP.TUKFIY2025.GENEL", start_date="01-01-2020", frequency="monthly",
213
- formulas="year_to_year_percent_change", cache=True))
194
+
195
+ df = get_series("TP.TUKFIY2025.GENEL", start_date="2020-01-01", frequency="monthly",
196
+ formulas="year_to_year_percent_change", cache=True).set_index("Tarih")
214
197
  df = df.rename(columns={"TP.TUKFIY2025.GENEL-3": "cpi_yoy"}).dropna()
215
198
  df.to_excel("cpi_yoy.xlsx")
216
199
  ```
217
200
 
218
201
  **Monthly average USD/TRY and EUR/TRY**
219
202
  ```python
220
- df = tidy(get_series(("TP.DK.USD.A.YTL", "TP.DK.EUR.A.YTL"),
221
- start_date="01-01-2020", frequency="monthly", aggregation="avg"))
203
+ df = get_series(("TP.DK.USD.A.YTL", "TP.DK.EUR.A.YTL"),
204
+ start_date="2020-01-01", frequency="monthly", aggregation="avg",
205
+ basic=False) # DatetimeIndex named 'Tarih'
206
+ ```
207
+
208
+ **Inspect series metadata without downloading observations**
209
+ ```python
210
+ from evdspy import get_metadata
211
+
212
+ meta = get_metadata(("TP.TUKFIY2025.GENEL", "TP.DK.USD.A.YTL"))
213
+ print(meta[["SERIE.CODE", "START.DATE", "END.DATE", "UNIT", "FREQUENCY.STR"]])
222
214
  ```
223
215
 
224
216
  **Data + metadata for several tables**
225
217
  ```python
218
+ from evdspy import get_series_exp
219
+
226
220
  for group in ("bie_enfbek", "bie_abres2"):
227
- res = get_series_exp(group, cache=True, start_date="01-01-2015")
221
+ res = get_series_exp(group, cache=True, start_date="2015-01-01")
228
222
  res.to_excel(f"{group}.xlsx")
229
223
  ```
230
224
 
@@ -237,24 +231,25 @@ cfg = get_series("TP.TUKFIY2025.GENEL", frequency="monthly", debug=True) # prin
237
231
 
238
232
  | Symptom | Likely cause / fix |
239
233
  |---|---|
240
- | Returns `None`/`False`, or no data | Missing/invalid API key (section 1); wrong series code; date range with no data |
241
- | Series stops at an old date | Series was archived/rebased — see section 5 |
242
- | Empty or unexpected dates | Dates given as `YYYY-MM-DD` or `MM-DD-YYYY` — must be `DD-MM-YYYY` |
234
+ | `EvdsAuthError` (or `None`/`False` on ≤ 2.1.5) | Missing/invalid `EVDS_API_KEY` (section 1) |
235
+ | `EvdsEmptyDataError` | Wrong series code or date range with no observations |
236
+ | `EvdsRequestError` | Network failure, EVDS HTTP 4xx/5xx, or non-JSON response |
237
+ | Series stops at an old date | Series was archived/rebased — check `get_metadata(code)` (section 5) |
238
+ | `ValueError: Invalid date ...` | Use `"YYYY-MM-DD"`, `"DD-MM-YYYY"`, or `datetime.date` (avoid `MM-DD-YYYY`; evdspy ≤ 2.1.5 requires `"DD-MM-YYYY"` only) |
243
239
  | `ValueError: Unknown frequency ...` | Use a name/alias/code from section 4 |
244
- | Data is daily when monthly was expected | evdspy ≤ 2.1.4 with a misspelled `frequency` (silently fell back to daily) — upgrade or use the canonical name |
240
+ | Data is daily when monthly was expected | evdspy ≤ 2.1.4 with a misspelled `frequency` (silently fell back to daily) — upgrade (`pip install -U evdspy`) or use the canonical name |
245
241
  | `AssertionError` | `formulas`/`aggregation` tuple length ≠ number of series |
246
- | `KeyError: 'Tarih'` or a series code | Date column is `index` with monthly/quarterly `frequency`; formula columns have a `-N` suffix — use `tidy()` |
242
+ | `KeyError` on a series code | Formula columns have a `-N` suffix (e.g. `TP.TUKFIY2025.GENEL-3`); on evdspy ≤ 2.1.5 the date column was `index` for monthly/quarterly |
247
243
  | Latest months are `NaN` for some series | Series are published with different lags; `dropna()` per column, not across all |
248
- | Annual dates are `1970-01-01 00:00:00.000002023` | `pd.to_datetime` read the integer year as nanoseconds — use `tidy()` |
249
244
  | Stale numbers | `cache=True` served an old response — rerun with `cache=False` or call `clear_cache()` |
250
245
  | Timeouts behind corporate network | Pass `proxy=`/`proxies=` or set `http_proxy`/`https_proxy` in `.env` |
251
246
 
252
247
  ## 8. Guidance for the agent
253
248
 
254
249
  - Prefer `cache=True` during exploratory/iterative work to avoid hammering the API.
255
- - Always pass dates as `DD-MM-YYYY` strings.
250
+ - Pass dates as ISO `"YYYY-MM-DD"`, `"DD-MM-YYYY"`, or `datetime.date` (evdspy ≥ 2.2.0; use `"DD-MM-YYYY"` only if targeting evdspy ≤ 2.1.5).
256
251
  - Never print, log, or commit the user's API key; read it from `.env`/environment.
257
252
  - When the user describes data in words ("Turkish core inflation", "policy rate"), look up or ask
258
- for the exact EVDS code instead of guessing; confirm via `get_series_exp(...).metadata`.
253
+ for the exact EVDS code instead of guessing; confirm via `get_metadata(code)`.
259
254
  - Related projects by the same author: `evdschat` (natural-language/RAG layer on top of evdspy),
260
255
  `evdscpp` (C++ client).
@@ -3,7 +3,7 @@
3
3
 
4
4
  [tool.poetry]
5
5
  name = "evdspy"
6
- version = "2.2.0"
6
+ version = "2.2.1"
7
7
  description = "A versatile interface for the 'EDDS' (EVDS) API of the Central Bank of the Republic of Türkiye (https://evds3.tcmb.gov.tr/dokumanlar). 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."
8
8
  authors = ["Sermet Pekin <sermet.pekin@gmail.com>"]
9
9
  license = "MIT"
@@ -18,11 +18,11 @@ classifiers = [
18
18
  "Operating System :: Microsoft :: Windows",
19
19
  "Operating System :: MacOS",
20
20
  "Operating System :: POSIX :: Linux",
21
- "Programming Language :: Python :: 3.9",
22
21
  "Programming Language :: Python :: 3.10",
23
22
  "Programming Language :: Python :: 3.11",
24
23
  "Programming Language :: Python :: 3.12",
25
24
  "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
26
26
  "Typing :: Typed",
27
27
  ]
28
28
  [tool.poetry.dependencies]
@@ -1,15 +0,0 @@
1
-
2
- # from evdspy.EVDSlocal.tests.test_evds_classes import *
3
- # from evdspy.EVDSlocal.tests.test_evds_classes import *
4
- from evdspy.EVDSlocal.tests.test_main_load import *
5
- # from evdspy.EVDSlocal.tests.test_project_setup import *
6
- from evdspy.EVDSlocal.tests.test_log_session import *
7
- from evdspy.EVDSlocal.tests.test_requests import *
8
- from evdspy.EVDSlocal.tests.test_apikey_checks import *
9
- from evdspy.EVDSlocal.tests.test_categories import *
10
- # from evdspy.EVDSlocal.tests.test_main_cmd import *
11
- # from evdspy.EVDSlocal.tests.test_datagroups import *
12
- #-------------- not necessary for now
13
- #
14
- # from .tests.test_series_files import *
15
- # from .tests.test_manual_series import *
@@ -1 +0,0 @@
1
- __version__ = "2.2.0"
File without changes
File without changes
File without changes
File without changes
File without changes