{ "info": { "author": "M. Olcay TERCANLI", "author_email": "molcaytercanli@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "# Milli Piyango Package\n\nThis is a package for getting lottery related data from [Milli Piyango](http://www.mpi.gov.tr/).\n\n## Installation\n```bash\npip install milli-piyango\n```\n\n## Usage\n\nFor most case:\n```python\nfrom milli_piyango import MilliPiyango as mP\n\n\n# Getting available game list\nprint(mP.GAME_LIST)\n\n# Get available drawing dates for given games\n# Available game names\n# - mP.PIYANGO\n# - mP.SAYISAL\n# - mP.SANS_TOPU\n# - mP.ON_NUMARA\n# - mP.SUPER_LOTO\ndates = mP().get_draw_dates(mP.ON_NUMARA)\n# [ {'tarih': '20180730', 'tarihView': '30-07-2018'}, ...\u00a0]\n\n# Get game result for given date\nlast_drawing_result = mP().get_result(mP.ON_NUMARA, dates[0]['tarih']) # For the last drawing result\n\n# Winner numbers in order \nprint(last_drawing_result['data']['rakamlarNumaraSirasi'])\n#\u00a0'08 - 11 - 15 - 16 - 17 - 18 - 20 - 25 - 28 - 30 - 34 - 39 - 40 - 43 - 48 - 53 - 59 - 64 - 66 - 67 - 71 - 79'\n```\n\nIf you want to search a number (ticket number) is winner or not in `Piyango` game;\n```python\nfrom milli_piyango import MilliPiyango as mP\n\n\nmP().get_result_for_piyango(\"20180729\", \"179604\") # First parameter is Date, second one is Ticket Number\n# {'kazandi': True, 'tip': '$6_RAKAM', 'ikramiye': 2500000, 'kacBildi': 6, 'numara': '179604', 'biletNo': '179604'}\nmP().get_result_for_piyango(\"20180729\", \"178630\")\n# {'kazandi': True, 'tip': 'SON_BES_RAKAM', 'ikramiye': 400, 'kacBildi': 5, 'numara': '78630', 'biletNo': '178630'}\nmP().get_result_for_piyango(\"20180729\", \"189604\")\n# {'kazandi': True, 'tip': 'AMORTI', 'ikramiye': 24, 'kacBildi': 1, 'numara': '4', 'biletNo': '189604'}\nmP().get_result_for_piyango(\"20180729\", \"123452\")\n#\u00a0{'kazandi': False, 'biletNo': '123452'}\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/molcay/milli-piyango", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "milli-piyango", "package_url": "https://pypi.org/project/milli-piyango/", "platform": "", "project_url": "https://pypi.org/project/milli-piyango/", "project_urls": { "Homepage": "https://github.com/molcay/milli-piyango" }, "release_url": "https://pypi.org/project/milli-piyango/1.1.0/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "A package for getting lottery data from mpi.gov.tr(Turkish Lottery)", "version": "1.1.0" }, "last_serial": 4430579, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "903212c3413d9f34f976c2071d06b5b6", "sha256": "56513a3f38e419e1ced5e29b0e2eb01329976a85ae845d498f3781e729dfc6c6" }, "downloads": -1, "filename": "milli_piyango-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "903212c3413d9f34f976c2071d06b5b6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3821, "upload_time": "2018-08-02T18:41:37", "url": "https://files.pythonhosted.org/packages/14/ad/c577684afefe9d65ad6c1eebf461a093bf9915062c59e161c4b155e743bb/milli_piyango-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "69583c56470232b7fb2ac98ecfadc6ed", "sha256": "d56a1b36575e3e35a5dd62ab075e9f6b9565dd24077b09d725fb3ab41b79ab42" }, "downloads": -1, "filename": "milli_piyango-1.0.0.tar.gz", "has_sig": false, "md5_digest": "69583c56470232b7fb2ac98ecfadc6ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3312, "upload_time": "2018-08-02T18:41:38", "url": "https://files.pythonhosted.org/packages/e6/eb/2d5640cd05300f90efa527709db4da151af4c1334c67aa36aafa0df13217/milli_piyango-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "9ff5174e14898223b940d6fa7eae39f9", "sha256": "a3b1219f6bac54ee3d0fb1d9b2c6e65cf83b84e9f151702809a351a38185983e" }, "downloads": -1, "filename": "milli_piyango-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9ff5174e14898223b940d6fa7eae39f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3839, "upload_time": "2018-08-03T08:42:30", "url": "https://files.pythonhosted.org/packages/93/6a/6cd031f2660bc3d9e35964c4850935f868f3a84c552c31f186a9c72c822d/milli_piyango-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0a4392cd77fa453c65dfb0f502352c3d", "sha256": "1a6d476c099e69484bde236d9edd30471499981091fc892ce52df2c341b31d1a" }, "downloads": -1, "filename": "milli_piyango-1.0.1.tar.gz", "has_sig": false, "md5_digest": "0a4392cd77fa453c65dfb0f502352c3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3343, "upload_time": "2018-08-03T08:42:31", "url": "https://files.pythonhosted.org/packages/62/ac/24865222259c5cd9fae14d40561046ff1f2caff18759260f71ca8b4ecd71/milli_piyango-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "961ff14b343589f229da2403219d1689", "sha256": "c93c7edb01e8f1e2408a971f90f95ba9fc290a21828dc7bcdd750c084b8aea5d" }, "downloads": -1, "filename": "milli_piyango-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "961ff14b343589f229da2403219d1689", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3838, "upload_time": "2018-10-30T08:24:28", "url": "https://files.pythonhosted.org/packages/c8/6b/7b8e332f55e0c13dda0e871de62011b6623f034c4bfdb2ad2bce169734f4/milli_piyango-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f1eb678d2958418dfbbac062e79068d", "sha256": "426b925795b588d94e084c4852b4ff51d3cf249f1fb61a58d7153cba75ce1042" }, "downloads": -1, "filename": "milli_piyango-1.1.0.tar.gz", "has_sig": false, "md5_digest": "7f1eb678d2958418dfbbac062e79068d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3355, "upload_time": "2018-10-30T08:24:29", "url": "https://files.pythonhosted.org/packages/1e/07/623cc7c522ec8e933bb8c22bd3c1a4307566c11309515b2c0065686eec30/milli_piyango-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "961ff14b343589f229da2403219d1689", "sha256": "c93c7edb01e8f1e2408a971f90f95ba9fc290a21828dc7bcdd750c084b8aea5d" }, "downloads": -1, "filename": "milli_piyango-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "961ff14b343589f229da2403219d1689", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3838, "upload_time": "2018-10-30T08:24:28", "url": "https://files.pythonhosted.org/packages/c8/6b/7b8e332f55e0c13dda0e871de62011b6623f034c4bfdb2ad2bce169734f4/milli_piyango-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f1eb678d2958418dfbbac062e79068d", "sha256": "426b925795b588d94e084c4852b4ff51d3cf249f1fb61a58d7153cba75ce1042" }, "downloads": -1, "filename": "milli_piyango-1.1.0.tar.gz", "has_sig": false, "md5_digest": "7f1eb678d2958418dfbbac062e79068d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3355, "upload_time": "2018-10-30T08:24:29", "url": "https://files.pythonhosted.org/packages/1e/07/623cc7c522ec8e933bb8c22bd3c1a4307566c11309515b2c0065686eec30/milli_piyango-1.1.0.tar.gz" } ] }