Skip to main content

truss-utils

This package is a repository of common functions that help with developing production AI/ML models with Truss.

Use

In the model.py of your truss, you can do something like the following:

from truss_utils.image import pil_to_64

class Model:
...

    def predict(self, model_input):
        # call Stable diffusion
        ...

        return pil_to_b64(image)

Metadata

Release files for truss-utils 0.1.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 truss-utils 0.1.0
File Size Uploaded Provenance Actions
truss_utils-0.1.0.tar.gz 1.3 kB Without provenance Details for truss_utils-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for truss-utils 0.1.0
File Interpreter ABI Platform Actions
truss_utils-0.1.0-py3-none-any.whl Python 3 none any Details for truss_utils-0.1.0-py3-none-any.whl

Total release size: 3.1 kB

Release files / truss_utils-0.1.0.tar.gz

Download URL truss_utils-0.1.0.tar.gz
Size 1.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a61fd24b306c43de012e8fd6fbd1548c0199eb388bee95c561228e416f10ffff
BLAKE2b-256 checksum
How to use checksums
2bf45738af2c92caa164887a83a3986b0c7c1ab88b660161896f073976b1008f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.9.9 Linux/5.15.0-1042-azure

Release files / truss_utils-0.1.0-py3-none-any.whl

Download URL truss_utils-0.1.0-py3-none-any.whl
Size 1.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c82136fdf4deee6dfc75896d27955ca3325a62e72019c489743afbcb7cb48c2b
BLAKE2b-256 checksum
How to use checksums
d2b1d49ce5fb4554ef9053f010826fba25fe2e62311c5e9b0634f2beaf26ac03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.9.9 Linux/5.15.0-1042-azure

Security for truss-utils 0.1.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.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