Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teloryfrozy/vinted-academy-backend
🐍 Python Shipment discount calculation module for Vinted Academy
https://github.com/teloryfrozy/vinted-academy-backend
Last synced: 21 days ago
JSON representation
🐍 Python Shipment discount calculation module for Vinted Academy
- Host: GitHub
- URL: https://github.com/teloryfrozy/vinted-academy-backend
- Owner: teloryfrozy
- Created: 2024-03-09T03:39:35.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-15T20:47:12.000Z (10 months ago)
- Last Synced: 2024-11-06T12:23:31.459Z (2 months ago)
- Language: Python
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vinted-Academy-Backend
🐍 Python Shipment discount calculation module for Vinted Academy## Features
- Calculate shipment prices and apply discounts based on the guidelines provided in the assignment.
- Unit tests of functions are written in `tests/tests.py`.
- Code is clearly written, organized, and divided into three main modules:
- **Data Accessor (`utils/data_accessor.py`):** Access and return the data from predefined constants in `utils/constants.py`.
- **Data Validator (`utils/data_validator.py`):** Validate the conformity of data to ensure accurate processing.
- **Engine (`utils/engine.py`):** Handle the execution of algorithms for shipment discount calculations.
- An executor `main.py` file that coordinates the overall process of adding discounts to the transactions.## Metadata
- Author: Augustin ROLET ([GitHub](https://github.com/teloryfrozy/))
- Version: 1.0.0## Requirements
- Python 3 - Version used in development: 3.11.2## Get started
```bash
git clone -b main https://github.com/teloryfrozy/Vinted-Academy-Backend.git
cd Vinted-Academy-Backend
python main.py input.txt
```### Running test
Command to run the tests:
```python3 tests/tests.py```