{
"info": {
"author": "Dwayne R. Crooks",
"author_email": "me@dwaynecrooks.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: Public Domain",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries"
],
"description": "**What is this?**\n\nA Python API and script for the retrieval and storage of Play Whe results from the `National Lotteries Control Board `_ (NLCB) website.\n\n**Why was this written?**\n\nShort answer:\n Because it can be written.\n\nSlightly longer answer:\n Because I was looking for a small Python project to work on for practice.\n\n**Which version do I have?**\n\nVersion 0.7.1.\n\nAfter installing the package you can also check the version number by issuing\nthe following command at a shell prompt.\n\n::\n\n $ playwhe.py --version\n\n**What has changed from version 0.6 to 0.7?**\n\nThe `NLCB `_ website occasionally has incorrect results.\nMore often than not the draw numbers are the culprit. However, if we order\nthe data by date, then by period and then by draw number we can mitigate any\nill effects this bad data causes. This version attempts to fix the problem by\ndoing just that.\n\n**What has changed from version 0.5 to 0.6?**\n\nOn July 6th, 2015 the `NLCB `_ started drawing Play Whe\n4 times per day. The script was changed to correctly scrape the 4:00 PM draw.\n\nAlso, previously the \"period\" stored with the results was changed from a\nnumeric format \"(1, 2, 3)\" to a string format \"('EM', 'AM', 'AN', 'PM')\".\n\n**What has changed from version 0.4 to 0.5?**\n\nAround February 21st, 2015 the NLCB took down their website to redesign\nand rebuild it. They changed the service URL along with the format of\nthe HTML results. This required an update to the parser to ensure that\nthe results could still be retrieved in the future.\n\n**What has changed from version 0.3 to 0.4?**\n\nOn November 21st, 2011 the NLCB started drawing Play Whe 3 times per day.\nDue to this change the display format of the results retrieved via their\nwebsite was changed. Since this program simply scrapes the HTML off their\nresults page, I needed to update the script to work with the new format.\n\nHence, the logic for retrieving and storing the Play Whe results have\nchanged. However, the interface to perform these operations have not.\n\n**How do I install it?**\n\n::\n\n $ tar xvzf playwhe-0.7.1.tar.gz\n $ cd playwhe-0.7.1\n $ sudo python setup.py install\n\n**What are some of the things it can do?**\n\nYou can get Play Whe results directly from NLCB using the playwhe module.\n\n::\n\n import playwhe\n p = playwhe.PlayWhe()\n\n # retrieve and display all the results for the month of April in the year 2011\n print \"\\n\\n\".join(map(lambda r: r.prettyprint(), p.results_for_month(2011, 4)))\n\n # retrieve and display the results for April 2nd, 2011\n print \"\\n\\n\".join(map(lambda r: r.prettyprint(), p.results_for_day(2011, 4, 2)))\n\n # retrieve and display the three most recent results\n print \"\\n\\n\".join(map(lambda r: r.prettyprint(), p.results()))\n\nYou can get Play Whe results directly from NLCB using the playwhe.py script.\n\n::\n\n $ echo Retrieve and display the results for the month of April in the year 2011\n $ playwhe.py --pretty-print --date=2011-04\n $ playwhe.py -p -d 2011-04\n\n $ echo Retrieve and display the results for April 2nd, 2011\n $ playwhe.py --pretty-print --date=2011-04-02\n $ playwhe.py -p -d 2011-04-02\n\n $ echo Retrieve and display the three most recent results\n $ playwhe.py --pretty-print\n $ playwhe.py -p\n\nYou can keep a local copy of previous Play Whe results in an SQLite database.\n\n::\n\n $ echo Create and initialize a Play Whe database\n $ playwhe.py --createdb=\"/home//playwhe.db\"\n $ playwhe.py -c \"/home//playwhe.db\"\n\n $ echo Update the Play Whe database\n $ playwhe.py --updatedb=\"/home//playwhe.db\"\n $ playwhe.py -u \"/home//playwhe.db\"\n\n $ echo Update the Play Whe database and keep a log\n $ playwhe.py -u \"/home//playwhe.db\" 2>> \"/home//playwhe.log\"\n\n**Where can I get the latest development version of this project?**\n\nThis project is hosted on GitHub at https://github.com/dwayne/playwhe.\n\n::\n\n $ git clone git://github.com/dwayne/playwhe.git\n\n**What liscense does this project use?**\n\nThis project is in the public domain. Do with it whatever you want.\n\n**Where can I get help?**\n\n::\n\n > import playwhe\n > help(playwhe)\n\n $ playwhe.py --help\n\nYou can also get help, report bugs, make suggestions or ask thoughtful\nquestions by contacting Dwayne R. Crooks via email at .",
"description_content_type": null,
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://pypi.python.org/pypi/playwhe",
"keywords": "",
"license": "License :: Public Domain",
"maintainer": "",
"maintainer_email": "",
"name": "playwhe",
"package_url": "https://pypi.org/project/playwhe/",
"platform": "",
"project_url": "https://pypi.org/project/playwhe/",
"project_urls": {
"Homepage": "http://pypi.python.org/pypi/playwhe"
},
"release_url": "https://pypi.org/project/playwhe/0.7.1/",
"requires_dist": null,
"requires_python": "",
"summary": "A Python API and script for retrieving and storing Play Whe results.",
"version": "0.7.1"
},
"last_serial": 4953362,
"releases": {
"0.2": [
{
"comment_text": "",
"digests": {
"md5": "794f2ad6e455f41677c946601b3716e0",
"sha256": "ca003a26df9eac44276257a9dabbef64bafaa6be1393b4afe5048cc1dd80e61f"
},
"downloads": -1,
"filename": "playwhe-0.2.tar.gz",
"has_sig": false,
"md5_digest": "794f2ad6e455f41677c946601b3716e0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4267,
"upload_time": "2011-06-25T18:04:36",
"url": "https://files.pythonhosted.org/packages/d3/f6/4aa81d172b371afd793ed5ab0b29dc19f8bcb9d136a3335ead31c0c43a5c/playwhe-0.2.tar.gz"
}
],
"0.3": [
{
"comment_text": "",
"digests": {
"md5": "96d52bb9566be7afa83d06dc00bf763a",
"sha256": "79bea68ae0dec498eda201ea29ccd902f52a926c3b1a9ed710e5c6b24ba9420d"
},
"downloads": -1,
"filename": "playwhe-0.3.tar.gz",
"has_sig": false,
"md5_digest": "96d52bb9566be7afa83d06dc00bf763a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6237,
"upload_time": "2011-06-29T06:07:49",
"url": "https://files.pythonhosted.org/packages/92/18/2878cac22965fc9774623be68fe6aaa752f7d245d6221e07f219e752030f/playwhe-0.3.tar.gz"
}
],
"0.4": [
{
"comment_text": "",
"digests": {
"md5": "d5035c8da4f1618261958bd8bb3c270c",
"sha256": "df8e722252ed304b73356ebcdd9bbf505b246c9a2d10d12df9c2a47f597efce0"
},
"downloads": -1,
"filename": "playwhe-0.4.tar.gz",
"has_sig": false,
"md5_digest": "d5035c8da4f1618261958bd8bb3c270c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6631,
"upload_time": "2011-12-12T11:00:20",
"url": "https://files.pythonhosted.org/packages/d8/4e/2ea48e8692d1e5611f825c3dc685fa891f3d6c0dcffeff2a1e439e0e17ac/playwhe-0.4.tar.gz"
}
],
"0.5": [
{
"comment_text": "",
"digests": {
"md5": "42364396284cfddea16421661c2a3581",
"sha256": "7315d037e4188df008bb1ec90d934acf0fd4e3f4aa8903f4d651fb11129ccb19"
},
"downloads": -1,
"filename": "playwhe-0.5.tar.gz",
"has_sig": false,
"md5_digest": "42364396284cfddea16421661c2a3581",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6595,
"upload_time": "2015-03-29T13:44:34",
"url": "https://files.pythonhosted.org/packages/e5/83/10a10c4171176ec27b27762291cb4563c4ccc737cf4e567cc5da4496e45a/playwhe-0.5.tar.gz"
}
],
"0.6": [
{
"comment_text": "",
"digests": {
"md5": "bd7e217ee7496bc8ef08966a664dba38",
"sha256": "fabf690c689a5f97ae1d49916cb802ca1f316561ae0c8d315c1c79fc385788e3"
},
"downloads": -1,
"filename": "playwhe-0.6.tar.gz",
"has_sig": false,
"md5_digest": "bd7e217ee7496bc8ef08966a664dba38",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6727,
"upload_time": "2015-07-29T11:01:09",
"url": "https://files.pythonhosted.org/packages/d2/d7/666888fb2335e06b798de376df9bccc4660161fdaafee3d76c35eae2a800/playwhe-0.6.tar.gz"
}
],
"0.7": [],
"0.7.1": [
{
"comment_text": "",
"digests": {
"md5": "7b9f9e42fb48efd20ff65bc6d8359875",
"sha256": "1149fadd7b54797ba8279e0a89ae1dcd5c21d751c453b90e191739d53672f8a8"
},
"downloads": -1,
"filename": "playwhe-0.7.1.tar.gz",
"has_sig": false,
"md5_digest": "7b9f9e42fb48efd20ff65bc6d8359875",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7018,
"upload_time": "2017-12-10T19:13:41",
"url": "https://files.pythonhosted.org/packages/7d/47/52fbd03ceda7854fd2b1b674ef0ec1b6e5345c22c998119d15f985195c94/playwhe-0.7.1.tar.gz"
}
],
"0.8.0a1": [
{
"comment_text": "",
"digests": {
"md5": "59da33452dcff7db57a79f7b161f5bcd",
"sha256": "56a08689ce0dcb2fab274c3465e68d8899934e88c6ed71e38c61d73e30cd095c"
},
"downloads": -1,
"filename": "playwhe-0.8.0a1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "59da33452dcff7db57a79f7b161f5bcd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11219,
"upload_time": "2018-10-20T23:59:58",
"url": "https://files.pythonhosted.org/packages/89/a5/6bf46f5f8f62ca33c1c31c2d2f17f400335b4c4089c164e229463ea34421/playwhe-0.8.0a1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "1a2c5a8de8424775f437a15a8f538b36",
"sha256": "7609503e51817225b75e29334fe3b70eea385a0b0f1bdb5d6856a2d375546944"
},
"downloads": -1,
"filename": "playwhe-0.8.0a1.tar.gz",
"has_sig": false,
"md5_digest": "1a2c5a8de8424775f437a15a8f538b36",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10630,
"upload_time": "2018-10-21T00:00:17",
"url": "https://files.pythonhosted.org/packages/78/e5/ca3370115c1fe68b5f1650e77067ac9d0f8d490c33650588669cf1f83fc7/playwhe-0.8.0a1.tar.gz"
}
],
"0.8.0a2": [
{
"comment_text": "",
"digests": {
"md5": "3ddf3b1f58f1c71e9dd87c0efa06cdb3",
"sha256": "a9b69999d66995c4849849b8167bf319c9396b7fdbfb6fd0c0c6b83b841b31e5"
},
"downloads": -1,
"filename": "playwhe-0.8.0a2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3ddf3b1f58f1c71e9dd87c0efa06cdb3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 12563,
"upload_time": "2019-03-18T10:27:59",
"url": "https://files.pythonhosted.org/packages/df/95/b16c1bb52d1942bc49187b9421a1cf042f76dffbd361227b2c20dd6b6912/playwhe-0.8.0a2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "cb09217e94e88af0e6f52d0c74ffda89",
"sha256": "cacc08a9bc111a5e2a542c653d5f569f69bb5012c3b41cd2723058d6a49e87ce"
},
"downloads": -1,
"filename": "playwhe-0.8.0a2.tar.gz",
"has_sig": false,
"md5_digest": "cb09217e94e88af0e6f52d0c74ffda89",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13454,
"upload_time": "2019-03-18T10:28:00",
"url": "https://files.pythonhosted.org/packages/a0/1c/f4156e80e00608327c56239e69accef9cc55b5fe9e321b744f5956cae450/playwhe-0.8.0a2.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "7b9f9e42fb48efd20ff65bc6d8359875",
"sha256": "1149fadd7b54797ba8279e0a89ae1dcd5c21d751c453b90e191739d53672f8a8"
},
"downloads": -1,
"filename": "playwhe-0.7.1.tar.gz",
"has_sig": false,
"md5_digest": "7b9f9e42fb48efd20ff65bc6d8359875",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7018,
"upload_time": "2017-12-10T19:13:41",
"url": "https://files.pythonhosted.org/packages/7d/47/52fbd03ceda7854fd2b1b674ef0ec1b6e5345c22c998119d15f985195c94/playwhe-0.7.1.tar.gz"
}
]
}