Skip to main content

A python library to check and analyse Euromillions results

Project description

PyPI-Status Py-Versions Git-RepoSize Black

Travis-Status Last-Commit Codecov RTDimg

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyeuromil-0.2.20191231.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyeuromil-0.2.20191231-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file pyeuromil-0.2.20191231.tar.gz.

File metadata

  • Download URL: pyeuromil-0.2.20191231.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pyeuromil-0.2.20191231.tar.gz
Algorithm Hash digest
SHA256 f3b1183610dd79e63e6c5d9ff6a17b4d82ee1c42c63b83f5cc4e92f86e53fc51
MD5 c65bd976eaf9e900b18a274286c61992
BLAKE2b-256 58f379d11de014686ee8cb67fc991e052407ee4245299725c348a2960f8207ec

See more details on using hashes here.

File details

Details for the file pyeuromil-0.2.20191231-py3-none-any.whl.

File metadata

  • Download URL: pyeuromil-0.2.20191231-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pyeuromil-0.2.20191231-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7d066d63edf10881380b0d4d4934ff2466ff359b51d2adc212e209707d40f5
MD5 e5dce5b153cf69b51620bc86de02554f
BLAKE2b-256 003e228cc06b5b3f7e1c0fd0c59352f89a645e00d6180e7ebaff220447751ff5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page