Skip to main content

pyeuromil

PyPI-Status Py-Versions Git-RepoSize Black

Travis-Status Last-Commit Codecov RTDimg

A Python library to check and analyse Euromillions results
(Last result: 2021/12/03)

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

Authors

pyeuromil was written by Acpirience.

Metadata

Release files for pyeuromil 0.2.20211203

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyeuromil 0.2.20211203
File Size Uploaded
pyeuromil-0.2.20211203.tar.gz 19.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyeuromil 0.2.20211203
File Interpreter ABI Platform
pyeuromil-0.2.20211203-py3-none-any.whl Python 3 none any Details

Total release size: 40.6 kB

Release files / pyeuromil-0.2.20211203.tar.gz

Download URL pyeuromil-0.2.20211203.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c8f41ce7f19b4b47606a622a6bb1f60bba176b4dd93174ae36431864ae41e5ac
BLAKE2b-256 checksum
How to use checksums
b33e34542a955382ddf0d300e5c7891af220325b714e2f3dc6d512ea7c63f0cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.8.2 requests/2.22.0 setuptools/59.4.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

Release files / pyeuromil-0.2.20211203-py3-none-any.whl

Download URL pyeuromil-0.2.20211203-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6338282fc662e5ec042347133f548d7c79523c5836b79ad81cef99aa27ccf1af
BLAKE2b-256 checksum
How to use checksums
06dce62013f7151c2889f47c17d651de3e3e180efe1d35aaa19a2ee76da29974
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.8.2 requests/2.22.0 setuptools/59.4.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page