fra-2.4.0
توضیحات
Simple Recommendation System, content based.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fra-2.4.0 |
| نام | fra |
| نسخه کتابخانه | 2.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Eliecer Daza |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://gitlab.com/elin3t/fra |
| آدرس اینترنتی | https://pypi.org/project/fra/ |
| مجوز | MIT |
# 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

## 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
نیازمندی
| مقدار | نام |
|---|---|
| >=1.5.0,<2.0.0 | pandas |
| >=2.2.1,<3.0.0 | flask-rebar |
| >=3.1.0,<4.0.0 | Flask-Migrate |
| >=4.3.4,<5.0.0 | redis |
| >=5.2.7,<6.0.0 | celery |
| >=0.4.3,<0.5.0 | Flask-CeleryExt |
| >=2.9.5,<3.0.0 | psycopg2-binary |
| >=20.1.0,<21.0.0 | gunicorn |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl fra-2.4.0:
pip install fra-2.4.0.whl
نصب پکیج tar.gz fra-2.4.0:
pip install fra-2.4.0.tar.gz