Skip to main content

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

phytrade-1.1.7.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

phytrade-1.1.7-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for phytrade-1.1.7.tar.gz
Algorithm Hash digest
SHA256 bcf60a7215d0f942e2816a58557e9bc323c55e17035d45adfe22250adefd516f
MD5 902bbb381d448075d07b45f56393bf12
BLAKE2b-256 4c1cccd89c01ec08d31a5d368aa8c8cf095d54d5636bc6ef0e02fe50d2128275

See more details on using hashes here.

Provenance

The following attestation bundles were made for phytrade-1.1.7.tar.gz:

Publisher: publish.yml on ksaad20/phytrade

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for phytrade-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 75664fd6a83f19194f4b123739ff1f2f82487da06d879f5bc21d7aaacde75644
MD5 1a5085ea8cd00a4e5af7ccb440d72e95
BLAKE2b-256 cc1028e3ea900c3f35abf5d580cd21ab3011716ddc35b30cfa82c53512b47fe9

See more details on using hashes here.

Provenance

The following attestation bundles were made for phytrade-1.1.7-py3-none-any.whl:

Publisher: publish.yml on ksaad20/phytrade

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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