rjgildea / py-ispyb

ISPyB backend server based on FastAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py-ispyb

ISPyB backend server based on FastAPI.

Getting started

You need to have python >= 3.10.

Install requirements with

pip install -r requirements.txt

Define required environment variables

export SQLALCHEMY_DATABASE_URI="mysql+mysqlconnector://<user>:<password>@<hostname>/<db_name>"
export SECRET_KEY="changeme"

Start the server with

sh uvicorn.sh

You can start using the server through the OpenAPI documenation

Further documentation

Documentation can be found in the /docs directory. A web documentation is available for the latest version at https://ispyb.github.io/py-ispyb/.

To serve it locally, follow these steps:

pip install mkdocs
mkdocs serve

Open http://127.0.0.1:8080/

About

ISPyB backend server based on FastAPI

License:GNU Lesser General Public License v3.0


Languages

Language:Python 99.6%Language:Shell 0.4%