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 frenchlottery

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.3.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.3.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for frenchlottery-0.3.0.tar.gz
Algorithm Hash digest
SHA256 149413a03ec18d703c920067fca1110bb1771c65912a3cfafbd72d328c7f01eb
MD5 03e2953ab1aa904730601f5b4541a3de
BLAKE2b-256 5f144bfabcf6fb4c557a5ea3cb7aef9228b6ae1e2f136e8bb12ec779c521ae57

See more details on using hashes here.

Provenance

The following attestation bundles were made for frenchlottery-0.3.0.tar.gz:

Publisher: python-publish.yml on nick-voisin/frenchlottery

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

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

File hashes

Hashes for frenchlottery-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1c07f1ee93839683b0241ff283a3d2611e5ded92d2b18179beb0872523b5d49
MD5 bdf83b34dae298a5d69ecea2df861604
BLAKE2b-256 ca5730ded2d05b54a8ff911db8a5fe17f78175b02f9bf6aae5abd1f6b02dc906

See more details on using hashes here.

Provenance

The following attestation bundles were made for frenchlottery-0.3.0-py3-none-any.whl:

Publisher: python-publish.yml on nick-voisin/frenchlottery

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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