LangGate Server
Server implementation for the LangGate AI Gateway. This package provides the FastAPI server implementation that hosts the LangGate registry API.
Features
- FastAPI-based API server
- Registry endpoints for model information
- Configurable settings through environment variables or config files
- Structured logging with request context
Usage
# Run the server with uvicorn
import uvicorn
from langgate.server import app
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=4000)
Docker Deployment
The LangGate repository includes a Dockerfile specifically for running this server:
# Build the Docker image
docker build -t langgate-server .
# Run the container
docker run -p 4000:4000 langgate-server
You can also use the provided Docker Compose setup for a complete deployment (which runs the server behind an Envoy proxy on port 10000):
# Start the full LangGate stack
make compose-up
# For development with hot reloading
make compose-dev
Configuration
The server can be configured through:
- Environment variables
- A
.envfile in your working directory - A langgate_config.yaml file in your working directory
- Command-line arguments to the uvicorn server
See the main LangGate documentation for more details on configuration options.
Metadata
Release files for langgate-server 0.4.1
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 |
|---|---|---|---|---|
| langgate_server-0.4.1.tar.gz | 5.4 kB | Without provenance | Details for langgate_server-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langgate_server-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for langgate_server-0.4.1-py3-none-any.whl |
Total release size: 13.7 kB
Release files / langgate_server-0.4.1.tar.gz
| Download URL | langgate_server-0.4.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1664fb3644957603668cae2e7b0c0213267baf6226e5c3d1ff3aa64e323eb85a
|
|
BLAKE2b-256 checksum How to use checksums |
a10cd17dc760caa0515ac3a48eb6f43269e2bb870389ea20f9e4d31a8bb269a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.9
|
Release files / langgate_server-0.4.1-py3-none-any.whl
| Download URL | langgate_server-0.4.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b56ae6f2cd829b8e60df4cef4124f4efedd962b7d1e1ea74c47eec58b268f4e
|
|
BLAKE2b-256 checksum How to use checksums |
a541c318ef52bae2703ef9635f543723afa22e2ca23bf852d3fc637d72fd84c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.9
|
Security for langgate-server 0.4.1
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.