Skip to main content

FRA

Fra is a Recommendation based framework. It was created with the idea of have an option for creating content-based recommendations easily via API.

Architecture

Architecture diagram

Requirements

  • pyenv (optional but recommended)
  • poetry
  • python 3.9+
  • postgres
  • redis
  • docker (optional)

Installation

  • create a virtualenv

    pyenv virtualenv 3.9.15 fra pyenv activate fra

  • create a database and update the config.py file with the name and host

    psql; create database fra; \q

  • install the requirements

    poetry install

  • migrate the models

    flask --app server/app db upgrade

Running the app

  • activate the environment

    pyenv activate fra

  • run the app

    flask --app server/app run

-- For async jobs that process recommendations

> celery -A motor.tasks worker  --loglevel=info  

Running the app with docker

  • Run the docker-compose

    docker-compose up

That command will start all the services and the web server can be accessed via browser on http://localhost:5000

OpenAPI docs will be online on YOURDOMAIN/api/swagger/ui

Follow this order to be able to get recommendations:

  1. create an organization
  2. add users to the organization
  3. add the files with the data (some examples on example_data folder)
  4. add file mapping
  5. add user ratings
  6. get recommendations

TODO

  • Build and publish on GCP
  • Add more data set to the examples

Metadata

Release files for fra 2.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fra 2.4.0
File Size Uploaded Provenance Actions
fra-2.4.0.tar.gz 90.6 kB Without provenance Details for fra-2.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fra 2.4.0
File Interpreter ABI Platform Actions
fra-2.4.0-py3-none-any.whl Python 3 none any Details for fra-2.4.0-py3-none-any.whl

Total release size: 112.9 kB

Release files / fra-2.4.0.tar.gz

Download URL fra-2.4.0.tar.gz
Size 90.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5cc23549517fff40cb2da4dc8e322a1ef5b05213822bb8c89b5be4ebd91b8393
BLAKE2b-256 checksum
How to use checksums
8c0285df5792faf806243012740953e1a39abf64f43a8548275592a935ec4337
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.6 Linux/5.19.0-38-generic

Release files / fra-2.4.0-py3-none-any.whl

Download URL fra-2.4.0-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec187b1505d59ca03fea8854d9c552f56d49bb486fde5f764e1728c2548c8df6
BLAKE2b-256 checksum
How to use checksums
a07cc85a978333f9c05b8923026ee240c1c13749adaaab4875a398ffd3cdfb9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.6 Linux/5.19.0-38-generic

Security for fra 2.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page