Skip to main content

Get up-to-date lottery draws from FDJ

Project description

frenchlottery

Simple Python package to retrieve lottery data from FDJ website.

Installation

pip install lottery (yet to come, need to upload to PyPI)

Usage

From the command line (activated env with lottery installed)

  • French lottery (default): python -m frenchlottery -n 15
  • Euromillions lottery: python -m frenchlottery source=euro -n 5

Within your project

from frenchlottery import get_euromillions_results, get_loto_results

loto_res = get_loto_results()
euro_res = get_euromillions_results()
...

TODO

  • If --lines parameter is specified, no need to pull entire history. The user will most likely pull 10-15 lines.

NB

  • This is no way affiliated to FDJ. I'm just using it as a source of historical data.
  • The initial name for the package was lottery which was way more elegant and worked perfectly within test PyPi (https://test.pypi.org/project/lottery/). However when publishing to PyPI, the name isn't allowed.. Great..!

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

frenchlottery-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

frenchlottery-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file frenchlottery-0.1.0.tar.gz.

File metadata

  • Download URL: frenchlottery-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for frenchlottery-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f25b347adfd797c63d1420798390f025634dee9e07bbd85e507471ada87c60be
MD5 95b8e96e8aac3d618752df1ec46208b7
BLAKE2b-256 b6561058bcdd37a5a10d445017f1b047747bba1fc16429df3ec3b9d96c1e704c

See more details on using hashes here.

File details

Details for the file frenchlottery-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: frenchlottery-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for frenchlottery-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f46798bb19a9e8a650836b07a73f39383df38e3cb9bc42b059dd51651aad973b
MD5 f8b3f6f90b5cf16e4f859569e01162e7
BLAKE2b-256 42e8a97e5e91d130ec3475f95e80be405abed9965760a1dbb4016dab8bf17142

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