Skip to main content
griblet logo

griblet

PyPI Version License: MIT DOI Codacy Badge Codacy Badge

The griblet knows the easiest path through your data.

  • It thrives where there are multiple, looping paths.
  • It can account for cache and disk state.
  • It loves scientific post-processing.

Installation

Install griblet in the usual way:

pip install griblet

The griblet has no runtime dependencies.

Example

Start by describing common computational paths in your data. For example, below one can compute volume via two paths: via area, and directly from length, width, and height.

from griblet import Graph

graph = Graph()

graph.add("length", lambda: 5.0)
graph.add("width", lambda: 4.0)
graph.add("height", lambda: 3.0)

graph.add(
    "area",
    lambda length, width: length * width,
    needs=("length", "width"),
    cost=2.0,
)

graph.add(
    "volume",
    lambda area, height: area * height,
    needs=("area", "height"),
    cost=2.0,
)
graph.add(
    "volume",
    lambda length, width, height: length * width * height,
    needs=("length", "width", "height"),
    cost=3.0,
)

print(graph.compute("volume"))

The griblet finds the easiest path.

The griblet is okay with disconnected graphs; when there is no path to the requested field, griblet raises NoPathError. The user can then consider adding further computational paths with graph.add.

Metadata

Release files for griblet 0.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 griblet 0.3.0
File Size Uploaded Provenance
griblet-0.3.0.tar.gz 20.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 30.9 kB

Release files / griblet-0.3.0.tar.gz

Download URL griblet-0.3.0.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
54592ae2856040db168552cf81e836a9a168209e4ed3c338960c3a23fe6f9069
BLAKE2b-256 checksum
How to use checksums
a00ba18c26051afb013d40e613086d5f84821fbd3e07828c4adfd424299ac8a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / griblet-0.3.0-py3-none-any.whl

Download URL griblet-0.3.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c723670ee6e2e12ec6ddcde72f40eef591e3cfeb1265d5e053bd20a247dd16d2
BLAKE2b-256 checksum
How to use checksums
4eee3322b9100b66ea6cc20388906e08ac459e3af86d09ce6777e55195c2b944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for griblet 0.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.

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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

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