🧪 polymercost
Python tools for polymer compounding: Calculate Cost, Specific Gravity (SPG), and estimate key material properties like Durometer, Modulus, and Tensile strength for compounded formulas.
💾 Installation
You can install polymercost using pip:
pip install polymercost
🚀 Usage
Here's a quick example of how to use the core functions:
Python
from polymercost import spg_costs, flex_clear_dop
Define the compound formula: a list of tuples (Parts per Hundred Resin (phr), Specific Gravity (spg), Cost per pound ($))
Python
formula = [(100, 1.4, 0.475), (20, 2.71, 0.0625)]
Calculate SPG, Cost by Weight, and Cost by Volume
spg, cost_wt, cost_vol = spg_costs(formula)
print(f"Calculated Specific Gravity (SG): {spg:.3f}")
print(f"Cost per Weight ($/lb): {cost_wt:.4f}")
print(f"Cost per Volume ($/in³): {cost_vol:.4f}")
Example: Estimate properties for a clear flexible PVC compound with 50 phr DOP plasticizer
duro, mod, tens, elong, clash, brittle = flex_clear_dop(50)
print(f"\nEstimated Properties (50 phr DOP):")
print(f" Durometer (Shore A): {duro}")
print(f" 100% Modulus (psi): {mod}")
print(f" Tensile Strength (psi): {tens}")
✨ Features
spg_costs: The core function for calculating Specific Gravity, Cost/Weight, and Cost/Volume based on a compounded formula.
Property Estimators: Functions (like flex_clear_dop) to estimate properties for common polymer systems (e.g., Durometer, Tensile Strength, Elongation). These are for example only as some are made on very sparse datasets. Ideally you would derive your own formulas here from your own lab data. These are included and based off limited data.
📝 License
polymercost is released under the MIT License.
Metadata
Release files for polymercost 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| polymercost-0.1.1.tar.gz | 9.5 kB | Without provenance | Details for polymercost-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polymercost-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for polymercost-0.1.1-py3-none-any.whl |
Total release size: 18.5 kB
Release files / polymercost-0.1.1.tar.gz
| Download URL | polymercost-0.1.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef4adff5ba66d3e6b86bf823cd40711a770c5d59f88f0a3d4f1cbff1161a8c77
|
|
BLAKE2b-256 checksum How to use checksums |
3c81fc2f8af9a74da4a4bea30e17879e94ab638a737c77d3ea3efe034afbb425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / polymercost-0.1.1-py3-none-any.whl
| Download URL | polymercost-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91dbeb48036bcc42fff41f21f4aa9167e9475315303b8a9abc854eae5422b9a6
|
|
BLAKE2b-256 checksum How to use checksums |
dc9c973ee14099ea3f78f95526ac3b4803504ddbddbe4bb37e7699987867ef0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Security for polymercost 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.