Skip to main content

Server implementation for LangGate AI Gateway

Project description

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 .env file 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.

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

langgate_server-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

langgate_server-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file langgate_server-0.1.1.tar.gz.

File metadata

  • Download URL: langgate_server-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.9

File hashes

Hashes for langgate_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8ffca201d9386a9f6bb44d6ce0d9da8305fc8f3ac734b3411dfd22611c649853
MD5 a9722f9d48339a6bde3b2e8116e6e7de
BLAKE2b-256 dced0a637f99f010b29402bbda0dfe047cd24661985677f55ef41e16b777e27e

See more details on using hashes here.

File details

Details for the file langgate_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langgate_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eea7b9bccd0678475ec5a4e4f9d8af61a080e3a51abe8b8ceeee2d997f928cd4
MD5 085f751c6e25a2d473144945269961b5
BLAKE2b-256 4e04a3f077b6c53fb19b77f3a9fa78345735c716c6698d802e91830efd60fa8e

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