Skip to content

This repo is intended for external parties to check the logic and calculation of different products and metrics.

License

Notifications You must be signed in to change notification settings

CuriaLab/public-audit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Public Audit

This repo is intended for external parties to validate the logic and calculation of different products and metrics.

Requirements

  • Python 3.13
  • Poetry (ideally installed within a venv)

Installation

  1. Clone the repository:
  git clone {repository-url}
  cd public-audit
  1. Install dependencies
  poetry update
  1. Deploy FastAPI:
  poetry run uvicorn main:app 

Usage

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.

Get raw data

{fast_api_url}/{dao}/data/raw

Get formatted data

{fast_api_url}/{dao}/data/format

Get forum score

{fast_api_url}/{dao}/metrics/forum_score

Project Structure

  • /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

License

This project is licensed under the MIT License - see the LICENSE file for details

Security

Please report any security issues or vulnerabilities by creating an issue in the repository.

About

This repo is intended for external parties to check the logic and calculation of different products and metrics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages