# -*- coding: utf-8 -*-
from setuptools import setup

packages = \
['osu_data_csv']

package_data = \
{'': ['*']}

install_requires = \
['click>=8.1.3,<9.0.0',
 'numpy>=1.24.2,<2.0.0',
 'pandas>=1.5.3,<2.0.0',
 'tqdm>=4.64.1,<5.0.0',
 'wget>=3.2,<4.0']

entry_points = \
{'console_scripts': ['osu-data-csv = osu_data_csv.main:main']}

setup_kwargs = {
    'name': 'osu-data-csv',
    'version': '0.1.0',
    'description': 'Downloads, the converts the .sql from data.ppy.sh into .csvs',
    'long_description': '[![Upload files to Release (Monthly)](https://github.com/Eve-ning/data_ppy_sh_to_csv/actions/workflows/monthly_retrieval.yml/badge.svg)](https://github.com/Eve-ning/data_ppy_sh_to_csv/actions/workflows/monthly_retrieval.yml)\n# Data PPY CSV Retrieval\n\nRetrieve data from the data ppy dump as CSV files.\n\n# :exclamation: Important\n\nI have been given permission to upload the script, however, not the data. \n\nThus, if **you** want to upload the data elsewhere, please contact ppy through contact@ppy.sh.\n\n```\nAll data provided here is done so with the intention of it being used for statistical analysis\nand testing osu! subsystems.\n\nPermission is NOT implicitly granted to deploy this in production use of any kind.\nShould you wish to publicly use/expose the data provided here, please contact me first at contact@ppy.sh.\n\nPlease see https://github.com/ppy/osu-performance for more information.\n\nThanks,\nppy\n```\n\n## Executing the Script\n\n1) Set up\n```bash\ngit clone https://github.com/Eve-ning/data_ppy_sh_to_csv.git\ncd data_ppy_sh_to_csv\npython -m pip install tables\npython -m pip install -r requirements.txt\n```\n\n2) Run the script\n```bash\npython osu_data_csv/main.py\n```\n\nA series of prompts should show up.\n\n2) (Alternatively) run in a single command\n\n```bash\npython osu_data_csv/main.py \\\n  -y "2022_12" \\\n  -d "mania" \\\n  -s "1000" \\\n  -l "data" \\\n  -c "N" \\\n  -q "Y"\n```\n\n## Arguments\n\n| Option           | Option (Shorthand) | Desc.                                                                  | Example                                      |\n|------------------|--------------------|------------------------------------------------------------------------|----------------------------------------------|\n| --year_month     | -y                 | Dataset Year and Month. Will fail if doesn\'t exist anymore             | `2022_10`                                    |\n| --mode           | -d                 | Gamemode. [\'catch\', \'mania\', \'osu\', \'taiko\']                           | `mania`                                      |\n| --set            | -s                 | Dataset of Top 1K or 10K players. [\'1000\', \'10000\']                    | `1000`                                       |\n| --dl_dir         | -l                 | Directory to download to. Best if empty. Can be not created.           | `data/`                                      |\n| --cleanup        | -c                 | Whether to delete unused files after conversion. [\'Y\', \'N\']            | `N`                                          |\n| --bypass_confirm | -q                 | Whether to bypass confirmation of downloaded and new files. [\'Y\', \'N\'] | `N`                                          |\n\n### SQL Names\n\nIt\'s set to retrieve the following:\n\n```\nosu_user_stats_<MODE>.sql\nosu_scores_<MODE>_high.sql\nosu_beatmap_difficulty.sql\nosu_beatmaps.sql\n```\n\n## Output\n\nThis will generate a few files. You\'d want to retrieve the `.csv`.\n\n```\n- main.py \n- <dl_dir>/\n  - 202X_XX_01_performance_<MODE>_top_<SET>.tar.bz2 (*)\n  - 202X_XX_01_performance_<MODE>_top_<SET>/\n    - csv/\n      - osu_user_stats_<MODE>.csv\n      - _.csv\n      - ...\n    - osu_user_stats_<MODE>.sql (*)\n    - _.sql (*)\n    - ...\n```\n\n- `(*)` files are deleted if `cleanup` is enabled.\n',
    'author': 'Eve-ning',
    'author_email': 'dev_evening@hotmail.com',
    'maintainer': 'None',
    'maintainer_email': 'None',
    'url': 'None',
    'packages': packages,
    'package_data': package_data,
    'install_requires': install_requires,
    'entry_points': entry_points,
    'python_requires': '>=3.7,<4.0',
}


setup(**setup_kwargs)
