Skip to main content

A library for managing lottery results.

Project description

Pactole

A Python library for managing lottery results.

Installation

Add pactole to your project:

pip install -U pactole

Or with uv:

uv add -U pactole

Documentation

See the complete documentation index: Documentation.

Requirements

Requires Python 3 (version 3.10 or newer).

Usage

import pactole

EuroMillions combinations

from pactole import EuroMillionsCombination

# Build a known combination
euro_millions = EuroMillionsCombination(numbers=[3, 15, 22, 28, 44], stars=[2, 9])

print(euro_millions.numbers.values)
print(euro_millions.stars.values)
print(euro_millions.rank)

# Generate 3 random combinations
combinations = EuroMillionsCombination().generate(3)
print(combinations)

EuroDreams combinations

from pactole import EuroDreamsCombination

# Build a known combination
euro_dreams = EuroDreamsCombination(numbers=[2, 3, 5, 7, 9, 38], dream=[3])

print(euro_dreams.numbers.values)
print(euro_dreams.dream.values)
print(euro_dreams.rank)

# Generate 3 random combinations
combinations = EuroDreamsCombination().generate(3)
print(combinations)

License

Copyright (c) 2026 Jean-Sébastien CONAN

Distributed under the MIT License.

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

pactole-0.1.0.tar.gz (66.2 kB view details)

Uploaded Source

Built Distribution

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

pactole-0.1.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pactole-0.1.0.tar.gz
  • Upload date:
  • Size: 66.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pactole-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed262a967b02406efd247d7e6eab7985b10eefb09bdd542aa4401c5ff239906c
MD5 1983bb1905eec9338c65c1e36bde6159
BLAKE2b-256 648b01c0d68f56d6c3ba1ed263162ced11e4c97e2961e47217fb93521e6b09d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pactole-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pactole-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d5ee35740e2995e70af93cdb8832a2608cf9ef3283fc855e76448b0007f47e6
MD5 798fa29187f80f8288947000448fef69
BLAKE2b-256 bb2e4d3e7c6c8cd055d78e32c7fe582bd346bfc9047860db98a70f60d05c2b01

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