Shared utility functions powering Moonshine tools.
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:
- Easy image conversion: simply call
to_pil,to_numpy, andto_tensorto convert image formats. Accepts other images, URLs, or local files. - Image processing files: convenience functions like
crop_to_multiple_of_dimensionsfor transformer based patch models like ViT. - Console UI: for long running jobs, a fullscreen console utility that has a progress bar at the bottom and text logging.
- Cloud functions: use
globorexistson 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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.