Validated wholesale textile quotation and weight calculations
Project description
Textile Quote Engine
textile-quote-engine-x24329274 provides reusable, deterministic calculations
for wholesale fabric quotations. It validates fabric dimensions and commercial
inputs, calculates required area and estimated weight, applies waste,
finish/rush surcharges and volume discounts, and returns an itemised result.
from textile_quote_engine import FabricQuoteCalculator, FabricQuoteRequest
request = FabricQuoteRequest(
fabric_type="Cotton Twill",
price_per_sqm="8.50",
length_m="50",
width_m="1.5",
quantity=10,
gsm="220",
waste_percentage="5",
finish="waterproof",
)
quote = FabricQuoteCalculator().calculate(request)
print(quote.total)
All monetary and measurement calculations use decimal.Decimal to avoid
binary floating-point rounding surprises.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textile_quote_engine_x24329274-0.1.0.tar.gz.
File metadata
- Download URL: textile_quote_engine_x24329274-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c60d812d30bca7712b13b4ae100c824d18a9667a3c6455403c050cd3df6a3d8a
|
|
| MD5 |
a89dea6cf0c5dbf4a3b330fdb720adf2
|
|
| BLAKE2b-256 |
86abfc332d24498558294a2bfd436ccfd5b0e09871d9cdf32646c15a9585a810
|
File details
Details for the file textile_quote_engine_x24329274-0.1.0-py3-none-any.whl.
File metadata
- Download URL: textile_quote_engine_x24329274-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34db2b73ad5d4062c2d18d9b7f6c58d91f4a1846fa66e20ceaf05e406b42200d
|
|
| MD5 |
033863fb034719d5900a85149a1c2015
|
|
| BLAKE2b-256 |
aaca05a31af7c0da8b06912e5900decf74c3edda309470ac6d36220e82bdb452
|