Institutional trade physics library for global commodity arbitration (50 Domains).
Project description
phytrade (v1.2.6)
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.6 marks the transition from a specialized thermal tool to a comprehensive physics engine. All five core domains are now Active, populating the library with the first 50 essential problem-solvers for global trade.
| Category | Domain | Status | Scope |
|---|---|---|---|
| I | Thermodynamics | ✅ Active | Problems 1-10 (Moisture, Heat, PCM) |
| II | Fluid Dynamics | ✅ Active | Problems 11-20 (Drag, Cavitation, Siltation) |
| III | Mechanical | ✅ Active | Problems 21-30 (Stress, Torque, Wind Tech) |
| IV | Logistics | ✅ Active | Problems 31-40 (Platooning, Docking, Routing) |
| V | Strategic | ✅ Active | Problems 41-50 (ROI, Risk, Game Theory) |
🚀 Key Features (v1.2.6 Expansion)
The library now supports multi-domain arbitration across the following engines:
- Thermo (Category I): Mass Deconvolution (ASABE D245.7), Container Rain Prediction, and Perishable Respiration models.
- Fluids (Category II): Hull Skin Friction analysis for bio-fouling, Propeller Cavitation erosion risk, and Port Siltation depth impact on cargo capacity.
- Mechanical (Category III): Wind-Assisted Propulsion (Sails/Rotors) force calculation, Shaft Torque monitoring, and Hull Stress analysis.
- Logistics (Category IV): Aerodynamic Drafting (Truck/Ship Platooning) fuel savings and optimized Dry-Docking scheduling.
- Strategic (Category V): Economical Speed optimization, Strategic Reserve utilization, and Market Volatility hedging.
📦 Installation
pip install phytrade
🛠️ Usage
To integrate the arbitration engine into your workflow, initialize the specific domain arbitrator:
from phytrade import ThermoArbitrator, FluidsArbitrator, MechanicalArbitrator
# 1. Initialize the Engines
thermo = ThermoArbitrator()
fluids = FluidsArbitrator()
mech = MechanicalArbitrator()
# 2. Solve a Hull Friction Dispute (Problem 11)
# Estimate drag increase from bio-fouling (15% fouling index) at 12 knots
drag_increase = fluids.estimate_hull_skin_friction(
velocity=6.17, # 12 knots in m/s
wetted_area=3500,
bio_fouling_index=0.15
)
# 3. Calculate Wind Propulsion Offset (Problem 19)
wind_force = mech.calculate_wind_propulsion(
wind_speed=15.0,
sail_area=200,
angle=45
)
print(f"Added Drag Force: {drag_increase} N")
print(f"Wind Assist Force: {wind_force} N")
📝 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.
ITTC Recommended Procedures: For Hull Resistance and Propeller Cavitation.
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.6).
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
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.2.6.tar.gz.
File metadata
- Download URL: phytrade-1.2.6.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed2a7b0de01bf31cb52d920641f0adcf7e64a91bcd61e5d2a5f9057b8eca708e
|
|
| MD5 |
c707236627cc2557f65c7f2b8e073628
|
|
| BLAKE2b-256 |
944048092cbeb40a45ebac25eeca37e9bd0f40632076b46c0acbe250ee09d1cf
|
Provenance
The following attestation bundles were made for phytrade-1.2.6.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.2.6.tar.gz -
Subject digest:
ed2a7b0de01bf31cb52d920641f0adcf7e64a91bcd61e5d2a5f9057b8eca708e - Sigstore transparency entry: 1224392920
- Sigstore integration time:
-
Permalink:
ksaad20/phytrade@82a11219557b22d7f6d18c73076fb1b045c2a82b -
Branch / Tag:
refs/tags/v1.2.6 - Owner: https://github.com/ksaad20
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@82a11219557b22d7f6d18c73076fb1b045c2a82b -
Trigger Event:
push
-
Statement type:
File details
Details for the file phytrade-1.2.6-py3-none-any.whl.
File metadata
- Download URL: phytrade-1.2.6-py3-none-any.whl
- Upload date:
- Size: 11.5 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 |
7e2b0d631f66c843a4de40cf8e035d7a9086fedc30f440e31e0c8d17786dfd44
|
|
| MD5 |
5c937479af70485e9920977363f0cb03
|
|
| BLAKE2b-256 |
1e7ba9fa6e9275d17373ed3a435901475695e6664b8411dc703efeb09192e495
|
Provenance
The following attestation bundles were made for phytrade-1.2.6-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.2.6-py3-none-any.whl -
Subject digest:
7e2b0d631f66c843a4de40cf8e035d7a9086fedc30f440e31e0c8d17786dfd44 - Sigstore transparency entry: 1224392997
- Sigstore integration time:
-
Permalink:
ksaad20/phytrade@82a11219557b22d7f6d18c73076fb1b045c2a82b -
Branch / Tag:
refs/tags/v1.2.6 - Owner: https://github.com/ksaad20
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@82a11219557b22d7f6d18c73076fb1b045c2a82b -
Trigger Event:
push
-
Statement type: