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.6.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.6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file phytrade-1.1.6.tar.gz.

File metadata

  • Download URL: phytrade-1.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 ed1e07c03e056bef44a3d95c3810b65575719f7c6c77eb731b6455a0da7d846c
MD5 ce7518e805c2ee4dde5980a793e6ef7b
BLAKE2b-256 12a373f48f08ec5fa60e6332b132ffa3e33f07f9e200e84e752678f7398a710b

See more details on using hashes here.

Provenance

The following attestation bundles were made for phytrade-1.1.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: phytrade-1.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6d6a75befd9af4c62f45927e6a341fb3c9834af85ccfc25e6983bfd279cd6e63
MD5 0ac18ef26cf1b403014258f6bdcce601
BLAKE2b-256 1b36636810ebf5d0121827e84af09141339e41abee83f3109b50880772e22fc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for phytrade-1.1.6-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