clippie-0.0.2
توضیحات
A small API to load and search for similar products based on TF-IDF algorithm
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | clippie-0.0.2 |
| نام | clippie |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Masha Loianych |
| ایمیل نویسنده | m.loianych@gmail.com |
| آدرس صفحه اصلی | https://github.com/mloyanich/online-retail-app |
| آدرس اینترنتی | https://pypi.org/project/clippie/ |
| مجوز | - |
# online-retail-app
This is a FastAPI application that accepts a product description as input and returns the top 10 most similar products that are in the transaction data.
The dataset used in this application is located at the [following URL](https://archive.ics.uci.edu/ml/datasets/online+retail)
## Install
```bash
pip install clippie
```
Install the application from the local directory
```bash
pip install -e .
```
## Run
Run the application with the following command
```bash
clippie
```
or
```bash
python3 src/clippie/main.py
```
Upon start the application loads sample dataset that is located in the `data` folder
## API endpoints
Application listens on http://localhost:8000
Available endpoints:
- `/docs` - GET - API documentation
- `/product` - GET - displays list of products
- `/product?search=coala` - GET - find relevant products to the provided description
- `/pipeline` - POST
## TODO
- [ ] package Java jar file in order to open excel with pyspark
- [ ] enable tempfile
- [ ] add history of pipeline execution to GET pipeline
- [ ] GET pipeline to see the number of pipeline that has been executed
- [ ] the collision will happen if pipelines run in parallel?
- [ ] Github action
- [ ] Stop Spark on program termination
- [ ] BUG - spark is loaded twice!
- [ ] add debug mode with reload=True
نیازمندی
| مقدار | نام |
|---|---|
| - | uvicorn |
| - | fastapi |
| - | pandas |
| - | pyspark |
| - | openpyxl |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl clippie-0.0.2:
pip install clippie-0.0.2.whl
نصب پکیج tar.gz clippie-0.0.2:
pip install clippie-0.0.2.tar.gz