Analytic Continuation Server
FastAPI server for domain coloring visualization, coordinate transforms, Laurent series fitting, and analytic continuation.
Contents:
- Installation
- Quick Start Guide
- API Reference
- Pydantic Models
PointModelComplexModelTransformParamsModelViewBoundsModelSingularityModelSplineParametersModelSplineExportModelTransformPointRequestTransformPointsRequestTransformSplineExportRequestZoomRequestPanRequestDomainColorRequestValidationRenderRequestMeromorphicRequestMeromorphicResponseLaurentMapModelLaurentFitRequestLaurentFitResponsePoleModelInvertRequestInvertResponseHolomorphicCheckRequestHolomorphicCheckResponseCompositionRequestCompositionResponseContourPreCheckRequestContourPreCheckResponseIntrinsicCurveRequestCurvatureMetricsModelJacobianMetricsModelComplexityScoresModelSuggestedConfigModelIntrinsicCurveResponseWebGLLaurentCoeffsContinuationDefinitionWebGLRenderDataRequestWebGLRenderDataResponseWebGLRenderWithProgressRequestSessionStartRequestSessionResponseCheckResumableRequest- Base Models
- Request Models
- Response Models
Installation
Install from PyPI:
pip install analytic-continuation-server
Or install with optional domain coloring support:
pip install analytic-continuation-server[domaincolor]
Quick Start
Run the server with uvicorn:
uvicorn analytic_continuation_server:app --reload
Or use the CLI entry point:
serve-analytic-continuation --port 8000
Once running, visit:
Swagger UI: http://localhost:8000/docs
ReDoc: http://localhost:8000/redoc
Health check: http://localhost:8000/api/health
API Overview
The server provides the following endpoint groups:
- Health (
/api/health) Health check and API information
- Transform (
/api/transform/*) Coordinate transformation between screen and logical space:
POST /api/transform/point- Transform a single pointPOST /api/transform/points- Transform multiple pointsPOST /api/transform/params-from-bounds- Create params from view boundsPOST /api/transform/zoom- Apply zoom to parametersPOST /api/transform/pan- Apply pan to parameters
- Meromorphic (
/api/meromorphic/*) Build meromorphic functions from zeros and poles:
POST /api/meromorphic/build- Build expression from zeros/polesPOST /api/meromorphic/domaincolor- Build and visualize
- Domain Coloring (
/api/domaincolor) Generate domain coloring images:
POST /api/domaincolor- Generate PNG imageGET /api/domaincolor/validate- Validate expressionPOST /api/domaincolor/validation-render- Render with overlays
- Laurent (
/api/laurent/*) Laurent series fitting and analytic continuation:
POST /api/laurent/precheck- Quick contour validationPOST /api/laurent/fit- Fit Laurent map to curvePOST /api/laurent/invert- Invert point through mapPOST /api/laurent/compose- Compute continuationPOST /api/laurent/webgl-data- Get WebGL render data
- Session (
/api/session/*) Session management and progress tracking:
POST /api/session/start- Start new sessionGET /api/session/{id}/progress/stream- SSE progress streamGET /api/session/{id}/continuation- Get continuation definition