Skip to content

phdepaula/Packages-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Package Classifier for Dispatch Queue

This project implements a package classifier based on its dimensions and mass, determining the appropriate dispatch stack.

πŸ“Œ Package Classification

Packages are categorized according to the following criteria:

  • 🟒 STANDARD: Packages that are neither bulky nor heavy can be handled normally.
  • 🟑 SPECIAL: Packages that are either bulky or heavy cannot be handled automatically.
  • πŸ”΄ REJECTED: Packages that are both bulky and heavy are rejected.

βš™οΈ How It Works?

The classifier analyzes packages based on their dimensions (height, width, and length) and mass, determining the appropriate dispatch stack.

πŸ’‘ Classification Rules:

  • A package is bulky if its volume (width Γ— height Γ— length) is β‰₯ 1,000,000 cmΒ³ or any of its dimensions is β‰₯ 150 cm.
  • A package is heavy if its mass is β‰₯ 20 kg.
  • A package is rejected if it is both bulky and heavy.

πŸš€ Technologies Used

πŸ›  Setup & Installation

Create a Virtual Environment

Run the following command in the project root folder:

python -m venv venv

Activate the Virtual Environment

  • Windows:
    venv\Scripts\activate
  • macOS/Linux:
    source venv/bin/activate

Install Dependencies

Install all required dependencies from the requirements.txt file:

pip install -r requirements.txt

Run the Tests

Execute the test suite using Pytest:

pytest

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages