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

Uploaded Python 3

File details

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

File metadata

  • Download URL: phytrade-1.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 bc4f9f2121ce22e8569bff71de2be8ba6488e1ab35e12e6aa293d9fb1fe8554c
MD5 b059306ff0f7f993b0a9eb6702df9ba9
BLAKE2b-256 294df8a137b572a4612ddeb9ba104dbbe2167eb4fca696c8097ed9957f3c561a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: phytrade-1.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cbb82acbec52ecd02995a664d5d73771e4037ab298f97df563ce4dfb7762f767
MD5 ce723e236de5b2f1c49704133c6253e8
BLAKE2b-256 ea93bb42d52a42681abc047a02ceca3213b29b8167f9a4a789f07177a098a77c

See more details on using hashes here.

Provenance

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