Skip to main content

Generic FastAPI server process management and deduplication

Project description

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.

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

syft_serve-0.3.4.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syft_serve-0.3.4-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

Details for the file syft_serve-0.3.4.tar.gz.

File metadata

  • Download URL: syft_serve-0.3.4.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.17

File hashes

Hashes for syft_serve-0.3.4.tar.gz
Algorithm Hash digest
SHA256 257cbf9af52c87e001e65a212aa2a3552fc6bb472c0800a65c7eda5c5040c2ab
MD5 6c9e1b904adeadea62716d610c64ef28
BLAKE2b-256 62b22702ab70840afbf6c0fa5b3cbe2e7c1bb622d89477c3c6daf445a5e3288d

See more details on using hashes here.

File details

Details for the file syft_serve-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: syft_serve-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 41.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.17

File hashes

Hashes for syft_serve-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 af17688fb8319d9c692a380b74294a912dcfdae7f63c1b4791aa63b10db143a6
MD5 cad8cb3ef203c4327da42bd7ff1e1ac2
BLAKE2b-256 e436de2ba6bda68e603ccb0492827ace8a995762517f14dbb1c356cb912bd2e6

See more details on using hashes here.

Supported by

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