Skip to main content

Multipartial

Last release Python version Documentation Test status Test coverage Last commit

Multipartial is a library for constructing N-dimensional arrays of partial functions. For example, the following snippet shows how to make a 2x3 grid of partial functions where the a argument varies by row, the b argument varies by column, the c argument is always the same, and the d argument is specified at call-time:

>>> from multipartial import multipartial, dim
>>> def f(a, b, c, d):
...     return a, b, c, d
...
>>> grid = multipartial(f, a=dim[0](1, 2), b=dim[1](3, 4, 5), c=6)
>>> grid[0][0](d=7)
(1, 3, 6, 7)
>>> grid[0][1](d=8)
(1, 4, 6, 8)
>>> grid[0][2](d=9)
(1, 5, 6, 9)
>>> grid[1][0](d=10)
(2, 3, 6, 10)
>>> grid[1][1](d=11)
(2, 4, 6, 11)
>>> grid[1][2](d=12)
(2, 5, 6, 12)

Metadata

Release files for multipartial 0.2.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 multipartial 0.2.0
File Size Uploaded
multipartial-0.2.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for multipartial 0.2.0
File Interpreter ABI Platform
multipartial-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / multipartial-0.2.0.tar.gz

Download URL multipartial-0.2.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9a22dbf8b4544002763c23a3f1eb5f4147d256f49d0727df9835bec40a92709f
BLAKE2b-256 checksum
How to use checksums
7c13a6bb514ec214524e6e9fcdc73a45d6029db29450e42e2dccc7af6635fa81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

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 Nov 8, 2024.

Transparency log

Release files / multipartial-0.2.0-py3-none-any.whl

Download URL multipartial-0.2.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2dcc4a389d94c779d1c187e7209e56c2c410a193ead448c05f4d7f9a78b4adc
BLAKE2b-256 checksum
How to use checksums
27f1b2d01338ae5357eae79575aff9be92a515fdeaa71a22446fb6572077c53f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

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 Nov 8, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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