evdspy


Nameevdspy JSON
Version 1.1.25 PyPI version JSON
download
home_pagehttps://github.com/SermetPekin/evdspy-repo
SummaryA 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.
upload_time2024-06-09 12:01:01
maintainerNone
docs_urlNone
authorSermet Pekin
requires_python<4.0,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements certifi charset-normalizer commonmark idna pandas Pygments python-dateutil pytz requests rich six urllib3 openpyxl numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
[![Python package](https://github.com/SermetPekin/evdspy-repo/actions/workflows/python-package.yml/badge.svg)](https://github.com/SermetPekin/evdspy-repo/actions/workflows/python-package.yml) [![PyPI](https://img.shields.io/pypi/v/evdspy)](https://img.shields.io/pypi/v/evdspy) [![Supported Python Versions](https://img.shields.io/pypi/pyversions/evdspy)](https://pypi.org/project/evdspy/) [![Downloads](https://static.pepy.tech/badge/evdspy)](https://pepy.tech/project/evdspy) [![Downloads](https://static.pepy.tech/badge/evdspy/month)](https://pepy.tech/project/evdspy) [![Downloads](https://pepy.tech/badge/evdspy/week)](https://pepy.tech/project/evdspy)
## Documentation
[Documentation](https://evdspy-repo.readthedocs.io/en/latest/)
## evdspy
### Updated on this version
    * 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
    * [soon will be deprecated] **get_datagroup** function will be depreciated in the future versions.
    **get_series** function will be able to handle both series and datagroups.
> ! get_series function can be used for both datagroups and series
### api_key
api_key will be saved to a file if it was given to get_series function. It will ignore
later calls if it was saved before.
Alternatively save function can be used.
#### save("MyApiKey"):
    Program will store your api key in your environment in a safe folder
    called APIKEY_FOLDER
    and only use it when you run a new request which was not requested
    recently depending on your cache preference.
.
```python
from evdspy import save
save("MyApiKey")
```
```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
from evdspy import get_series, default_start_date_fnc, default_end_date_fnc
index1 = "TP.ODEMGZS.BDTTOPLAM", "TP.ODEMGZS.ABD"
index2 = """
    TP.ODEMGZS.BDTTOPLAM #
    TP.ODEMGZS.ABD #
    """
cache = True
df = get_series(index1,
                frequency="monthly",
                start_date=default_start_date_fnc(),
                end_date=default_end_date_fnc(),
                aggregation=("avg",),
                cache=cache,
                debug=False)
print(df)
```
### Some more examples
```python
from evdspy import get_series
template = '''
    TP.ODEMGZS.BDTTOPLAM
    TP.ODEMGZS.ABD
    TP.ODEMGZS.ARJANTIN
    '''
df = get_series(index=template)
df1 = get_series(index=template, start_date="01-01-2000", frequency="monthly")
df2a = get_series(index='TP.ODEMGZS.BDTTOPLAM', start_date="01-01-2000", frequency="monthly", cache=True)
df2b = get_series(index=('TP.ODEMGZS.BDTTOPLAM', 'TP.ODEMGZS.ARJANTIN',),
                  start_date="01-01-2000",
                  frequency="monthly",
                  cache=True)
df3 = get_series(template, start_date="01-01-2000", frequency="monthly", aggregation="avg")
df4 = get_series(template, start_date="01-01-2000", frequency="monthly", aggregation=("avg", "min", "avg"))
df5 = get_series(template, proxy="http://proxy.example.com:80")
df6 = get_series(template, proxies={
    'http': "http://proxy.example.com:80",
    'https': "http://proxy.example.com:80",
})
```
## get_series
all parameters of get_series function
```python
from typing import Union
import pandas as pd
def get_series(
        index: Union[str, tuple[str]],
        start_date: str = '01-01-2000',
        end_date: str = '01-01-2100',
        frequency: str = None,  # | monthly | weekly | annually | semimonthly | semiannually | business
        formulas: str = None,  # | level | percentage_change | difference |
        #   | year_to_year_percent_change | year_to_year_differences |
        aggregation: str = None,  # | avg      |min    | max    | first    | last    |    sum
        cache: bool = False,
        proxy: str = None,
        proxies: dict = None,
        debug: bool = False
) -> pd.DataFrame:
    ...
"""proxy
proxy = "http://proxy.example.com:80"
"""
"""proxies
proxies = {
            'http':  "http://proxy.example.com:80",
            'https':  "http://proxy.example.com:80",
        }
"""
```
### 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
![image](https://user-images.githubusercontent.com/96650846/200393634-6d1d95cc-6fb5-4f2a-aff8-f444265df814.png)
![image](https://user-images.githubusercontent.com/96650846/200393889-915a1908-bff9-41fc-b549-d83b1cf9dafd.png)
### About
***evdspy*** is an open source python interface which helps you make efficient requests by caching results (storing a
dict using hashable parameters in order to avoid redundant requests), it provides a user friendly
menu to ask data from the institution's API service.
It is a Python interface to make requests from (CBRT) EVDS API Server. Fast, efficient and user friendly solution.
Caches results to avoid redundant requests. Creates excel files reading configuration text file that can be easily
created from the menu or console. Provides visual menu to the user. It is extendable and importable for user's own
python projects.
#### [Please see the disclaimer below](#Disclaimer)
### installation
    pip install evdspy
### importing
    from evdspy import *
    check()
    get()
    help_evds()
or
    import evdspy as ev
    ev.check()
    ev.get()
    ev.help_evds()
### menu
    from evdspy import *
    menu()
or
    import evdspy as ev
    ev.menu()
    Menu function will display a friendly menu to setup project, creating output folders and some setup files to
    create some set of series to make a request and download from EVDS server save your api key to get data from EVDS.
    Than it will convert this data to a pandas dataframe and create some folders on your local area.
### menu()
![image](https://user-images.githubusercontent.com/96650846/198966008-77302f42-f8f5-430c-962d-a988abe57bb7.png)
![image](https://user-images.githubusercontent.com/96650846/198966318-35a8ba8b-68e9-46f9-827e-cf06377ec960.png)
## OPTION 1
_________________________________
#### FROM THE CONSOLE
    create_series_file()
or
    csf()
or from selection menu choose create series file (config_series.cfg) option.
With this command program will create file similar to below. You may later add new series info
or modify this file or delete and create a new on from menu or console using commands summarized in this file.
#### config_series.cfg content example
    #Series_config_file
    E V D S P Y  _  C O N F I G  _  F I L E  ---------------------------------------------
    #
    # This file will be used by evdspy package (python) in order to help updating
    # your series.
    # Script will be adding this file when you setup a new project.
    # Deleting or modifying its content may require to setup configuration from the beginning
    # ----------------------------------------------------------------------------------------
    #
    #About alternative params
    # ----------------------------------------------------------------------------------------
              Frequencies
              -----------------
              Daily: 1
              Business: 2
              Weekly(Friday): 3
              Twicemonthly: 4
              Monthly: 5
              Quarterly: 6
              Semiannual: 7
              Annual: 8
              `Formulas`s
              -----------------
              Level: 0
              Percentage change: 1
              Difference: 2
              Year-to-year Percent Change: 3
              Year-to-year Differences: 4
              Percentage Change Compared to End-of-Previous Year: 5
              Difference Compared to End-of-Previous Year : 6
              Moving Average: 7
              Moving Sum: 8
              Aggregate types
              -----------------
              Average: avg,
              Minimum: min,
              Maximum: max
              Beginning: first,
              End: last,
              Cumulative: sum
    #Begin_series
    ---Series---------------------------------
    foldername : visitors\annual
    abs_path : visitors\annual
    subject  : visitors
    prefix   : EVPY_
    frequency : 8 # annually
    formulas : 0 # Level
    aggregateType : avg
    ------------SERIES CODES------------------
    TP.ODEMGZS.BDTTOPLAM
    TP.ODEMGZS.ABD
    TP.ODEMGZS.ARJANTIN
    TP.ODEMGZS.BREZILYA
    TP.ODEMGZS.KANADA
    TP.ODEMGZS.KOLOMBIYA
    TP.ODEMGZS.MEKSIKA
    TP.ODEMGZS.SILI
    ------------/SERIES CODES------------------
    ---/Series---------------------------------
    --++--
    ---Series---------------------------------
    foldername : visitors\monthly
    abs_path : C:\Users\User\SeriesData\visitors\monthly
    subject  : visitors
    prefix   : EVPY_
    frequency : 5 # Monthly
    formulas : 0 # Level
    aggregateType : avg
    ------------SERIES CODES------------------
    TP.ODEMGZS.BDTTOPLAM
    TP.ODEMGZS.ABD
    TP.ODEMGZS.ARJANTIN
    TP.ODEMGZS.BREZILYA
    TP.ODEMGZS.KANADA
    TP.ODEMGZS.KOLOMBIYA
    TP.ODEMGZS.MEKSIKA
    TP.ODEMGZS.SILI
    ------------/SERIES CODES------------------
    ---/Series---------------------------------
    --++--
### initial commands
    from evdspy import *
#### help_evds():
    see a list of popular commands of this package to create setup folder and files, and request data.
        'easy_setup',
    'setup',
    'setup_series',
    "setup_series_steps",
    'help_evds',
    'check',
    'get',
### help
    'h',
    'help_evdspy',
    'help_',
### series file
    'create_series_file',
    'csf',
### options file
    'create_options_file',
    'cof'
### menu , console
    'console',
    'menu',
### version
    'version',
### api key
    'save_apikey',
    'save',
### cache
    'remove_cache',
#### check():
    check setup and create required folders and see current installation status.
#### setup()   :
    creates folders and files
    ____Folders_______________
            `pickles`
                will be used to store some request results to ovoid redundant requests from the EVDS api
            `SeriesData`
                to save results of requests or caches to an excel file using information on user option files
    ____Files_______________
            `options.cfg`
                a text file consisting global user options such as start date, end date and caching period.
            `config_series.cfg`
                this file consists information regarding individual sets of series. From the menu user can add
            new series that will be requesting from the server. Program will produce on for example and this file
            can be modified and new sets of series can be added following the example format.
    from evdspy.main import *
    setup_now()
#### get():
    # this will check for your current series.txt file
    # if proper data series codes are given it will either download them
    # or use the latest cache from your local environment
    # to provide other cache options such as nocache / daily / hourly you may change your
    # defaults or give arguments such as
        get()
#### save("MyApiKey"):
    Program will store your api key in your environment in a safe folder
    called APIKEY_FOLDER
    and only use it when you run a new request which was not requested
    recently depending on your cache preference.
.
       save("MyApiKey")
#### save()
        When you call it without any argument, program will ask for your key and do the same
    above
#### create_series_file()  or csf() :
--------------------------------
    # creates example `config_series.cfg` file on your work environment. evdspy input file (EIF) formatted
    # you may modify it according to your preferences.
--------------------------------
    create_series_file()
    # or
    csf()
## Options File
-------------------------------------------------------------------
          #Global Options File (options.cfg)
          # G L O B A L   O P T I O N S   F I L E   -------------------------------------------------------
          cache_freq : daily
          gl_date_start : 01-01-2010
          gl_date_end : 01-12-2030
### `create_options`
    create_options()
## OPTION 2
_________________________________
#### FROM THE MENU
### menu()
![image](https://user-images.githubusercontent.com/96650846/198966008-77302f42-f8f5-430c-962d-a988abe57bb7.png)
> > *checking*....
![image](https://user-images.githubusercontent.com/96650846/200316924-de6c5d4c-e9d1-4122-a49b-45e1a4b5923b.png)
## OPTION 3
_________________________________
#### FROM THE OS COMMAND LINE
(Windows Command line / Linux Terminal / Mac Terminal) ( > , $ , $ as $ )
![image](https://user-images.githubusercontent.com/96650846/198182696-c5bbe840-a9cd-45b5-806f-ee9b7d0e88b8.png)
    $ evdspy setup
    --------------
        creates initial folders for your environment to save data and caches
    $ evdspy menu
    --------------
        Launces evdspy and loads the menu
    $ evdspy create series
    --------------
        Creates series file (leaves untouched if exists)
    $ evdspy help
    --------------
        shows help and some documentation from command line
    $ evdspy create options
    --------------
        creates options on the current folder
    $ evdspy get
    --------------
        makes request from EVDS API and creates excel files regarding information on your series file
    $ evdspy save
    --------------
        asks for your api key to save a file in your environment named `APIKEY_FOLDER`
## How to get an API key?
***Get a CBRT EVDS API key***
https://evds2.tcmb.gov.tr/index.php?/evds/login
#### Main page of CBRT EVDS API
https://evds2.tcmb.gov.tr
#### CBRT EVDS API Docs
https://evds2.tcmb.gov.tr/index.php?/evds/userDocs
### About
***evdspy*** is an open source python interface which helps you make efficient requests by caching results (storing a
dict using hashable parameters in order to avoid redundant requests), it provides a user friendly
menu to ask data from the institution's API service.
#### Disclaimer
    We would like inform you that evdspy is not an official package affiliated or endorsed by the CBRT institution.
    It is an open source project with MIT LICENSE therefore following the rules of its
    general MIT LICENSE you may use this interface without creator's permission, extend it or write your own modules
    by importing evdspy's modules, classes or functions to request data from the mentioned API Service following the
    institution's rules and parameters.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SermetPekin/evdspy-repo",
    "name": "evdspy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Sermet Pekin",
    "author_email": "sermet.pekin@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/bc/b0/519d220865cd4fa85f4abb5d356724d37b58fa03da8df0286020c342b238/evdspy-1.1.25.tar.gz",
    "platform": null,
    "description": "\n[![Python package](https://github.com/SermetPekin/evdspy-repo/actions/workflows/python-package.yml/badge.svg)](https://github.com/SermetPekin/evdspy-repo/actions/workflows/python-package.yml) [![PyPI](https://img.shields.io/pypi/v/evdspy)](https://img.shields.io/pypi/v/evdspy) [![Supported Python Versions](https://img.shields.io/pypi/pyversions/evdspy)](https://pypi.org/project/evdspy/) [![Downloads](https://static.pepy.tech/badge/evdspy)](https://pepy.tech/project/evdspy) [![Downloads](https://static.pepy.tech/badge/evdspy/month)](https://pepy.tech/project/evdspy) [![Downloads](https://pepy.tech/badge/evdspy/week)](https://pepy.tech/project/evdspy)\n## Documentation\n[Documentation](https://evdspy-repo.readthedocs.io/en/latest/)\n## evdspy\n### Updated on this version\n    * The API key parameter has been moved to the HTTP header as required by recent updates from EDDS data provider.\n    This change enhances security by ensuring that sensitive information is not exposed in URLs.\n    * `get_series` function was added\n    * [soon will be deprecated] **get_datagroup** function will be depreciated in the future versions.\n    **get_series** function will be able to handle both series and datagroups.\n> ! get_series function can be used for both datagroups and series\n### api_key\napi_key will be saved to a file if it was given to get_series function. It will ignore\nlater calls if it was saved before.\nAlternatively save function can be used.\n#### save(\"MyApiKey\"):\n    Program will store your api key in your environment in a safe folder\n    called APIKEY_FOLDER\n    and only use it when you run a new request which was not requested\n    recently depending on your cache preference.\n.\n```python\nfrom evdspy import save\nsave(\"MyApiKey\")\n```\n```python\nfrom evdspy import get_series, default_start_date_fnc, default_end_date_fnc\n# datagroup `bie_gsyhgycf`\ndf1 = get_series(\"bie_gsyhgycf\", cache=False, api_key=\"YOUR_API_KEY_HERE\")\n# series    `TP_GSYIH01_GY_CF ...`\ntemplate = \"\"\"TP_GSYIH01_GY_CF\n        TP_GSYIH02_GY_CF\n        TP_GSYIH03_GY_CF\n        TP_GSYIH04_GY_CF\n        TP_GSYIH05_GY_CF\n        TP_GSYIH06_GY_CF\n        TP_GSYIH07_GY_CF\n        TP_GSYIH08_GY_CF\n        TP_GSYIH09_GY_CF\n        TP_GSYIH10_GY_CF\n        TP_GSYIH11_GY_CF\n        TP_GSYIH14_GY_CF\n        TP_GSYIH15_GY_CF\n        TP_GSYIH16_GY_CF\n\"\"\"\ndf2 = get_series(template, debug=False, cache=False)\n```\n```python\nfrom evdspy import get_series, default_start_date_fnc, default_end_date_fnc\nindex1 = \"TP.ODEMGZS.BDTTOPLAM\", \"TP.ODEMGZS.ABD\"\nindex2 = \"\"\"\n    TP.ODEMGZS.BDTTOPLAM #\n    TP.ODEMGZS.ABD #\n    \"\"\"\ncache = True\ndf = get_series(index1,\n                frequency=\"monthly\",\n                start_date=default_start_date_fnc(),\n                end_date=default_end_date_fnc(),\n                aggregation=(\"avg\",),\n                cache=cache,\n                debug=False)\nprint(df)\n```\n### Some more examples\n```python\nfrom evdspy import get_series\ntemplate = '''\n    TP.ODEMGZS.BDTTOPLAM\n    TP.ODEMGZS.ABD\n    TP.ODEMGZS.ARJANTIN\n    '''\ndf = get_series(index=template)\ndf1 = get_series(index=template, start_date=\"01-01-2000\", frequency=\"monthly\")\ndf2a = get_series(index='TP.ODEMGZS.BDTTOPLAM', start_date=\"01-01-2000\", frequency=\"monthly\", cache=True)\ndf2b = get_series(index=('TP.ODEMGZS.BDTTOPLAM', 'TP.ODEMGZS.ARJANTIN',),\n                  start_date=\"01-01-2000\",\n                  frequency=\"monthly\",\n                  cache=True)\ndf3 = get_series(template, start_date=\"01-01-2000\", frequency=\"monthly\", aggregation=\"avg\")\ndf4 = get_series(template, start_date=\"01-01-2000\", frequency=\"monthly\", aggregation=(\"avg\", \"min\", \"avg\"))\ndf5 = get_series(template, proxy=\"http://proxy.example.com:80\")\ndf6 = get_series(template, proxies={\n    'http': \"http://proxy.example.com:80\",\n    'https': \"http://proxy.example.com:80\",\n})\n```\n## get_series\nall parameters of get_series function\n```python\nfrom typing import Union\nimport pandas as pd\ndef get_series(\n        index: Union[str, tuple[str]],\n        start_date: str = '01-01-2000',\n        end_date: str = '01-01-2100',\n        frequency: str = None,  # | monthly | weekly | annually | semimonthly | semiannually | business\n        formulas: str = None,  # | level | percentage_change | difference |\n        #   | year_to_year_percent_change | year_to_year_differences |\n        aggregation: str = None,  # | avg      |min    | max    | first    | last    |    sum\n        cache: bool = False,\n        proxy: str = None,\n        proxies: dict = None,\n        debug: bool = False\n) -> pd.DataFrame:\n    ...\n\"\"\"proxy\nproxy = \"http://proxy.example.com:80\"\n\"\"\"\n\"\"\"proxies\nproxies = {\n            'http':  \"http://proxy.example.com:80\",\n            'https':  \"http://proxy.example.com:80\",\n        }\n\"\"\"\n```\n### Menu\n```python\nfrom evdspy.main import menu\nmenu()\n```\n![image](https://user-images.githubusercontent.com/96650846/198966008-77302f42-f8f5-430c-962d-a988abe57bb7.png)\n## Visual Menu to request data\n![image](https://user-images.githubusercontent.com/96650846/200393634-6d1d95cc-6fb5-4f2a-aff8-f444265df814.png)\n![image](https://user-images.githubusercontent.com/96650846/200393889-915a1908-bff9-41fc-b549-d83b1cf9dafd.png)\n### About\n***evdspy*** is an open source python interface which helps you make efficient requests by caching results (storing a\ndict using hashable parameters in order to avoid redundant requests), it provides a user friendly\nmenu to ask data from the institution's API service.\nIt is a Python interface to make requests from (CBRT) EVDS API Server. Fast, efficient and user friendly solution.\nCaches results to avoid redundant requests. Creates excel files reading configuration text file that can be easily\ncreated from the menu or console. Provides visual menu to the user. It is extendable and importable for user's own\npython projects.\n#### [Please see the disclaimer below](#Disclaimer)\n### installation\n    pip install evdspy\n### importing\n    from evdspy import *\n    check()\n    get()\n    help_evds()\nor\n    import evdspy as ev\n    ev.check()\n    ev.get()\n    ev.help_evds()\n### menu\n    from evdspy import *\n    menu()\nor\n    import evdspy as ev\n    ev.menu()\n    Menu function will display a friendly menu to setup project, creating output folders and some setup files to\n    create some set of series to make a request and download from EVDS server save your api key to get data from EVDS.\n    Than it will convert this data to a pandas dataframe and create some folders on your local area.\n### menu()\n![image](https://user-images.githubusercontent.com/96650846/198966008-77302f42-f8f5-430c-962d-a988abe57bb7.png)\n![image](https://user-images.githubusercontent.com/96650846/198966318-35a8ba8b-68e9-46f9-827e-cf06377ec960.png)\n## OPTION 1\n_________________________________\n#### FROM THE CONSOLE\n    create_series_file()\nor\n    csf()\nor from selection menu choose create series file (config_series.cfg) option.\nWith this command program will create file similar to below. You may later add new series info\nor modify this file or delete and create a new on from menu or console using commands summarized in this file.\n#### config_series.cfg content example\n    #Series_config_file\n    E V D S P Y  _  C O N F I G  _  F I L E  ---------------------------------------------\n    #\n    # This file will be used by evdspy package (python) in order to help updating\n    # your series.\n    # Script will be adding this file when you setup a new project.\n    # Deleting or modifying its content may require to setup configuration from the beginning\n    # ----------------------------------------------------------------------------------------\n    #\n    #About alternative params\n    # ----------------------------------------------------------------------------------------\n              Frequencies\n              -----------------\n              Daily: 1\n              Business: 2\n              Weekly(Friday): 3\n              Twicemonthly: 4\n              Monthly: 5\n              Quarterly: 6\n              Semiannual: 7\n              Annual: 8\n              `Formulas`s\n              -----------------\n              Level: 0\n              Percentage change: 1\n              Difference: 2\n              Year-to-year Percent Change: 3\n              Year-to-year Differences: 4\n              Percentage Change Compared to End-of-Previous Year: 5\n              Difference Compared to End-of-Previous Year : 6\n              Moving Average: 7\n              Moving Sum: 8\n              Aggregate types\n              -----------------\n              Average: avg,\n              Minimum: min,\n              Maximum: max\n              Beginning: first,\n              End: last,\n              Cumulative: sum\n    #Begin_series\n    ---Series---------------------------------\n    foldername : visitors\\annual\n    abs_path : visitors\\annual\n    subject  : visitors\n    prefix   : EVPY_\n    frequency : 8 # annually\n    formulas : 0 # Level\n    aggregateType : avg\n    ------------SERIES CODES------------------\n    TP.ODEMGZS.BDTTOPLAM\n    TP.ODEMGZS.ABD\n    TP.ODEMGZS.ARJANTIN\n    TP.ODEMGZS.BREZILYA\n    TP.ODEMGZS.KANADA\n    TP.ODEMGZS.KOLOMBIYA\n    TP.ODEMGZS.MEKSIKA\n    TP.ODEMGZS.SILI\n    ------------/SERIES CODES------------------\n    ---/Series---------------------------------\n    --++--\n    ---Series---------------------------------\n    foldername : visitors\\monthly\n    abs_path : C:\\Users\\User\\SeriesData\\visitors\\monthly\n    subject  : visitors\n    prefix   : EVPY_\n    frequency : 5 # Monthly\n    formulas : 0 # Level\n    aggregateType : avg\n    ------------SERIES CODES------------------\n    TP.ODEMGZS.BDTTOPLAM\n    TP.ODEMGZS.ABD\n    TP.ODEMGZS.ARJANTIN\n    TP.ODEMGZS.BREZILYA\n    TP.ODEMGZS.KANADA\n    TP.ODEMGZS.KOLOMBIYA\n    TP.ODEMGZS.MEKSIKA\n    TP.ODEMGZS.SILI\n    ------------/SERIES CODES------------------\n    ---/Series---------------------------------\n    --++--\n### initial commands\n    from evdspy import *\n#### help_evds():\n    see a list of popular commands of this package to create setup folder and files, and request data.\n        'easy_setup',\n    'setup',\n    'setup_series',\n    \"setup_series_steps\",\n    'help_evds',\n    'check',\n    'get',\n### help\n    'h',\n    'help_evdspy',\n    'help_',\n### series file\n    'create_series_file',\n    'csf',\n### options file\n    'create_options_file',\n    'cof'\n### menu , console\n    'console',\n    'menu',\n### version\n    'version',\n### api key\n    'save_apikey',\n    'save',\n### cache\n    'remove_cache',\n#### check():\n    check setup and create required folders and see current installation status.\n#### setup()   :\n    creates folders and files\n    ____Folders_______________\n            `pickles`\n                will be used to store some request results to ovoid redundant requests from the EVDS api\n            `SeriesData`\n                to save results of requests or caches to an excel file using information on user option files\n    ____Files_______________\n            `options.cfg`\n                a text file consisting global user options such as start date, end date and caching period.\n            `config_series.cfg`\n                this file consists information regarding individual sets of series. From the menu user can add\n            new series that will be requesting from the server. Program will produce on for example and this file\n            can be modified and new sets of series can be added following the example format.\n    from evdspy.main import *\n    setup_now()\n#### get():\n    # this will check for your current series.txt file\n    # if proper data series codes are given it will either download them\n    # or use the latest cache from your local environment\n    # to provide other cache options such as nocache / daily / hourly you may change your\n    # defaults or give arguments such as\n        get()\n#### save(\"MyApiKey\"):\n    Program will store your api key in your environment in a safe folder\n    called APIKEY_FOLDER\n    and only use it when you run a new request which was not requested\n    recently depending on your cache preference.\n.\n       save(\"MyApiKey\")\n#### save()\n        When you call it without any argument, program will ask for your key and do the same\n    above\n#### create_series_file()  or csf() :\n--------------------------------\n    # creates example `config_series.cfg` file on your work environment. evdspy input file (EIF) formatted\n    # you may modify it according to your preferences.\n--------------------------------\n    create_series_file()\n    # or\n    csf()\n## Options File\n-------------------------------------------------------------------\n          #Global Options File (options.cfg)\n          # G L O B A L   O P T I O N S   F I L E   -------------------------------------------------------\n          cache_freq : daily\n          gl_date_start : 01-01-2010\n          gl_date_end : 01-12-2030\n### `create_options`\n    create_options()\n## OPTION 2\n_________________________________\n#### FROM THE MENU\n### menu()\n![image](https://user-images.githubusercontent.com/96650846/198966008-77302f42-f8f5-430c-962d-a988abe57bb7.png)\n> > *checking*....\n![image](https://user-images.githubusercontent.com/96650846/200316924-de6c5d4c-e9d1-4122-a49b-45e1a4b5923b.png)\n## OPTION 3\n_________________________________\n#### FROM THE OS COMMAND LINE\n(Windows Command line / Linux Terminal / Mac Terminal) ( > , $ , $ as $ )\n![image](https://user-images.githubusercontent.com/96650846/198182696-c5bbe840-a9cd-45b5-806f-ee9b7d0e88b8.png)\n    $ evdspy setup\n    --------------\n        creates initial folders for your environment to save data and caches\n    $ evdspy menu\n    --------------\n        Launces evdspy and loads the menu\n    $ evdspy create series\n    --------------\n        Creates series file (leaves untouched if exists)\n    $ evdspy help\n    --------------\n        shows help and some documentation from command line\n    $ evdspy create options\n    --------------\n        creates options on the current folder\n    $ evdspy get\n    --------------\n        makes request from EVDS API and creates excel files regarding information on your series file\n    $ evdspy save\n    --------------\n        asks for your api key to save a file in your environment named `APIKEY_FOLDER`\n## How to get an API key?\n***Get a CBRT EVDS API key***\nhttps://evds2.tcmb.gov.tr/index.php?/evds/login\n#### Main page of CBRT EVDS API\nhttps://evds2.tcmb.gov.tr\n#### CBRT EVDS API Docs\nhttps://evds2.tcmb.gov.tr/index.php?/evds/userDocs\n### About\n***evdspy*** is an open source python interface which helps you make efficient requests by caching results (storing a\ndict using hashable parameters in order to avoid redundant requests), it provides a user friendly\nmenu to ask data from the institution's API service.\n#### Disclaimer\n    We would like inform you that evdspy is not an official package affiliated or endorsed by the CBRT institution.\n    It is an open source project with MIT LICENSE therefore following the rules of its\n    general MIT LICENSE you may use this interface without creator's permission, extend it or write your own modules\n    by importing evdspy's modules, classes or functions to request data from the mentioned API Service following the\n    institution's rules and parameters.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A versatile interface for the 'EDDS' (EVDS) API of the Central Bank of the Republic of T\u00c3\u00bcrkiye (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.",
    "version": "1.1.25",
    "project_urls": {
        "Documentation": "https://evdspy-repo.readthedocs.io",
        "Homepage": "https://github.com/SermetPekin/evdspy-repo"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e42326884f43df6ebc2cdc25c1bd3ab0c90b614910abc6ac1007714f0612dce4",
                "md5": "023b4d8fa3dbaa1ea76385103edfd0c3",
                "sha256": "0ca97da917621acd7123f522eed599fdf2395100888d333bb58c3b415b19ec24"
            },
            "downloads": -1,
            "filename": "evdspy-1.1.25-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "023b4d8fa3dbaa1ea76385103edfd0c3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 127349,
            "upload_time": "2024-06-09T12:00:58",
            "upload_time_iso_8601": "2024-06-09T12:00:58.582294Z",
            "url": "https://files.pythonhosted.org/packages/e4/23/26884f43df6ebc2cdc25c1bd3ab0c90b614910abc6ac1007714f0612dce4/evdspy-1.1.25-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bcb0519d220865cd4fa85f4abb5d356724d37b58fa03da8df0286020c342b238",
                "md5": "9caac7a2f936509b30aac3fdf6de92e7",
                "sha256": "d368da0bae984ff96bcc9edf12858d5d4affbf760d8102b9434139e211eb1cee"
            },
            "downloads": -1,
            "filename": "evdspy-1.1.25.tar.gz",
            "has_sig": false,
            "md5_digest": "9caac7a2f936509b30aac3fdf6de92e7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 91942,
            "upload_time": "2024-06-09T12:01:01",
            "upload_time_iso_8601": "2024-06-09T12:01:01.750084Z",
            "url": "https://files.pythonhosted.org/packages/bc/b0/519d220865cd4fa85f4abb5d356724d37b58fa03da8df0286020c342b238/evdspy-1.1.25.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-09 12:01:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SermetPekin",
    "github_project": "evdspy-repo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2023.7.22"
                ]
            ]
        },
        {
            "name": "charset-normalizer",
            "specs": [
                [
                    "==",
                    "2.1.1"
                ]
            ]
        },
        {
            "name": "commonmark",
            "specs": [
                [
                    "==",
                    "0.9.1"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    ">=",
                    "3.4"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    ">=",
                    "0.19.2"
                ]
            ]
        },
        {
            "name": "Pygments",
            "specs": [
                [
                    ">=",
                    "2.13.0"
                ]
            ]
        },
        {
            "name": "python-dateutil",
            "specs": [
                [
                    ">=",
                    "2.8.2"
                ]
            ]
        },
        {
            "name": "pytz",
            "specs": [
                [
                    ">=",
                    "2022.2.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.28.1"
                ]
            ]
        },
        {
            "name": "rich",
            "specs": [
                [
                    ">=",
                    "12.5.1"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    ">=",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    ">=",
                    "1.26.12"
                ]
            ]
        },
        {
            "name": "openpyxl",
            "specs": [
                [
                    ">=",
                    "3.0.10"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.5.0"
                ]
            ]
        }
    ],
    "lcname": "evdspy"
}
        
Elapsed time: 0.25159s