Skip to main content

discrete dists

CodSpeed

Simple utilities for defining complex distributions over discrete elements. Backed by a fast sum-tree implementation written in Rust.

Getting Started

pip install discrete-dists

The formal API behavior is documented in SEMANTICS.md.

When to use which distribution

  • Uniform: sample evenly from a fixed interval [lo, hi).
  • Proportional: sample discrete elements proportionally to per-element nonnegative weights.
  • Categorical: convenience wrapper around Proportional using standard probability terminology.
  • MixtureDistribution: blend multiple sub-distributions with mixture weights.

API

Uniform Distribution

A very simple wrapper over np.random.default_rng().integers, conforming to the Distribution API defined in this library. This wrapper additionally introduces importance sampling ratio calculations, sampling without replacement, and stratified sampling.

import numpy as np
from discrete_dists.uniform import Uniform

rng = np.random.default_rng(0)

u = Uniform(100)

# sampling
print(u.sample(rng, 10))
print(u.stratified_sample(rng, 10))
print(u.sample_without_replacement(rng, 10))

# importance sampling ratio
other = Uniform(10)

items = [0, 3, 8]
isrs = u.isr(other, items)

# out-of-support probabilities are zero
print(u.probs([-1, 0, 99, 100]))

# updating the support
u.update_single(150)

Proportional Distribution

Sample proportional to a list of values.

from discrete_dists.proportional import Proportional
from discrete_dists.categorical import Categorical

p = Proportional(5)

# set the values to sample proportional to
p.update(idxs=[0, 2], values=[1, 2])
# approximately 33% of values are 0, and 66% are 2
print(p.sample(rng, 10000))

p.update(idxs=[1], values=[2])
# approximately 20% are 0, 40% are 1, and 40% are 2
print(p.sample(rng, 10000))

# standard alias if you prefer probability terminology
c = Categorical(5)

Mixture Distribution

Mix together arbitrary distributions with arbitrary supports.

from discrete_dists.proportional import Proportional
from discrete_dists.uniform import Uniform
from discrete_dists.mixture import MixtureDistribution, SubDistribution

prop = Proportional(100)
m = MixtureDistribution([
    SubDistribution(d=prop, p=0.2),
    SubDistribution(d=Uniform(10), p=0.8),
])

prop.update(idxs=np.arange(100), values=100-np.arange(100))

print(m.sample(rng, 10000))

Mixtures ignore defunct children when computing probabilities and samples.

Edge cases and contracts

  • probs() returns 0 outside support.
  • sample_without_replacement() returns exactly n unique elements or raises ValueError.
  • isr() may return inf or nan when supports do not overlap.
  • Proportional.update_support() supports same-width shifts and widening that fully contains the old support.

Performance notes

  • The Rust-backed sum tree powers Proportional/Categorical operations.
  • Core update/query paths use a flat tree layout and release the GIL in hot paths.
  • In the current test benchmark on this branch, SumTree update and sample paths improved substantially compared with the earlier layered implementation.

Metadata

Release files for discrete-dists 1.4.0

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

Source distribution (sdist)

Source distribution for discrete-dists 1.4.0
File Size Uploaded Provenance Actions
discrete_dists-1.4.0.tar.gz 123.9 kB With provenance Details for discrete_dists-1.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for discrete-dists 1.4.0
File Actions
discrete_dists-1.4.0-cp315-cp315t-win_amd64.whl CPython 3.15 CPython 3.15 free-threading Windows x86-64 Details for discrete_dists-1.4.0-cp315-cp315t-win_amd64.whl
discrete_dists-1.4.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64 Details for discrete_dists-1.4.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.4.0-cp315-cp315t-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64 Details for discrete_dists-1.4.0-cp315-cp315t-macosx_11_0_arm64.whl
discrete_dists-1.4.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for discrete_dists-1.4.0-cp315-cp315-win_amd64.whl
discrete_dists-1.4.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.17+ x86-64 Details for discrete_dists-1.4.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.4.0-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details for discrete_dists-1.4.0-cp315-cp315-macosx_11_0_arm64.whl
discrete_dists-1.4.0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for discrete_dists-1.4.0-cp314-cp314t-win_amd64.whl
discrete_dists-1.4.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details for discrete_dists-1.4.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.4.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for discrete_dists-1.4.0-cp314-cp314t-macosx_11_0_arm64.whl
discrete_dists-1.4.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for discrete_dists-1.4.0-cp314-cp314-win_amd64.whl
discrete_dists-1.4.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details for discrete_dists-1.4.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.4.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for discrete_dists-1.4.0-cp314-cp314-macosx_11_0_arm64.whl
discrete_dists-1.4.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for discrete_dists-1.4.0-cp313-cp313-win_amd64.whl
discrete_dists-1.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for discrete_dists-1.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.4.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for discrete_dists-1.4.0-cp313-cp313-macosx_11_0_arm64.whl
discrete_dists-1.4.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for discrete_dists-1.4.0-cp312-cp312-win_amd64.whl
discrete_dists-1.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for discrete_dists-1.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.4.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for discrete_dists-1.4.0-cp312-cp312-macosx_11_0_arm64.whl
discrete_dists-1.4.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for discrete_dists-1.4.0-cp311-cp311-win_amd64.whl
discrete_dists-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for discrete_dists-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.4.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for discrete_dists-1.4.0-cp311-cp311-macosx_11_0_arm64.whl
discrete_dists-1.4.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for discrete_dists-1.4.0-cp310-cp310-win_amd64.whl
discrete_dists-1.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for discrete_dists-1.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.4.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for discrete_dists-1.4.0-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 6.0 MB

Release files / discrete_dists-1.4.0.tar.gz

Download URL discrete_dists-1.4.0.tar.gz
Size 123.9 kB
Tags Source
SHA-256 checksum
How to use checksums
10a6bbac9c974afff3ac0c2df1ed184daf14244a8558268164f401e1d5df2adf
BLAKE2b-256 checksum
How to use checksums
0fab0758541f212e037ebcd831fe875791a9b0812d116c26942fc8e8532cf8e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp315-cp315t-win_amd64.whl

Download URL discrete_dists-1.4.0-cp315-cp315t-win_amd64.whl
Size 177.5 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
e93c1da5f84d2938fe75552c7b9a5c0beaa2f991011b87dee29ed9dc1b0ed58f
BLAKE2b-256 checksum
How to use checksums
0ab9159b8cc95dec7679d456db31e174cbf97ddb2f31671117130407acc0c90b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.4.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 288.1 kB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4c5c21002478f4c99523c2a1734e28f9ec933df3dd8e4657f5567b7e87e8dd09
BLAKE2b-256 checksum
How to use checksums
76cc2f37e368c2dd75464d617af1898663ca0908fc2432a752495229d28a20c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp315-cp315t-macosx_11_0_arm64.whl

Download URL discrete_dists-1.4.0-cp315-cp315t-macosx_11_0_arm64.whl
Size 265.4 kB
Tags CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
24d3952dfcbf113228ba5e5c6468716826532bcf60cd1352a2b67f5ca78f8b3e
BLAKE2b-256 checksum
How to use checksums
c8498089d6bd28a55b9e94220d8e89da22cae6bf327b280f5403eb49ee450605
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp315-cp315-win_amd64.whl

Download URL discrete_dists-1.4.0-cp315-cp315-win_amd64.whl
Size 177.8 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
2bc6b77c0c67a0ce8e6e73d6e7fbe650172d2d86e2a69fc09910d2a3acb76326
BLAKE2b-256 checksum
How to use checksums
58079c05dc42e89db802893433d206d57755058f53a2a4cf97203c0b5be740e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.4.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 288.7 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
20785de6c47b9cc82581abc95db9876affdcfc17ddeabacd5ca4df9852ca3425
BLAKE2b-256 checksum
How to use checksums
eb0a95f6710f7756d4b03ce6a132d3297322c2fd6d856293e5076006183314ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp315-cp315-macosx_11_0_arm64.whl

Download URL discrete_dists-1.4.0-cp315-cp315-macosx_11_0_arm64.whl
Size 266.9 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1ac54af5d4649e1721e1d39fa11c5734bb9e5bec248539e83250b840a0e9b5d6
BLAKE2b-256 checksum
How to use checksums
9a21f94a1379218f5171152756a92a9d2e7a59a8698de0dd366597433766ab9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp314-cp314t-win_amd64.whl

Download URL discrete_dists-1.4.0-cp314-cp314t-win_amd64.whl
Size 177.4 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
4c275c2087382341d0239dfed9aeacaef1db7584d0010e519399fd163e8af278
BLAKE2b-256 checksum
How to use checksums
7e371507a37aefb46779964dcbb174d0f78c9965922faab62b84370b078f5861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.4.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 288.1 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
004a4c7219a9b896d84b12625f8950e048fe6e728a2b561fda4931a22d562f6c
BLAKE2b-256 checksum
How to use checksums
048d337a2e327573e4fe259b8fb6b668485dd91fd44d64abf4af577505262b36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL discrete_dists-1.4.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 265.5 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bfa66e785fad796e900a5b399d6f7e0c97ea4e97363f654bd42e3d21ba4e0319
BLAKE2b-256 checksum
How to use checksums
0cbb9783e72e74843eb7a57b1d08d870e599edbeb75ac29bb88f83d0eb50ba92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp314-cp314-win_amd64.whl

Download URL discrete_dists-1.4.0-cp314-cp314-win_amd64.whl
Size 177.6 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
b83ab72de3405641d12605d067a9212835cca43f8b2dce35d805545b8e4cd8a4
BLAKE2b-256 checksum
How to use checksums
50a4b3facc43acc84e771d4f6245ec65962086620da5e2cdd42d17e647a5c09f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.4.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 288.8 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
faa2daad7d59c72f25a0ca5842d83f4f324f1513b264354e37f6bc4a74f0145f
BLAKE2b-256 checksum
How to use checksums
d0d17ec3c82019b04e05cb4ca918af001962c4873c27e4cf7bb94219d6fd6430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL discrete_dists-1.4.0-cp314-cp314-macosx_11_0_arm64.whl
Size 267.1 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
62ce44f8f2668d13f2e608df996153b1fc1ca1a9af6fe9530d93e874bf671271
BLAKE2b-256 checksum
How to use checksums
c613c51783b7e8ddeb7ff4cee370ffebde54935631df2d49596df06db0d5eb40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp313-cp313-win_amd64.whl

Download URL discrete_dists-1.4.0-cp313-cp313-win_amd64.whl
Size 178.1 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
c9ac10967ef31221a84996603b1fd6cc0182e5fa0c4191b33fbf8eafa2ffa961
BLAKE2b-256 checksum
How to use checksums
d7ef4114c74a463db59cd724abb7175922e301e49120ed2ec8e23b16186eaa8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 288.8 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
588196a9009641274ce9df815bc1ec9b3aba8f46bb9870a57a89fcee2b8807a3
BLAKE2b-256 checksum
How to use checksums
25c293f478cb064bc6a6222de78fd0ec5b2f5ba1a2d6340ed54394f35a0ae889
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL discrete_dists-1.4.0-cp313-cp313-macosx_11_0_arm64.whl
Size 267.2 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e8dcf18d8a0048c5497b280e4ee9dbcb574d02aec6eaa1bb5235b3943f739ffe
BLAKE2b-256 checksum
How to use checksums
a605b1935a2742ce6562be36a34302daa34df339f905e7c2d290529931a9aaf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp312-cp312-win_amd64.whl

Download URL discrete_dists-1.4.0-cp312-cp312-win_amd64.whl
Size 177.9 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
924dd17be9caa8f2bcd3fcee6b0876181b2b3a909a831dad17efbb82b3c2eef9
BLAKE2b-256 checksum
How to use checksums
a5d00343a327b0f812535473c3c2840ac9a70574d57234cde84d8d54e1aa60d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 288.5 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2fcf5607183a3feb40e875b8096862101a6958b94967889983868ba1083ccf2b
BLAKE2b-256 checksum
How to use checksums
1e2147a9b4c551dd7110fed6f3986d030785dbc62c9b4d21e1dc5b76c98e1d47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL discrete_dists-1.4.0-cp312-cp312-macosx_11_0_arm64.whl
Size 266.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7e7c0b73420dafe0e42d3d1ba41326984698ff1f1f231fd5624c81a99cf247ba
BLAKE2b-256 checksum
How to use checksums
6ae34495d92ad7d890f66216fa88b9c392fa680371a2887275544e292b8dc8f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp311-cp311-win_amd64.whl

Download URL discrete_dists-1.4.0-cp311-cp311-win_amd64.whl
Size 180.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
adbfe3160ac41a280a5342dc9f1b55c5bd6508eccdd74a1d6f2a9ba9178a7e5c
BLAKE2b-256 checksum
How to use checksums
3a8ab123b68649024b50654881315fb622b40721cb2fa3de8cb5ce8ec1b52200
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 290.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
8b7771ddaf615f4e0d6a4467d39ba371e630dfa9523364a2301330b71bc7ec1a
BLAKE2b-256 checksum
How to use checksums
e97519bc5b4743ef207d905ecffea67b732c07277615be1edbab7457381540e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL discrete_dists-1.4.0-cp311-cp311-macosx_11_0_arm64.whl
Size 270.0 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0e35b1e31055cb5a16c818e9f341b516ff686c94b9e2e759b949250f86a5c0e8
BLAKE2b-256 checksum
How to use checksums
e73ba60295849515aca8cd3393cc7074e3ff7223c3e8fa8d014ae49195db4e86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp310-cp310-win_amd64.whl

Download URL discrete_dists-1.4.0-cp310-cp310-win_amd64.whl
Size 181.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
360538b647a1e21e99eaae27823250827387da4e7ce372a05f6e909be8e3e604
BLAKE2b-256 checksum
How to use checksums
7c5be0e8154cc16f78b53ebabf323be79f3a912a4b65efc431a9efc6bf6e2299
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 290.7 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
493e02e7904e6d920ace2a1ee0144158fd5963377fbc44b42e2bd4fbf0e9cd57
BLAKE2b-256 checksum
How to use checksums
856b300f761fac1f3d5276e848290c1093cf9e498a8b6db908cbd7ac78bebf75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / discrete_dists-1.4.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL discrete_dists-1.4.0-cp310-cp310-macosx_11_0_arm64.whl
Size 270.3 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
870a98e8929451221f951cfd95cb3a01e2aac30036cde0678e121aaa0ecbccfe
BLAKE2b-256 checksum
How to use checksums
213f687e9ca340e2bf8bfee9fedfc1cca12dfad72df147ba1c63004a051cc116
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for discrete-dists 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 25 files in this release have been uploaded with provenance metadata.

Select from 25 files

Attestation for discrete_dists-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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