Metadata-Version: 2.2
Name: zen_temple
Version: 0.2.7
Summary: The visualization plattform for ZEN Garden
Author-email: Vinzenz Muser <muserv@ethz.ch>
Project-URL: Homepage, https://github.com/ZEN-universe/ZEN-temple
Project-URL: Issues, https://github.com/ZEN-universe/ZEN-temple/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: uvicorn
Requires-Dist: fastapi[standard]
Requires-Dist: fastapi-cache2
Requires-Dist: python-dotenv
Requires-Dist: zen-garden
Requires-Dist: mypy>=1.14.1

# ZEN Temple

ZEN Temple is a FastAPI Application. After installing it with `pip install -e .`, you can start the application with  `uvicorn src.main:app --reload`.

## Folder structure

The folder and file structure is the following:

### Explorer
`explorer` contains the html files for the frontend. 

> [!WARNING]  
> Do not edit the files in this folder. This folder is automatically generated by the frontend repository pipeline.


### Models
`models` contains the Pydantic-models that are used for the documetnation. Some of these models also include generators that create an instance of the model given the path of a solution. See https://fastapi.tiangolo.com/tutorial/body/#create-your-data-model

### Repositories
`repositories` contains the repositories for the data access. These provide an abstraction layer for the routers such that the data access is separtated from the data source. Arguably, the generators defined in the models should be part of the repository in order to separate the instanciation of the models from the way that the solutions are stored. For more information visit https://www.umlboard.com/design-patterns/repository.html

### Routers
`routers` contains the FastAPI routers which define the different paths of the API server. For more information visit https://fastapi.tiangolo.com/tutorial/bigger-applications/

### Config
`config.py` contains the config of the application.

### Main
`main.py` contains the setup of the FastAPI application. For more information visit https://fastapi.tiangolo.com/tutorial/bigger-applications/

## Releasing

In order to release a new version to Pypi you have to create a new tag in the correct semantic versioning form (i.e. `v[0-9]+.[0-9]+.[0-9]+`). Whenever such a tag is created, a new release is generated, the pyproject.toml file is updated and a new version is being published to Pypi.
