Just a little Python script for T-Shirts stocks handling. 👕
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brume 0b350eb6f8
First commit
3 weeks ago
README.md First commit 3 weeks ago
config.ini First commit 3 weeks ago
t-shirts-counter.py First commit 3 weeks ago

README.md

Super T-Shirts Size Counter 👕

Just a little Python script for T-Shirts stocks handling. 👕👕

Usage

./t-shirts-counter.py

The script will ask you how many T-shirts you want to buy. It will then compute the number of T-shirts in each sizes you need.

Configuration

There is a config.ini file that you can fill with your sizes preferences, in the section [sizes]. You can add all the sizes you want.

There is also an optionnal section [stocks] that you can fill with you actual remaining stocks. The script will compute the number of T-shirts you need to buy in order to get proportionnal stocks again.

Exemple of config.ini file

; Sizes, in percent
[sizes]
XS = 9
S = 17
M = 25
L = 26
XL = 15
XXL = 8
; Stocks
[stocks]
XS = 0
S = 4
M = 56
L = 23
XL = 1
XXL = 0