Skip to main content

Shared utility functions powering Moonshine tools.

Documentation PyPi Version PyPi Package Version PyPi Downloads Chat on Slack License


What is Mash?

Mash is a straightforward utility library for common tasks in computer vision and deep model training. The library was broken out of previous Moonshine projects like Moonshine and Zeroshot.

What can Mash Do?

Mash broadly supports a few utilities, but the main ones are:

  1. Easy image conversion: simply call to_pil, to_numpy, and to_tensor to convert image formats. Accepts other images, URLs, or local files.
  2. Image processing files: convenience functions like crop_to_multiple_of_dimensions for transformer based patch models like ViT.
  3. Console UI: for long running jobs, a fullscreen console utility that has a progress bar at the bottom and text logging.
  4. Cloud functions: use glob or exists on AWS or GCS links.

For a complete list of functions, see the documentation

Installation

To install via pip:

pip install mashlib

Usage

To use:

# Import base package
import mash

# Import image processing
import mash.images as mi
image = mi.to_numpy("/path/to/image.png")

Metadata

Release files for mashlib 0.1.9

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

Source distribution (sdist)

Source distribution for mashlib 0.1.9
File Size Uploaded Provenance Actions
mashlib-0.1.9.tar.gz 14.3 kB Without provenance Details for mashlib-0.1.9.tar.gz

Built distribution (wheel)

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

Total release size: 33.8 kB

Release files / mashlib-0.1.9.tar.gz

Download URL mashlib-0.1.9.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
42e895e636d292c67269b7278fd6f4e6cb6fe82412b132160787fc69970e38e6
BLAKE2b-256 checksum
How to use checksums
6f7a6e5022406045646f5e54638f5956bbf35882a27e000f69e757b28c2c4df3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.0 Linux/5.15.0-125-generic

Release files / mashlib-0.1.9-py3-none-any.whl

Download URL mashlib-0.1.9-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46388961f4cf7cca63c128fad6cb52fd4dea69068751cff3166b93c95d45d7cd
BLAKE2b-256 checksum
How to use checksums
a69d7817aa37c5acbfb8df133dc36c6276441dbb258889a2cdd00d4da932e4e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.0 Linux/5.15.0-125-generic

Security for mashlib 0.1.9

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