pie-server
What pie serve boots (controller, gateway, worker, the built-in inferlets),
inside your Python process on the native GPU engines. Clients connect as they
would to a pie serve: over WebSocket with pie-client, or over the OpenAI /
Anthropic / Gemini HTTP routes.
import asyncio
from pie.config import Config, EngineConfig, ModelConfig, ServerConfig
from pie.server import Server
async def main():
cfg = Config(
server=ServerConfig(listen="127.0.0.1:0"), # port 0: a free one
model=ModelConfig(source="Qwen/Qwen3.5-0.8B"),
engine=EngineConfig(type="cuda", device=["cuda:0"]),
)
async with Server(cfg) as server: # resolves once the model is loaded
client = await server.connect() # a PieClient over ws
print(server.http_url) # the OpenAI / Anthropic / Gemini routes
asyncio.run(main())
Config is what pie serve --config reads; Config.to_toml() renders it.
A Server garbage-collected without leaving the context still stops the
engine, on a background thread.
The wheel carries every engine its platform supports (Linux: CUDA, Vulkan,
wgpu; macOS: Metal, wgpu; Windows: CUDA, Vulkan); EngineConfig.type picks
one at boot. The Node.js twin is @pie-project/server (packages/javascript/server).
Building
cd packages/python/server
uv run --with maturin maturin develop --features cuda # or metal, vulkan, wgpu; several at once
The extension is abi3 (Python 3.10+), so one wheel per platform.
Metadata
Release files for pie-server 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pie_server-0.6.0.tar.gz | 7.8 MB | Without provenance | Details for pie_server-0.6.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| pie_server-0.6.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for pie_server-0.6.0-cp310-abi3-win_amd64.whl |
| pie_server-0.6.0-cp310-abi3-manylinux_2_35_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.35+ x86-64 | Details for pie_server-0.6.0-cp310-abi3-manylinux_2_35_x86_64.whl |
| pie_server-0.6.0-cp310-abi3-manylinux_2_35_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.35+ ARM64 | Details for pie_server-0.6.0-cp310-abi3-manylinux_2_35_aarch64.whl |
| pie_server-0.6.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for pie_server-0.6.0-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 145.4 MB
Release files / pie_server-0.6.0.tar.gz
| Download URL | pie_server-0.6.0.tar.gz |
|---|---|
| Size | 7.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bab7e9263f010bb2b79e143297d3a6e37d984cc5fb497c52bb3bad095b7eaf8
|
|
BLAKE2b-256 checksum How to use checksums |
fd5c797873f649b82abb957ad21531f1507e5c8582e8b4b646f5aa0a4ea6f295
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pie_server-0.6.0-cp310-abi3-win_amd64.whl
| Download URL | pie_server-0.6.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 36.1 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
71a3ba08ce329d9b817792203ad64ed39593e7ece7f00898a6be9f7b7a378b6a
|
|
BLAKE2b-256 checksum How to use checksums |
78ca86226aff7f8001bd24f32acf620c479a6360d23cab425387ee68b759921b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pie_server-0.6.0-cp310-abi3-manylinux_2_35_x86_64.whl
| Download URL | pie_server-0.6.0-cp310-abi3-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 38.0 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
55209fe8a9f83c5a9faf07898e39dbe6b9e04c6796a4604ba529600f996a71ed
|
|
BLAKE2b-256 checksum How to use checksums |
e64d4ca5d0ec6dd39b8afd3ad882771f014a6edad7ed1a481bd33cf3384edd32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pie_server-0.6.0-cp310-abi3-manylinux_2_35_aarch64.whl
| Download URL | pie_server-0.6.0-cp310-abi3-manylinux_2_35_aarch64.whl |
|---|---|
| Size | 35.6 MB |
| Tags | CPython 3.10 Linux glibc 2.35+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
d5d1d6873cd549b0b910a38c0bdffcd8171ddca55899b564b228625391050c22
|
|
BLAKE2b-256 checksum How to use checksums |
28fc00925ae88de1127dcd4616526b047e12a708c6065e84ad915a20eb4fba25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pie_server-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | pie_server-0.6.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 27.8 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
507a094716c9d66ca7a8223474c6e4ec4e1e439088072a3c2b40b79c4cbb6df0
|
|
BLAKE2b-256 checksum How to use checksums |
7a03452e96b4bf70eddfe72b1256ad50941aab615b1a3e23b0b20c3493ec1104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for pie-server 0.6.0
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.