Skip to main content

Utilities for use in Truss development

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

truss_utils-0.1.0.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

truss_utils-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file truss_utils-0.1.0.tar.gz.

File metadata

  • Download URL: truss_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.9 Linux/5.15.0-1042-azure

File hashes

Hashes for truss_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a61fd24b306c43de012e8fd6fbd1548c0199eb388bee95c561228e416f10ffff
MD5 24d1a4b63908a86d68140f787241805a
BLAKE2b-256 2bf45738af2c92caa164887a83a3986b0c7c1ab88b660161896f073976b1008f

See more details on using hashes here.

File details

Details for the file truss_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: truss_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.9 Linux/5.15.0-1042-azure

File hashes

Hashes for truss_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c82136fdf4deee6dfc75896d27955ca3325a62e72019c489743afbcb7cb48c2b
MD5 3ea75fb9af46a097769c0dd505a8ac13
BLAKE2b-256 d2b1d49ce5fb4554ef9053f010826fba25fe2e62311c5e9b0634f2beaf26ac03

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page