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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3798a7339601be9143b2a74a13c88beab69b128a552bb1d07708949ddf17e6d
|
|
| MD5 |
7466f8759e1d1e2e11fd5f2bfc2b71db
|
|
| BLAKE2b-256 |
203519edc609ddeceb3ac0912cc618607d16c37521bd687fd0aee0b2e16e3b7a
|
Provenance
The following attestation bundles were made for phytrade-1.2.4.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.4.tar.gz -
Subject digest:
c3798a7339601be9143b2a74a13c88beab69b128a552bb1d07708949ddf17e6d - Sigstore transparency entry: 1221231341
- Sigstore integration time:
-
Permalink:
ksaad20/phytrade@c820a90ba6d109e2832ba5919bd89ba4d93c92aa -
Branch / Tag:
refs/tags/v1.2.4 - Owner: https://github.com/ksaad20
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c820a90ba6d109e2832ba5919bd89ba4d93c92aa -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a09e9301213fb4bec4041a99ca73f773bb3f0508fa6c5d53383571b57a87499
|
|
| MD5 |
5decef8b8acf6b6399edeab30b62b0b1
|
|
| BLAKE2b-256 |
7e6dc9f33aa6a8ee4242c3043fa9b690f4afe28a2c8a8cf236f3e45f28810cfa
|
Provenance
The following attestation bundles were made for phytrade-1.2.4-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.4-py3-none-any.whl -
Subject digest:
7a09e9301213fb4bec4041a99ca73f773bb3f0508fa6c5d53383571b57a87499 - Sigstore transparency entry: 1221231542
- Sigstore integration time:
-
Permalink:
ksaad20/phytrade@c820a90ba6d109e2832ba5919bd89ba4d93c92aa -
Branch / Tag:
refs/tags/v1.2.4 - Owner: https://github.com/ksaad20
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c820a90ba6d109e2832ba5919bd89ba4d93c92aa -
Trigger Event:
push
-
Statement type: