Scientific mass arbitration engine for the India-Bangladesh trade corridor.
Project description
⚖️ phytrade: The Global Standard for Trade Physics
phytrade is a zero-dependency Python library designed to settle mass disputes in global commodity trade using the Modified Halsey Equation.
🛡️ Problem: The "Ghost Weight" Gap
In the India-Bangladesh trade corridor, environmental factors (humidity/temperature) cause significant mass fluctuations in hygroscopic materials like Cotton and Jute. phytrade provides the mathematical truth to arbitrate these gaps.
🚀 Quick Start
import phytrade
# Arbitrate 25 tons of Cotton at 32°C and 85% Humidity
result = phytrade.quick_check(mass=25000, moisture=0.07, rh=0.85, temp_c=32)
print(f"Verified Mass Delta: {result['mass_delta_kg']} kg")
## 🛠️ Industrial Accuracy & Validation
The core of `phytrade` is built on the **Modified Halsey Equation**, a thermodynamic standard for predicting the moisture-mass relationship in biological materials.
### Physical Constants (ASABE D245.7)
Unlike generic calculators, `phytrade` uses immutable physical constants ($A, B, C$) sourced from **ASABE (American Society of Agricultural and Biological Engineers)** and **ISO 11085** standards.
| Material | Constant A | Constant B | Constant C |
| :--- | :--- | :--- | :--- |
| **Cotton** | 0.000021 | 1.52 | 2.15 |
| **Jute** | 0.000018 | 1.48 | 2.05 |
| **Wheat** | 0.000035 | 1.35 | 1.95 |
### Dispute Resolution Logic
By calculating the **Equilibrium Moisture Content (EMC)**, the engine identifies if a weight loss at the Port of Chittagong is due to natural evaporation (thermodynamic equilibrium) or actual cargo theft/shortage. This provides a "Scientific Baseline" for insurance adjusters and trade auditors.
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
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 phytrade-1.1.7.tar.gz.
File metadata
- Download URL: phytrade-1.1.7.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcf60a7215d0f942e2816a58557e9bc323c55e17035d45adfe22250adefd516f
|
|
| MD5 |
902bbb381d448075d07b45f56393bf12
|
|
| BLAKE2b-256 |
4c1cccd89c01ec08d31a5d368aa8c8cf095d54d5636bc6ef0e02fe50d2128275
|
Provenance
The following attestation bundles were made for phytrade-1.1.7.tar.gz:
Publisher:
publish.yml on ksaad20/phytrade
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phytrade-1.1.7.tar.gz -
Subject digest:
bcf60a7215d0f942e2816a58557e9bc323c55e17035d45adfe22250adefd516f - Sigstore transparency entry: 1219708296
- Sigstore integration time:
-
Permalink:
ksaad20/phytrade@fccd1428a62432a58d09300b3d9fd5650d731a58 -
Branch / Tag:
refs/tags/v1.1.7 - Owner: https://github.com/ksaad20
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fccd1428a62432a58d09300b3d9fd5650d731a58 -
Trigger Event:
push
-
Statement type:
File details
Details for the file phytrade-1.1.7-py3-none-any.whl.
File metadata
- Download URL: phytrade-1.1.7-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75664fd6a83f19194f4b123739ff1f2f82487da06d879f5bc21d7aaacde75644
|
|
| MD5 |
1a5085ea8cd00a4e5af7ccb440d72e95
|
|
| BLAKE2b-256 |
cc1028e3ea900c3f35abf5d580cd21ab3011716ddc35b30cfa82c53512b47fe9
|
Provenance
The following attestation bundles were made for phytrade-1.1.7-py3-none-any.whl:
Publisher:
publish.yml on ksaad20/phytrade
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phytrade-1.1.7-py3-none-any.whl -
Subject digest:
75664fd6a83f19194f4b123739ff1f2f82487da06d879f5bc21d7aaacde75644 - Sigstore transparency entry: 1219708324
- Sigstore integration time:
-
Permalink:
ksaad20/phytrade@fccd1428a62432a58d09300b3d9fd5650d731a58 -
Branch / Tag:
refs/tags/v1.1.7 - Owner: https://github.com/ksaad20
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fccd1428a62432a58d09300b3d9fd5650d731a58 -
Trigger Event:
push
-
Statement type: