+
Skip to content

uc-cdis/requestor

Repository files navigation

Requestor

Requestor exposes an API to manage access requests.

View API Documentation

The server is built with FastAPI and packaged with Poetry.

Local installation

Install Requestor

Install required software:

Then use poetry install to install the dependencies. Before that, a virtualenv is recommended. If you don't manage your own, Poetry will create one for you during poetry install, and you must activate it with poetry shell.

Create configuration file

Requestor requires a configuration file to run. We have a command line utility to help you create one based on a default configuration.

The configuration file itself will live outside of this repo (to prevent accidentally checking in sensitive information like database passwords).

To create a new configuration file from the default configuration:

python cfg_help.py create

This file will be placed in one of the default search directories for Requestor.

To get the exact path where the new configuration file was created, use:

python cfg_help.py get

The file should have detailed information about each of the configuration variables. Remember to fill out the new configuration file!

To use a configuration file in a custom location, you can set the REQUESTOR_CONFIG_PATH environment variable.

Run Requestor

Run database schema migration:

alembic upgrade head

Run the server with auto-reloading:

python run.py
OR
uvicorn requestor.asgi:app --reload

Try out the API at: http://localhost:8000/docs.

About

API to manage access requests

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 15

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载