This repo is intended for external parties to validate the logic and calculation of different products and metrics.
- Python 3.13
- Poetry (ideally installed within a venv)
- Clone the repository:
git clone {repository-url}
cd public-audit- Install dependencies
poetry update- Deploy FastAPI:
poetry run uvicorn main:app After deploying FastAPI, the url in which the instance will be hosted at will be shown within the terminal. - By default, this will be hosted at (http://127.0.0.1:8000)
You can access the API by simply using cURL or copy-pasting the URL + desired endpoint and DAO within Postman or a browser.
{fast_api_url}/{dao}/data/raw{fast_api_url}/{dao}/data/format{fast_api_url}/{dao}/metrics/forum_score/config: DAO configs + data to exclude when calculating forum metrics/discourse: Retrieve, format, and filter the raw data pulled from a DAO's forum discourse api/metrics: Forum metrics, including calculation logic
This project is licensed under the MIT License - see the LICENSE file for details
Please report any security issues or vulnerabilities by creating an issue in the repository.