TMIN - Pipe Thickness Analysis Tool
TMIN (an abbreviation for "minimum thickness") is an open source python package designed to help engineers determine if corroded process piping in refineries and pertrochemical plants are safe and API-compliant — in seconds.
Many oil and gas companies are faced with maintaining thousands of miles of 100+ year old piping networks supporting multi-million dollar/year processing operations. There is rarely a simple solution to immediately shutdown a process pipe - as these shutdowns more often than not impact other units and cost companies millions in time and resources.
TMIN can be used as a conservative and rapid engineering support tool for assessing piping inspection data and determine how close the pipe is to its end of service life.
How to install and get started
Installation:
pip install tmin
Basic Usage
from tmin import PIPE
# Create pipe instance
pipe = PIPE(
pressure=50, # Design pressure (psi)
nps=2, # Nominal pipe size (inches)
schedule=40, # Pipe schedule
pressure_class=150, # Pressure class
metallurgy="Intermediate/Low CS",
yield_stress=23333 # Yield stress (psi)
)
# Analyze measured thickness
results = pipe.analyze(
measured_thickness=0.060, # Measured thickness (inches)
year_inspected=2023 # Optional: inspection year
)
print(f"Flag: {results['flag']}")
print(f"Status: {results['status']}")
print(f"Governing thickness: {results['governing_thickness']:.4f} inches")
Docker Usage
Run TMIN in a container:
# Build and run
./docker.sh build
./docker.sh run
# Or test functionality
./docker.sh test
License
MIT License
Metadata
Release files for tmin 1.0.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 |
|---|---|---|---|---|
| tmin-1.0.1.tar.gz | 25.9 kB | Without provenance | Details for tmin-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tmin-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for tmin-1.0.1-py3-none-any.whl |
Total release size: 48.3 kB
Release files / tmin-1.0.1.tar.gz
| Download URL | tmin-1.0.1.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40416812721d2cd4f5577580e5bd7ea8863edef1378e3ce64ee4c82b75b5306a
|
|
BLAKE2b-256 checksum How to use checksums |
08657c970c1344aab2bda76d470561e3f33263a73a80551baafab34ea35b1371
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / tmin-1.0.1-py3-none-any.whl
| Download URL | tmin-1.0.1-py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47a595f06a1375210683967ec7d38ff30723cb5df7f9a03910ead6c0ca60aa69
|
|
BLAKE2b-256 checksum How to use checksums |
d170d7b2fc54cc8fd45cbbc54fd966571c1aa73316cc06610307ff02a28a0a22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for tmin 1.0.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.