Skip to main content

Sculpture

This is a template for a small model inference API.

Installation

To install the Sculpture package, run the following command in your terminal:

pip install culpture

Alternatively, you can clone the GitHub repository and install the package from source:

git clone https://github.com/xianyuntang/sculpture.git
cd sculpture
pip install .

Usage

To use this template, follow these steps:

  • Import the Sculpture class from the sculpture module:
from sculpture import Sculpture
  • Define an inference function that takes an input and produces an output:
inference_function = lambda x: x

Replace lambda x: x with your actual inference function.

  • Create a Sculpture instance by passing your inference function to the constructor:
sculpture = Sculpture(inference_function=inference_function)
  • Start the API server by calling the serve method on the Sculpture instance:
sculpture.serve(debug=True)

You can set the debug argument to False if you don't want to see debug messages.

That's it! Your API should now be up and running, ready to receive requests and return predictions.

Release files for sculpture 0.1.1

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

Source distribution (sdist)

Source distribution for sculpture 0.1.1
File Size Uploaded
sculpture-0.1.1.tar.gz 2.2 kB Details

Built distribution (wheel)

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

Total release size: 4.7 kB

Release files / sculpture-0.1.1.tar.gz

Download URL sculpture-0.1.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d3032eb7fc9314d9ffc8811052cc20639f33758be69448897ce3dc96197b77b4
BLAKE2b-256 checksum
How to use checksums
9d50e60cb842417c1938e1d5df3724618af7cab2e41365ac1454ea851b2224f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / sculpture-0.1.1-py3-none-any.whl

Download URL sculpture-0.1.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2c413f21a70e2ca8728ba31038cc649dab992c3a2336d9972ea53a93350e27c
BLAKE2b-256 checksum
How to use checksums
1904354d8702b17809b1e8759ef9695fa6195fad65bbd4ac7ab6d819736f3ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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