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.2.4

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.2.4
File Size Uploaded Provenance Actions
discrete_dists-1.2.4.tar.gz 120.2 kB With provenance Details for discrete_dists-1.2.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for discrete-dists 1.2.4
File Actions
discrete_dists-1.2.4-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for discrete_dists-1.2.4-cp315-cp315-win_amd64.whl
discrete_dists-1.2.4-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.2.4-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.2.4-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details for discrete_dists-1.2.4-cp315-cp315-macosx_11_0_arm64.whl
discrete_dists-1.2.4-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for discrete_dists-1.2.4-cp314-cp314-win_amd64.whl
discrete_dists-1.2.4-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.2.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.2.4-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for discrete_dists-1.2.4-cp314-cp314-macosx_11_0_arm64.whl
discrete_dists-1.2.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for discrete_dists-1.2.4-cp313-cp313-win_amd64.whl
discrete_dists-1.2.4-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.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.2.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for discrete_dists-1.2.4-cp313-cp313-macosx_11_0_arm64.whl
discrete_dists-1.2.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for discrete_dists-1.2.4-cp312-cp312-win_amd64.whl
discrete_dists-1.2.4-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.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.2.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for discrete_dists-1.2.4-cp312-cp312-macosx_11_0_arm64.whl
discrete_dists-1.2.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for discrete_dists-1.2.4-cp311-cp311-win_amd64.whl
discrete_dists-1.2.4-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.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.2.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for discrete_dists-1.2.4-cp311-cp311-macosx_11_0_arm64.whl
discrete_dists-1.2.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for discrete_dists-1.2.4-cp310-cp310-win_amd64.whl
discrete_dists-1.2.4-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.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
discrete_dists-1.2.4-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for discrete_dists-1.2.4-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 5.0 MB

Release files / discrete_dists-1.2.4.tar.gz

Download URL discrete_dists-1.2.4.tar.gz
Size 120.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a6c9140e03d05bca737f66a5161c2b31a7fdfb1e7dbc9bb3a60b31a76dd2f1df
BLAKE2b-256 checksum
How to use checksums
b107b0ec4069c8538b5cc7ef6b4fe57879e385a142921fb0d355e3d0741d72ea
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.2.4-cp315-cp315-win_amd64.whl

Download URL discrete_dists-1.2.4-cp315-cp315-win_amd64.whl
Size 186.3 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
11ba6ddf53bdd15aed26ecf8c7c42d5320b831d8d63414b66d85d69b676c1d49
BLAKE2b-256 checksum
How to use checksums
910dd651fa0a5ca53ea725cef41371980608e33f36670ed7a1c0527f99aba3c0
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.2.4-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.4-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 336.4 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d8ba11cf081ed5db667978a321d0946724d58a5456fc288b71ac16683b8016b9
BLAKE2b-256 checksum
How to use checksums
58a5b1fb2f78661d0297c2eedd312ed47d2f085380761b1f1581ee71e4d24852
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.2.4-cp315-cp315-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.4-cp315-cp315-macosx_11_0_arm64.whl
Size 293.1 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0524cf5f321444dc7ce984f49c9fd6cab97544e9c3788115939276e7a15a0d1c
BLAKE2b-256 checksum
How to use checksums
da4d4c34381eb0bd83f63e005971894f4b4c26173260471b5a74273245891e15
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.2.4-cp314-cp314-win_amd64.whl

Download URL discrete_dists-1.2.4-cp314-cp314-win_amd64.whl
Size 186.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
6d878a1266ec8437b2e07c9fc0d5accb7d830a4e1f60de62c60299193264aaa4
BLAKE2b-256 checksum
How to use checksums
cc7d20514946adb032be5c9584a9dba97d09083f819bf1784a2761e45e23dc07
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.2.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 336.5 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b8997c030f67f4c7fb49b229f99f3eec371975738fa4dc9d123e1927b77c0db4
BLAKE2b-256 checksum
How to use checksums
4f09a6dac7872effd9384d8565c7acce0fb0c8e75c6cb1f101f5d4260f241dd4
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.2.4-cp314-cp314-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.4-cp314-cp314-macosx_11_0_arm64.whl
Size 293.1 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
26e0b60f6d598b978ffbe940f295e596fa9cc915d7893169e1d577aa06c8700e
BLAKE2b-256 checksum
How to use checksums
1e82048d6e1f817553a435723e65b6eaf3c91ce5bf1e0256650f6860a247d623
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.2.4-cp313-cp313-win_amd64.whl

Download URL discrete_dists-1.2.4-cp313-cp313-win_amd64.whl
Size 186.5 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
9dfe00502d01d38b64c290c302b68e2f735d4bdd0f1eeb3cb8e6bc073c9590be
BLAKE2b-256 checksum
How to use checksums
030fb06f2c9e423e7c5d985151af824284560a9f71017a3751e371ff8b291a72
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.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 335.8 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d978ae0ed42c6cd2b01ebf3836e6f40aa0f060e43cef625a07007284ad012878
BLAKE2b-256 checksum
How to use checksums
a4da025cdffb5ef9d5ad5ee3c36d1534c6150e29654de05e6ecec32639bbff90
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.2.4-cp313-cp313-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.4-cp313-cp313-macosx_11_0_arm64.whl
Size 293.2 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3de8ca320ba9d15f3a498f1213a80aa169d6e5cd75ae5ad306244002d5b9100a
BLAKE2b-256 checksum
How to use checksums
42e5364a58683e041c8afe83f796ee15473a0389c3818bf804e1e62a5df98de8
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.2.4-cp312-cp312-win_amd64.whl

Download URL discrete_dists-1.2.4-cp312-cp312-win_amd64.whl
Size 186.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
30146c73c174428ee3f130a4359884f995c9bcecb0610023811eaf92a8b0a295
BLAKE2b-256 checksum
How to use checksums
22ed0cbec5bf7877f36b6eb2671784ad8289f2b052fe5c26ff9867ff9d59a37c
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.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 336.6 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
df4a30f8d48b6cb1b3e3d36a3b73c5c289cd9e5275d965d2f01935f0efb3ad08
BLAKE2b-256 checksum
How to use checksums
88a5e5a2f3c4ee0a62d891914f75cc1b2715231486a9bc74adcd7f8703ed4ed5
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.2.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.4-cp312-cp312-macosx_11_0_arm64.whl
Size 293.1 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cdcd34a3aa41d4c27ced839da599a1245f0960f510f4de28c9ee3bc0084ab15d
BLAKE2b-256 checksum
How to use checksums
9635bddfa0bff2df7a2b6be57af33ca0e54b47e9951daf2138503b96329e8c9e
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.2.4-cp311-cp311-win_amd64.whl

Download URL discrete_dists-1.2.4-cp311-cp311-win_amd64.whl
Size 187.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
3781ec79af3b939cfeb71e8618e59495be36f3d169f5b6520512a475938c0822
BLAKE2b-256 checksum
How to use checksums
7ef59fb5a00504d4ab91efeb4e18072b28c085a711c4b1de76e4dfaad24f032f
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.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 339.8 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1997629daf7269b8f27b1c3641ed51fa62cba4ac2d6487826c6c313e8e591f99
BLAKE2b-256 checksum
How to use checksums
4f60b448570c3796f8da13c6868c098b604227ea041c890a1769863ea40d1333
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.2.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.4-cp311-cp311-macosx_11_0_arm64.whl
Size 294.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b1c0981a498c88cefa09b1265af975b65d1b430678c0304ecbc6350c10ec99b4
BLAKE2b-256 checksum
How to use checksums
b619827ce669965282a2e9ec2a6343779b2d3e495563a458580a47478887fe99
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.2.4-cp310-cp310-win_amd64.whl

Download URL discrete_dists-1.2.4-cp310-cp310-win_amd64.whl
Size 188.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
3ccce508c53deddd61c69df81bd9441962a6a9bb592971ab6f05a5a232385dd4
BLAKE2b-256 checksum
How to use checksums
bf15da01d174f183253a107f2bb89267c15bd4c08933aa7aff8f297dbaa2e91e
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.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 339.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9fb836ab1b89e5db2f3fa5293e8153389033b52613242605961e45c4fff40006
BLAKE2b-256 checksum
How to use checksums
5d43df1fd61c779fe386ed95944d760ecc393e5186d9ac0588bd1d6d815c8beb
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.2.4-cp310-cp310-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.4-cp310-cp310-macosx_11_0_arm64.whl
Size 295.0 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
60e22f539c3b86db941547852df44195eb80eb7b1800a25aa8a4233909835db1
BLAKE2b-256 checksum
How to use checksums
5b4be78fe4cf48699c887ab009bc192ad0c44a672cd7c2398efd843403adf577
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.2.4

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 19 files in this release have been uploaded with provenance metadata.

Select from 19 files

Attestation for discrete_dists-1.2.4.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