Metadata-Version: 2.2
Name: secretflow-serving-lib
Version: 0.9.0b0
Summary: Serving is a subproject of Secretflow that implements model serving capabilities.
Author: SecretFlow Team
Author-email: secretflow-contact@service.alipay.com
License: Apache 2.0
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
Requires-Dist: grpcio!=1.48.0,>=1.42.0
Requires-Dist: protobuf<5,>=4
Requires-Dist: pyarrow==14.0.2
Requires-Dist: numpy<2
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

# SecretFlow-Serving

[![CircleCI](https://dl.circleci.com/status-badge/img/gh/secretflow/serving/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/secretflow/serving/tree/main)

SecretFlow-Serving is a serving system for privacy-preserving machine learning models.

## Serve a model

```bash
# Download the Secretflow Serving Docker image
docker pull secretflow/serving-anolis8:latest

# Start Secretflow Serving container and open the REST API port
cd examples

docker-compose up -d

# Query the model using the predict API
curl --location 'http://127.0.0.1:9010/PredictionService/Predict' \
    --header 'Content-Type: application/json' \
    --data '{
        "service_spec": {
            "id": "test_service_id"
        },
        "fs_params": {
            "alice": {
                "query_datas": [
                    "a"
                ]
            },
            "bob": {
                "query_datas": [
                    "a"
                ]
            }
        }
    }'

```

## Contribution Guidelines

If you would like to contribute to SecretFlow-Serving, please check [Contribution guidelines](CONTRIBUTING.md).

This documentation also contains instructions for [build and testing](CONTRIBUTING.md#build).
