Skip to main content

Institutional trade physics library for global commodity arbitration (50 Domains).

Project description

phytrade (v1.2.4)

Institutional Physics Library for Global Commodity Arbitration

phytrade is a high-precision computational physics framework designed to resolve mass, quality, and environmental disputes in international trade. By implementing industry-standard thermodynamics, fluid dynamics, and mechanical stress models, it provides an objective "Arbitrator" for maritime and land-based commerce.


🏛️ Project Architecture: The 50-Problem Roadmap

Version 1.2.4 introduces a Modular Domain Expansion. The library is structured into five distinct categories to cover the entire lifecycle of global trade physics.

Category Domain Status Scope
I Thermodynamics Active Problems 1-10 (Moisture, Heat, PCM)
II Fluid Dynamics 🏗️ Planned Problems 11-20 (Viscosity, Flow, Cargo)
III Mechanical 🏗️ Planned Problems 21-30 (Stress, Strain, Loading)
IV Logistics 🏗️ Planned Problems 31-40 (Optimization, Routing)
V Strategic 🏗️ Planned Problems 41-50 (Risk, Game Theory)

🚀 Key Features (Category I: Thermodynamics)

The current release fully populates the thermo engine with 10 specialized solvers:

  • Mass Deconvolution: Implementation of ASABE D245.7 and ASTM D2495 for moisture-adjusted mass arbitration.
  • Container Rain Prediction: Dew point analysis to prevent cargo sweat and moisture damage.
  • Thermal Management: PCM (Phase Change Material) requirement solvers and Vacuum Insulated Panel (VIP) status monitoring.
  • Biological Activity: Respiration heat and ethylene diffusion models for perishable cargo.

📦 Installation

pip install phytrade

---

## 🛠️ Usage

To integrate the arbitration engine into your workflow, use the domain-specific import:

```python
from phytrade.thermo import ThermoArbitrator

# 1. Initialize the Category I engine
arbitrator = ThermoArbitrator()

# 2. Solve a "Ghost Weight" (Moisture Arbitration) dispute
# Example: 25,000kg Cotton at 12% moisture in 65% RH / 30°C
result = arbitrator.solve_ghost_weight(
    mass=25000, 
    moisture=0.12, 
    rh=65, 
    temp_c=30, 
    material="Cotton"
)

print(f"Arbitrated Mass: {result['predicted_mass_kg']} kg")
print(f"Variance: {result['variance_kg']} kg")

📝 Standards Compliance
phytrade adheres to international scientific and engineering standards, including:

ASABE D245.7: Moisture relationships for agricultural products.

ASTM D2495: Standard test method for moisture in cotton.

ISO 19011: Guidelines for auditing management systems.

📄 License & Citation
License: Proprietary. All rights reserved.

If you use this library in commercial arbitration or academic research, please cite it using the included CITATION.cff file:

Plaintext
Asif, K. S. (2026). phytrade: Institutional Physics Library for Global Commodity Arbitration (v1.2.4).
Author: Kazi Saad Asif

Contact: kazisaadasif29@gmail.com

GitHub: ksaad20/phytrade

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.2.4.tar.gz (6.6 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.2.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phytrade-1.2.4.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for phytrade-1.2.4.tar.gz
Algorithm Hash digest
SHA256 c3798a7339601be9143b2a74a13c88beab69b128a552bb1d07708949ddf17e6d
MD5 7466f8759e1d1e2e11fd5f2bfc2b71db
BLAKE2b-256 203519edc609ddeceb3ac0912cc618607d16c37521bd687fd0aee0b2e16e3b7a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: phytrade-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7a09e9301213fb4bec4041a99ca73f773bb3f0508fa6c5d53383571b57a87499
MD5 5decef8b8acf6b6399edeab30b62b0b1
BLAKE2b-256 7e6dc9f33aa6a8ee4242c3043fa9b690f4afe28a2c8a8cf236f3e45f28810cfa

See more details on using hashes here.

Provenance

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