Skip to main content

syft-serve

PyPI Python License Docs Code style: black Ruff OpenMined

Self-hosting should be effortless

Turn any Python function into a self-hosted server in one line. No DevOps required.

import syft_serve as ss
import requests

def hello():
    return "Hi!"

server = ss.create("my_api", {"/": hello})

requests.get(server.url).text  # "Hi!"

Installation

pip install syft-serve

Why syft-serve?

☁️ The cloud isn't yours - Not your computer, not your control
🏠 Yours is inconvenient - Self-hosting means wrestling with configs
✨ Convenience is possible - Self-hosting should be a 1-liner

What it does

# You write:
server = ss.create("my_api", {"/predict": my_function})

# Behind the scenes:
# ✓ Spins up isolated Python environment
# ✓ Installs your dependencies safely  
# ✓ Generates production-ready FastAPI code
# ✓ Manages server process lifecycle
# ✓ Streams logs for easy debugging
# ✓ Cleans up everything when done

# No orphan processes. No port conflicts. No hassle.

See It In Action

Documentation

📖 Full documentation and examples

See interactive tutorials, videos, and complete API reference.

License

Apache 2.0 - see LICENSE file for details.

Metadata

Release files for syft-serve 0.3.11

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

Source distribution (sdist)

Source distribution for syft-serve 0.3.11
File Size Uploaded Provenance Actions
syft_serve-0.3.11.tar.gz 37.1 kB Without provenance Details for syft_serve-0.3.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syft-serve 0.3.11
File Interpreter ABI Platform Actions
syft_serve-0.3.11-py3-none-any.whl Python 3 none any Details for syft_serve-0.3.11-py3-none-any.whl

Total release size: 80.1 kB

Release files / syft_serve-0.3.11.tar.gz

Download URL syft_serve-0.3.11.tar.gz
Size 37.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0102d404a78b36a41ba017f86ca187dd02374e87e517644ae36c1cd739c48222
BLAKE2b-256 checksum
How to use checksums
4254f9bd75aec8382a2ce4c0c5c3a0a0dbb2a20efc3027e40ec3457e295aa5ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.17

Release files / syft_serve-0.3.11-py3-none-any.whl

Download URL syft_serve-0.3.11-py3-none-any.whl
Size 43.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89ee16c79b1c4da909bef6c8489f2f9b3b0e5c4078fbd02fbf7c37ca1de19527
BLAKE2b-256 checksum
How to use checksums
45380f50a68878c3cc836d4cb2061aea06a2038efe6ab0272fc2e91576386d0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.17

Security for syft-serve 0.3.11

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.

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