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.2.5.tar.gz (23.4 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.2.5-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for syft_serve-0.2.5.tar.gz
Algorithm Hash digest
SHA256 f273c60c7bfc1fc7151e13fe2fbb1580be8b650766c20fba7ffbc58aba946c68
MD5 41cec3beb59db95d5da20d75b72e76f8
BLAKE2b-256 738e9480a119223a60989fa5fd2e2bc48985eb3ae0f33c097182becc765c734b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for syft_serve-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6222d37edd3f045651ae87f2a38ccc58743994bee92bb2558e801f176c0bc5f8
MD5 a31adb7ec171a57007e64781096e52ec
BLAKE2b-256 dba84e2d7b33fad86b18a190599c0634a46226065a96e4004458ff74a4c103e5

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