Skip to main content

Tool for doing retention rate analysis

Project description

Mkdocs Weblink: https://areg-hovakimyan.github.io/CRR/

API Documentation

This API is designed to manage customers, products, orders, modeling, and churn rates for a retail business application.

Setup

Follow these steps to get your API up and running on your local machine:

  1. Clone the Repository

    git clone https://github.com/areg-hovakimyan/CRR
    
  2. Move to project directory

    cd CRR
    
  3. Install required libraries

    pip install -r requirements.txt
    
  4. Run the Application

    uvicorn run:app 
    

Base URL

All URLs referenced in the documentation have the following base:

http://127.0.0.1:8000/docs

Customer Endpoints

  • Get Customer Emails by Cluster

  • Create a Customer

    • POST /customers/
    • Creates a new customer record.
    • Swagger UI: Create Customer
  • Get a Customer

    • GET /customers/{customer_id}
    • Retrieves a customer by ID.
    • Swagger UI: Get Customer
  • Delete a Customer

    • DELETE /customers/{customer_id}
    • Deletes a customer by ID.
    • Swagger UI: Delete Customer
  • Update a Customer

    • PATCH /customers/{customer_id}
    • Updates an existing customer.
    • Swagger UI: Update Customer

Product Endpoints

  • Create a Product

    • POST /products/
    • Creates a new product record.
    • Swagger UI: Create Product
  • Get a Product

    • GET /products/{product_id}
    • Retrieves a product by ID.
    • Swagger UI: Get Product
  • Delete a Product

    • DELETE /products/{product_id}
    • Deletes a product by ID.
    • Swagger UI: Delete Product
  • Update a Product

    • PATCH /products/{product_id}
    • Updates an existing product.
    • Swagger UI: Update Product

Order Endpoints

  • Create an Order

    • POST /orders/
    • Creates a new order.
    • Swagger UI: Create Order
  • Get an Order

    • GET /orders/{order_id}
    • Retrieves an order by ID.
    • Swagger UI: Get Order
  • Delete an Order

    • DELETE /orders/{order_id}
    • Deletes an order by ID.
    • Swagger UI: Delete Order
  • Update an Order

    • PATCH /orders/{order_id}
    • Updates an existing order.
    • Swagger UI: Update Order

Modeling Endpoints

  • Create a Modeling Record

    • POST /modeling/
    • Creates a new modeling record for a customer.
    • Swagger UI: Create Modeling
  • Get a Modeling Record

    • GET /modeling/{customer_id}
    • Retrieves a modeling record by customer ID.
    • Swagger UI: Get Modeling
  • Delete a Modeling Record

    • DELETE /modeling/{customer_id}
    • Deletes a modeling record by customer ID.
    • Swagger UI: Delete Modeling
  • Update a Modeling Record

    • PATCH /modeling/{customer_id}
    • Updates an existing modeling record.
    • Swagger UI: Update Modeling

Churn Rate Endpoints

  • Create a Churn Rate Record

  • Get a Churn Rate Record

    • GET /churnrate/{risk_level}
    • Retrieves a churn rate record by risk level.
    • Swagger UI: Get Churn Rate
  • Delete a Churn Rate Record

    • DELETE /churnrate/{risk_level}
    • Deletes a churn rate record by risk level.
    • Swagger UI: Delete Churn Rate
  • Update a Churn Rate Record

    • PATCH /churnrate/{risk_level}
    • Updates an existing churn rate record.
    • Swagger UI: Update Churn Rate

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

crr-0.0.3.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

CRR-0.0.3-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file crr-0.0.3.tar.gz.

File metadata

  • Download URL: crr-0.0.3.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for crr-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fb51e79d7e47d5f2397b3a0ff704e84ff699216509ec8913c620d8c1c28e69a8
MD5 d4f966adfd22f8f5bc0c7260ef66c4b1
BLAKE2b-256 bc1ca077cc501d3c6be378fd0b9ca90d403ef28222e7a3a05281f9da2eab7994

See more details on using hashes here.

File details

Details for the file CRR-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: CRR-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for CRR-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 56744e72759b8c06a0f541064f9d76391cb1e1d9a4a20e5cde05bd63b78ca4a9
MD5 f546d244e475d23bf9682d39f804f53c
BLAKE2b-256 960200154d1931f142127ec727797e180143645c5831bd1aac31b6440833179a

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