This is a webservice built using FastAPI. It exposes the great Julia topology analysis code developed by Lionel Zoubritzky.
We will add more tools, like zeo++ in due course.
The service also uses file-based caching, using the md5 hash of fileContent as key.
To be usable on Heroku or Dokku, which use PORTenvironmental variables, you need to either create this environmental variable or put it into an .env file. You can start by renaming .env.sample to .env.
For local development, the run_docker.sh script uses 8091.
./build_docker # builds the docker image
./run_docker # starts the serviceFor production, you may want to use Docker compose
docker-compose up --build -dTo test the image, you can go to localhost:$PORT/docs.
You could for example, use the request body from one of the files in the folder .example_requests.
The analysis takes some time (1--2 min) and should result in an object of the following form
{
"rcsrName": "string",
"apiVersion": "string",
"rcsrLink": "string"
}
For the image to work, you need to specify a few settings. You can do this, for example, via an .env file:
CONCURRENCY_LIMITlimits the number of concurrent connections before we raise a503error.WORKERSnumber of workers, we use on CPU per workerPORTwill be the port number at which you can reach the app
You find docs on http://127.0.0.1:$PORT/docs.

