Skip to content

RaphaelMasset/test_python_pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

test_python_pytest

A collection of small but complete command-line applications written in Python.
Each mini-project focuses on a different real-world task: validating license plates, handling greetings in a banking context, computing fuel usage, and simplifying social text.


Overview

  • License Plate Validator – checks if a plate number follows formatting rules.
  • Bank Greeting Evaluator – assigns a monetary value based on how politely the user greets.
  • Fuel Gauge Calculator – converts fractions into fuel percentages with special cases for empty and full.
  • Text Shortener (Twitter-style) – removes vowels to shorten a message.

Each project can run independently, or all can be accessed from a single interactive menu.


Usage

Clone the repository and run the main script.

Windows (PowerShell / Git Bash)

git clone https://github.com/yourusername/smart-cli-mini-projects.git
cd smart-cli-mini-projects
python bank_fuel_plate_twittr.py

macOS / Linux

git clone https://github.com/yourusername/smart-cli-mini-projects.git
cd smart-cli-mini-projects
python3 bank_fuel_plate_twittr.py

Example Session

Choose a project to run:
1. Plate
2. Bank
3. Fuel
4. Twitter
Enter project name or number: fuel
Fraction: 1/2
50%

Another example:

Choose a project to run:
1. Plate
2. Bank
3. Fuel
4. Twitter
Enter project name or number: twitter
What's the text?: CAPS TEST
CPS TST

Notes

  • All projects run in a terminal/command prompt.
  • Tested with Python 3.11+.
  • Lightweight and dependency-free (except for optional test suite with pytest).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages