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.3.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.3.0
File Size Uploaded Provenance Actions
discrete_dists-1.3.0.tar.gz 120.7 kB With provenance Details for discrete_dists-1.3.0.tar.gz

Built distributions (wheels)

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

Total release size: 6.7 MB

Release files / discrete_dists-1.3.0.tar.gz

Download URL discrete_dists-1.3.0.tar.gz
Size 120.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3e76f80b3d1350325ffde26b36c948407d403995c66ea440f7296eb92faa7357
BLAKE2b-256 checksum
How to use checksums
b730c17de107bd10256160e2a6ffb840ba15b37f93db72ff48887c663a78ed8b
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.3.0-cp315-cp315t-win_amd64.whl

Download URL discrete_dists-1.3.0-cp315-cp315t-win_amd64.whl
Size 187.8 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
fa77b1fdb3549f49844c150c42969f22fb1b422907ab37a1632d730362689bdc
BLAKE2b-256 checksum
How to use checksums
c4a4ff9ce908ccd8d552657999fb4804ea13b9a6be44c883bae8797c02baf1b0
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.3.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.3.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 340.1 kB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
95d2cd2930999b8453528a24c082dde51be5fd7cbfadf5861714cb7ec9c669e5
BLAKE2b-256 checksum
How to use checksums
4893171e182527e54ae779b3eb4c0d1bc65b1d67ac151f53dddb5fde3967b4b7
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.3.0-cp315-cp315t-macosx_11_0_arm64.whl

Download URL discrete_dists-1.3.0-cp315-cp315t-macosx_11_0_arm64.whl
Size 294.9 kB
Tags CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
77e6233f5e49f9e81397b32e75d4d8438b18e234f81541467887614f780d6d35
BLAKE2b-256 checksum
How to use checksums
708b56b3f65a98247f4ee8780a4fa09b607d76b3b8026382609f07080a8e54c9
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.3.0-cp315-cp315-win_amd64.whl

Download URL discrete_dists-1.3.0-cp315-cp315-win_amd64.whl
Size 187.5 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
0fc1717ce827ed167980bfb34e12c880a8354e91a6de19826899fe043595e7c9
BLAKE2b-256 checksum
How to use checksums
ae66596f930d22e723b7e360d6093f6d3b81fb76dd95b059f0994c480f41aa2a
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.3.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.3.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 340.1 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c75742a076f5d183924422b2061fbb2cc3800ceb9c393e1a95d72e2b52133a31
BLAKE2b-256 checksum
How to use checksums
4a51fa9f70ba022a9854d5616cfc19644b127b0c0d627a97cc2c0ddc67a1b746
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.3.0-cp315-cp315-macosx_11_0_arm64.whl

Download URL discrete_dists-1.3.0-cp315-cp315-macosx_11_0_arm64.whl
Size 297.1 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
90551eef4d4900b1985983e3475d041b5ad38c133caab7287d28d873efff0262
BLAKE2b-256 checksum
How to use checksums
cb5eb4ea45853b2f86c19054b208c2cebe2b209c5a16f235ab9d5aabe388a030
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.3.0-cp314-cp314t-win_amd64.whl

Download URL discrete_dists-1.3.0-cp314-cp314t-win_amd64.whl
Size 187.2 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
a4b4105620afbf8cbfc19d5c087694031a2f925be19234a2d70e232fc0b7ec3c
BLAKE2b-256 checksum
How to use checksums
8541bf120542de0937b493aae05f19a3f7fb56b393828d0a6ae4342e0d33dd5d
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.3.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.3.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 339.6 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3171fa3bb15a6ea7c952f60cf51b4d7ac5c4959c7f8351af7d2776fe34dac09e
BLAKE2b-256 checksum
How to use checksums
b2d285fc0b9ef8bca374b84256fc9ccc2699ebc0ca7fba7de2f5a54ac435623a
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.3.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL discrete_dists-1.3.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 295.3 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0b2a5ffb19bb00867c7d7bb98abea3821d8a97e707881e833fc4b8eacdfbc3e5
BLAKE2b-256 checksum
How to use checksums
3f81e0ea9470f99e0296e763ee9685fe55f07cc2c84ba69696f1fce1c79e0b2a
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.3.0-cp314-cp314-win_amd64.whl

Download URL discrete_dists-1.3.0-cp314-cp314-win_amd64.whl
Size 187.2 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
5d1a63dd8d1fd84feaec35291b7a9c2157e93edbb94f7fd02bd0e1440cd2f7bf
BLAKE2b-256 checksum
How to use checksums
bd60ba5bc47f4105cc7a418973abcf7b0425ed87eea452680fb77e22a4040963
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.3.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.3.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 339.9 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ea49b74e4688eb39f99e40046f31c9e1e7b00bec6a6c99a217bfea67cae9fc4b
BLAKE2b-256 checksum
How to use checksums
99c8a4ddf60aa102bedad31e102466d6f75c62d87af8be44d16ebd07a4f83ece
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.3.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL discrete_dists-1.3.0-cp314-cp314-macosx_11_0_arm64.whl
Size 296.8 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a81b17d8ef69467ff75c9c46b23bbc95c5ae0706a0ff1263658cce85a264a8a3
BLAKE2b-256 checksum
How to use checksums
1f2d1ccb92c4f8a1ee2cb8025ccdd23c7f252df0b05302c748aaf549aa8266e9
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.3.0-cp313-cp313-win_amd64.whl

Download URL discrete_dists-1.3.0-cp313-cp313-win_amd64.whl
Size 187.8 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ea9ec3d0533b2cc3690bc32ef8bce32038fc93e9b5bf3f533e6e46c7eb38718e
BLAKE2b-256 checksum
How to use checksums
fb38982762fa14024dd723a735dba1a5233b0f65bf8e4e8106ff18170491b690
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.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 337.6 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
22c07fe8472f9b18a679269a4725ba45af933d9df160362a52aa753ce6312c24
BLAKE2b-256 checksum
How to use checksums
99659baf6f1ac9876bb2c091d674f20c0ee5bf0259a7e3aaf3fa347c570acd29
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.3.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL discrete_dists-1.3.0-cp313-cp313-macosx_11_0_arm64.whl
Size 294.7 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e26dd9c882d744918bb3c6d9572faff1b2384d3546d3bb3685ac456e990d8f60
BLAKE2b-256 checksum
How to use checksums
9da786c9812fcdf9395bcbc698b3542db24e6cfc779673b6d50b74ba06f12181
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.3.0-cp312-cp312-win_amd64.whl

Download URL discrete_dists-1.3.0-cp312-cp312-win_amd64.whl
Size 187.9 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
d163622c64f4d393a2c3d24780db1272dd492cd43ed4899689fc8475a0713f4a
BLAKE2b-256 checksum
How to use checksums
142e03e116bfc41ac43daa32b7a8ff2bf72b5846e8a6309f529c0b41a7cd648b
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.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 337.7 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6701128f6a6cf6e3e12c82556077861a84922d442a0075a4a5928326b78042ff
BLAKE2b-256 checksum
How to use checksums
801c362c4dc2db132c29c57524f557d3867d89788bb1cc384281f94fa12ac2c2
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.3.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL discrete_dists-1.3.0-cp312-cp312-macosx_11_0_arm64.whl
Size 294.7 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
64ec4742802d1c8dc00d200c22753bd07b6985494d38bafd5fed3b56ba843a5d
BLAKE2b-256 checksum
How to use checksums
0dc0e2247a8c1d9b41343ba02f396b5337dae3d4d7d6f8422601588fe79ad491
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.3.0-cp311-cp311-win_amd64.whl

Download URL discrete_dists-1.3.0-cp311-cp311-win_amd64.whl
Size 190.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
364eabd1d6dcc962ef18e3c1cc6223c2ab143a063292e90c18abdf1dd467d3a6
BLAKE2b-256 checksum
How to use checksums
cde5e0ca8b03a9ffb6809f58e87aff0dfef6a9e8631bdaddb119aa2d904a2e40
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.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 341.6 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d91922ad0433257dedc89eb798b5c99c08b38adcbc5bcfe791ab0b74d59f759d
BLAKE2b-256 checksum
How to use checksums
b059c04ae6acd4e2f9e3950ee49ec7a2083b8d5dae6e371e849dec21828be576
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.3.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL discrete_dists-1.3.0-cp311-cp311-macosx_11_0_arm64.whl
Size 300.8 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d057c51002e63e0d628b4789e8470ba565bfa6274c623569ac8390b4924b243a
BLAKE2b-256 checksum
How to use checksums
b8ae2b5a526d976414e18169ff48aff0af8bd149bd247a78f539ff4f46c56301
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.3.0-cp310-cp310-win_amd64.whl

Download URL discrete_dists-1.3.0-cp310-cp310-win_amd64.whl
Size 190.9 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
1fc91aa61aa6c795dabc901c6442465164c8d35a0e61e843b728ea4baab3a75c
BLAKE2b-256 checksum
How to use checksums
326125c6cfffdeadb4a30c479b9609dd3e06ad75ee6b3b0a9aa4fba40ad01fb1
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.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 342.5 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6b869c99fb518116908492d43f074deba0425bcaf6ae5bb032e2947bacac4396
BLAKE2b-256 checksum
How to use checksums
c205630b786d61c0c2bf74af762856c12df5f1fabf7371dee70f436432cacbe9
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.3.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL discrete_dists-1.3.0-cp310-cp310-macosx_11_0_arm64.whl
Size 300.6 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
72cde0b686fc9700c9dc6e35a3b361eb830479e53edb1e41cd92ed181a7fdebb
BLAKE2b-256 checksum
How to use checksums
365eb95f92146f0abb9271cbee8cda8218f9c4c5ca5367926768d47c774d5077
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.3.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.3.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