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

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

Built distributions (wheels)

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

Total release size: 5.0 MB

Release files / discrete_dists-1.2.3.tar.gz

Download URL discrete_dists-1.2.3.tar.gz
Size 109.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e1c38d948cf8ff1586ba88fb44549a20b56b3a8612e9b2eab34304a6faaa9378
BLAKE2b-256 checksum
How to use checksums
9f884bba6b4d7f46f58d62b3f229c901d4f981291f69d48b3b0e8e9a4fd271df
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.3-cp315-cp315-win_amd64.whl

Download URL discrete_dists-1.2.3-cp315-cp315-win_amd64.whl
Size 188.6 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
4a9ea098f4b017affed2b6a96f7db28a4dc5f069ee4887d468129fc71dbeb209
BLAKE2b-256 checksum
How to use checksums
36f8cda479e7bbe78a4fd959a01b3453df35c475229d4420c87d897f76c36e57
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.3-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.3-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 337.1 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4cdbf031ec71e0fde0e7aeeb544670401e4ed81dca74afc403acbbfb582d5859
BLAKE2b-256 checksum
How to use checksums
d96563e85f2c1253f6f69d143cd33c5c1383af9fed6bb2ed067abf0470f9c775
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.3-cp315-cp315-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.3-cp315-cp315-macosx_11_0_arm64.whl
Size 295.2 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
48a844e8d1510675f76e991ca082e2f9640cd675fcf2c9c3135238a2a383bfd2
BLAKE2b-256 checksum
How to use checksums
26e130c9d83f5cadf79473c30195d37f6482fbdcdb1a212dc840bd8193157538
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.3-cp314-cp314-win_amd64.whl

Download URL discrete_dists-1.2.3-cp314-cp314-win_amd64.whl
Size 188.5 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
67d00fe4423eb158afd2b378fbbd45332a38f323ba01331ab2a3d5e43e5bc865
BLAKE2b-256 checksum
How to use checksums
1b3c6b27b3778959e4a4e32670816493062755da29973a0e887f493b4e4e747f
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.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 337.1 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
afd702f70b118f17fb8a4c5bb68177b96829212a1dd85c2623d84269955a7248
BLAKE2b-256 checksum
How to use checksums
f933320199cda66b0d36239809642a0624c230f74e2ad32ac964437eca1f646d
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.3-cp314-cp314-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.3-cp314-cp314-macosx_11_0_arm64.whl
Size 295.1 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b00b7c7f7cb3ce692241fef7e1af83f2ed269b795b1405d6b64506eea7a542bd
BLAKE2b-256 checksum
How to use checksums
13c3888bc437d6554bf4872ca4e525382bb55eb7a086af4251614b2dd41212f7
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.3-cp313-cp313-win_amd64.whl

Download URL discrete_dists-1.2.3-cp313-cp313-win_amd64.whl
Size 188.7 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f2d802240d82b9aa5c18b9e6116dd2d205561b61a758ae341720db11b2d26d83
BLAKE2b-256 checksum
How to use checksums
9e20b2fb97e4b1b4df38a5fa521641846aadc6df722b8c476efad88a565d40b6
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.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 336.5 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1cd7fdd9ccb403cde94d0c0acc5162c5e35ad18c3bd8d3730a070f3449ec45dc
BLAKE2b-256 checksum
How to use checksums
03f565cabc5b2f11fa79f009a196b6467ade9c6de7b487ae73eb62a942f87b16
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.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.3-cp313-cp313-macosx_11_0_arm64.whl
Size 295.4 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3d5b9eea5990d73e109f1307ab858a121e04de568ec2f14dec9f0882e5416a93
BLAKE2b-256 checksum
How to use checksums
c6ddab75205ff5a674f598dffc5f6257c1de8fd321975aefa66b3f198e2995dd
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.3-cp312-cp312-win_amd64.whl

Download URL discrete_dists-1.2.3-cp312-cp312-win_amd64.whl
Size 188.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
909a7194584f7253556bba32b4e78ae877494c4498c9d3e669b7343b7d4106ff
BLAKE2b-256 checksum
How to use checksums
50c48076af7bb926f67b40d68157f3ecfc5797b5889c11cbe3676724d8bd7add
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.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 337.3 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4ba108409c272ed4e703fc059a230c31490de332337db4363efbae9dbe5fb63a
BLAKE2b-256 checksum
How to use checksums
6cf137e6180ef09caa82c5b8652718bbf852f909bbd7b5a4f293e70ef2173ab3
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.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.3-cp312-cp312-macosx_11_0_arm64.whl
Size 295.1 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9f4ce0a2e9d5521b3b0874bd38334654359c41a2b33aadc074c4953616ade374
BLAKE2b-256 checksum
How to use checksums
d98a7075ea84ee52763ccda8c433040d9fa5346e854bc8ff5a60d18c035ac1b0
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.3-cp311-cp311-win_amd64.whl

Download URL discrete_dists-1.2.3-cp311-cp311-win_amd64.whl
Size 190.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
045bf92cde36ce0a9ab3b66e3b5235c995f6068714ceff310ab42eed52d8a1f0
BLAKE2b-256 checksum
How to use checksums
397cb8633d8f6a9c02ea550c72850ecbf7d7c9c149702e9b93a25677b3528472
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.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 340.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9f6c373ad74d3e7650420d4f8554ae4c9ddd53927c3fca85f598cfb284d64bee
BLAKE2b-256 checksum
How to use checksums
0e26f6b2617130ccfbe60d3fd434c86f92154e7971d95cb76591ad066a9ecaf4
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.3-cp311-cp311-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.3-cp311-cp311-macosx_11_0_arm64.whl
Size 296.8 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
50db1cfda3c152c711c51dbcfbcc7633e3fa65fb4aa4b0b2d9d490a616c9d8ff
BLAKE2b-256 checksum
How to use checksums
b3ccae76c85accd2564aa0f95518ccd254cc6f7258be31f0c3a380095afa6c11
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.3-cp310-cp310-win_amd64.whl

Download URL discrete_dists-1.2.3-cp310-cp310-win_amd64.whl
Size 190.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
545cd1c06b09bb7d098a40b7daac8ccd2827202be4d138aca85171690b0bd09c
BLAKE2b-256 checksum
How to use checksums
7124fc8555222cd0b26e67ee813e9302acc84a105fe23182679a22b208aaf988
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.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL discrete_dists-1.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 340.5 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2e491738ee9cb4bbcb1adbfdc4259b81edeb78ba385d75905bc6faebb278991b
BLAKE2b-256 checksum
How to use checksums
39716bfb98c0d8bfff536404e8ed85cb2b2ae21f3c6575399216a113085adc95
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.3-cp310-cp310-macosx_11_0_arm64.whl

Download URL discrete_dists-1.2.3-cp310-cp310-macosx_11_0_arm64.whl
Size 297.0 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
10edb83f33fd96dd965e331ea82323ed02179aa6802f6318541bf0d15526ddfb
BLAKE2b-256 checksum
How to use checksums
95e654755dc3814aa314482f7a26cf1bab4b94c4e4200487a50fb9e15e1fab34
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.3

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