A Python library to check and analyse Euromillions results
(Last result: 2018/12/21)
Usage
import pyeuromil as em
from datetime import date
# List of draw dates of September 2018
for result in em.euro_draw_dates(date(2018, 9, 1), date(2018, 9, 30)):
print(result)
2018-09-28
2018-09-25
2018-09-21
2018-09-18
2018-09-14
2018-09-11
2018-09-07
2018-09-04
import pyeuromil as em
from datetime import date
# first week of october 2018 results
result_list = em.euro_results(date(2018, 10, 1), date(2018, 10, 7))
for result in result_list:
print(result)
Result(date=datetime.date(2018, 10, 5), numbers=[8, 16, 24, 26, 35], stars=[3, 11])
Result(date=datetime.date(2018, 10, 2), numbers=[7, 17, 29, 37, 45], stars=[3, 11])
from pyeuromil import Plays, Grid
from datetime import date
import pprint
pp = pprint.PrettyPrinter(indent=2)
plays = Plays()
game = Grid([15, 18, 32, 35, 40],[1, 7], star_plus=True)
plays.append(game, start=date(2018,9,28), end=date(2018,10,30), tuesday=True, friday=True)
for play in plays:
pp.pprint(Plays.play_summary(play))
[ { 'date': datetime.date(2018, 10, 23),
'numbers': [32],
'ranking': 0,
'ranking_star_plus': 0,
'stars': []},
{ 'date': datetime.date(2018, 10, 19),
'numbers': [],
'ranking': 0,
'ranking_star_plus': 0,
'stars': []},
{ 'date': datetime.date(2018, 10, 16),
'numbers': [15, 40],
'ranking': 12,
'ranking_star_plus': 9,
'stars': [1]},
{ 'date': datetime.date(2018, 10, 12),
'numbers': [],
'ranking': 0,
'ranking_star_plus': 0,
'stars': []},
{ 'date': datetime.date(2018, 10, 9),
'numbers': [],
'ranking': 0,
'ranking_star_plus': 0,
'stars': []},
{ 'date': datetime.date(2018, 10, 5),
'numbers': [35],
'ranking': 0,
'ranking_star_plus': 0,
'stars': []},
{ 'date': datetime.date(2018, 10, 2),
'numbers': [],
'ranking': 0,
'ranking_star_plus': 0,
'stars': []},
{ 'date': datetime.date(2018, 9, 28),
'numbers': [],
'ranking': 0,
'ranking_star_plus': 0,
'stars': []}]
Installation
Install and update using pip:
pip install pyeuromil
Documentation
Documentation is available at ReadTheDocs
Compatibility
python >= 3.6
Licence
MIT License
Metadata
Release files for pyeuromil 0.2.20181221
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyeuromil-0.2.20181221.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyeuromil-0.2.20181221-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / pyeuromil-0.2.20181221.tar.gz
| Download URL | pyeuromil-0.2.20181221.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bb8fe597821c2cb100639da5d4dd36eb977b7e1991dd777eaa1c47d9ec0f2c1
|
|
BLAKE2b-256 checksum How to use checksums |
683c77b016cbb7d298be6c93141f2719182495cdb222acafc7faeae2ac24cee8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Release files / pyeuromil-0.2.20181221-py3-none-any.whl
| Download URL | pyeuromil-0.2.20181221-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e59cc5138bd4f687d59e5ef6323a4e084f3492cf70844d1e3f6f2e564449904
|
|
BLAKE2b-256 checksum How to use checksums |
016c066ae77781d6f1322e4c47e52099131840502df5c73f0361560c91c670f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|