Skip to main content

Cartesian Explorer

https://img.shields.io/pypi/v/cartesian-explorer.svg https://github.com/danlkv/cartesian-explorer/workflows/Test/badge.svg Documentation Status

A handy tool to map functions over their domains.

docs/Screenshot%20from%202021-03-05%2022-05-32.png

Works:

  • Map over cartesian product of arguments: pass arrays of values for function argument

  • Built-in caching

  • Handy plotting utilities

  • Resolving dependencies between functions that require and provide variables

Usage

Map

from cartesian_explorer import Explorer

explorer = Explorer()

def my_function(x, y):
    return x+y
data = explorer.map(my_function, x=range(5), y=range(3))
print(data)
assert data.shape == (5, 3)
assert data[1, 2] == my_function(1, 2)

Cache

from cartesian_explorer import Explorer
explorer = Explorer()
mock = MagicMock()
my_function = mock.my_function
wrapped = explorer.cache_function(my_function)
wrapped(a=1, b=2)
wrapped(a=1, b=2)
my_function.assert_called_once_with(a=1, b=2)

TODO

  • [ ] Interpolation, extrapolation

  • [ ] Vectorized providers

  • [x] Plot distribution props along additional distribution var

History

0.1.12 (2020-09-29)

  • Row-level variables: now can visualize 4 dimensions

0.1.3 (2020-09-29)

  • Joblib disc caching and parallelism

  • Dependency graph visualization with networkx

  • Plot-level variables

0.0.1 (2020-09-23)

  • First release on PyPI.

Metadata

Release files for cartesian-explorer 0.1.13

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

Source distribution (sdist)

Source distribution for cartesian-explorer 0.1.13
File Size Uploaded Provenance Actions
cartesian_explorer-0.1.13.tar.gz 119.5 kB Without provenance Details for cartesian_explorer-0.1.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cartesian-explorer 0.1.13
File Interpreter ABI Platform Actions
cartesian_explorer-0.1.13-py2.py3-none-any.whl Python 3, Python 2 none any Details for cartesian_explorer-0.1.13-py2.py3-none-any.whl

Total release size: 146.6 kB

Release files / cartesian_explorer-0.1.13.tar.gz

Download URL cartesian_explorer-0.1.13.tar.gz
Size 119.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7b94bb07e8c8a5697b10bbedaed688456e2199d01dfd31ae6b4151d96029b7ff
BLAKE2b-256 checksum
How to use checksums
aeb61899ed52d1a07525baba703f8f933dc241e700f49fb2e97bfbe301a579ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / cartesian_explorer-0.1.13-py2.py3-none-any.whl

Download URL cartesian_explorer-0.1.13-py2.py3-none-any.whl
Size 27.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2fb96988729773fac08454c0847118b8aaa6c63c8a3fbbee3cf3adc41dc72d57
BLAKE2b-256 checksum
How to use checksums
70fafd8db377c8323de30ca80c6f96337b9f83d278c1e4d5bfd9528e22977687
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Security for cartesian-explorer 0.1.13

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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