Generic FastAPI server process management and deduplication
Project description
syft-serve
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file syft_serve-0.2.9.tar.gz.
File metadata
- Download URL: syft_serve-0.2.9.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4717a997213ef1b3b3072b47d15dc2e9beff5b630c6bbcc40c48ea6ed955cce5
|
|
| MD5 |
a6419ed883ed6693a0c9cf86b5815daf
|
|
| BLAKE2b-256 |
046ab08271115c2318580bde2f1ed09a26d348c4e75b5c141ea3495073d6d286
|
File details
Details for the file syft_serve-0.2.9-py3-none-any.whl.
File metadata
- Download URL: syft_serve-0.2.9-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b3958a338ab14342b53e04496d5cf860706787989e3ffae850a4f62bedc8028
|
|
| MD5 |
7b58ee661519119e5b6e3487aa6de500
|
|
| BLAKE2b-256 |
034b765e6af48f4e211cdddd2b3c3cce8f4954383beca0b4804c58b0f9b1c463
|