Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textile_quote_engine_x24329274-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file textile_quote_engine_x24329274-0.1.0.tar.gz.

File metadata

File hashes

Hashes for textile_quote_engine_x24329274-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c60d812d30bca7712b13b4ae100c824d18a9667a3c6455403c050cd3df6a3d8a
MD5 a89dea6cf0c5dbf4a3b330fdb720adf2
BLAKE2b-256 86abfc332d24498558294a2bfd436ccfd5b0e09871d9cdf32646c15a9585a810

See more details on using hashes here.

File details

Details for the file textile_quote_engine_x24329274-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for textile_quote_engine_x24329274-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34db2b73ad5d4062c2d18d9b7f6c58d91f4a1846fa66e20ceaf05e406b42200d
MD5 033863fb034719d5900a85149a1c2015
BLAKE2b-256 aaca05a31af7c0da8b06912e5900decf74c3edda309470ac6d36220e82bdb452

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page