Welcome
This section provides comprehensive API documentation for all Polyflux packages. The documentation covers core protocols, client implementations, and server interfaces with full IDE support.Core Protocols
Fundamental protocols and interfaces for all implementations
Protocol Interfaces
Complete protocol definitions and type interfaces
Protocol Data Units
Message containers for easy data handling
Core Concepts
Protocol Data Units (PDUs)
All communication in Polyflux uses message containers for structured communication:Exchange Protocol
The fundamental communication interface with flexible parameter passing:Easy Configuration
All components use simple setup with validation:Getting Started
Here are practical examples to get you started with Polyflux:WebSocket Example
Real-time communication with WebSocket:Available Packages
Core Package (polyflux.core)
Status: Production Ready
Core building blocks:
- Exchange protocols (send, receive, exchange)
- Simple configuration
- Authentication protocols
- Reliability and error handling
- Server protocols (binding, dispatching, serving)
- Enhanced type system with validation
- Message containers
HTTP Package (polyflux.http)
Status: Production Ready
Complete HTTP client and server implementation:
- Full async HTTP client with context managers
- ASGI server integration with Hypercorn
- Easy configuration setup
- Automatic error recovery
- Request/response interception
- Authentication support
- Reliable (115 tests)
WebSocket Package (polyflux.websocket)
Status: Production Ready
Complete WebSocket client and server implementation:
- Full async WebSocket client with connection pooling
- WebSocket server with broadcasting and real-time capabilities
- Easy configuration setup
- Performance features including compression and monitoring
- Error handling and reliability features
- Interception and middleware support
- Reliable (280 tests)
Future Packages
In Development:polyflux.grpc: gRPC client and server implementationpolyflux.graphql: GraphQL client and server implementationpolyflux.mqtt: MQTT client and broker implementation for IoTpolyflux.kafka: Apache Kafka client for distributed streamingpolyflux.database: Database client with unified query interface
Getting Started
- Install packages:
uv add polyflux-core polyflux-http polyflux-websocket - Import protocols: Choose the protocols that match your needs
- Build clients: Create implementations using message containers
- Get IDE support: Full autocomplete and validation
- Build applications: Create robust, type-safe networked applications

