Skip to main content

A small API to load and search for similar products based on TF-IDF algorithm

Project description

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

Install

pip install clippie

Install the application from the local directory

pip install -e .

Run

Run the application with the following command

clippie

or

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clippie-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

clippie-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file clippie-0.0.2.tar.gz.

File metadata

  • Download URL: clippie-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for clippie-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d65ae4a9ba5c896d15851dc283bc8e26621a932f6ce71382f0d5d5a53c3cf9ff
MD5 565afeb4ff66bdffa2d436f919e05384
BLAKE2b-256 896e5f3a434d7177bb76f62ab560a92d572558dabb15d97cbf7d11ca79c06492

See more details on using hashes here.

File details

Details for the file clippie-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: clippie-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for clippie-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6e523352ee7afbf5ffab08390bac079aa0237345fbe2fea723322715060622b6
MD5 f69962a109c5ffe5558dc730c40d8d81
BLAKE2b-256 4f2914f5ec96c8fe1c60afaccb3e635f0da964b4760ce8a6d23f44be6eb3cc56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page