refactor: rename materia → beanflows throughout codebase
- Rename src/materia/ → src/beanflows/ (Python package)
- Rename transform/sqlmesh_materia/ → transform/sqlmesh_beanflows/
- Rename infra/supervisor/materia-supervisor.service → beanflows-supervisor.service
- Rename infra/backup/materia-backup.{service,timer} → beanflows-backup.{service,timer}
- Update all path strings: /opt/materia → /opt/beanflows, /data/materia → /data/beanflows
- Update pyproject.toml: project name, CLI entrypoint, workspace source key
- Update all internal imports from materia.* → beanflows.*
- Update infra scripts: REPO_DIR, service names, systemctl references
- Fix docker-compose.prod.yml: /data/materia → /data/beanflows (bind mount path)
Intentionally left unchanged: Pulumi stack name (materia-infrastructure) and
Hetzner resource names ("materia-key", "managed_by: materia") — these reference
live cloud infrastructure and require separate cloud-side renames.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
0
transform/sqlmesh_beanflows/seeds/.gitkeep
Normal file
0
transform/sqlmesh_beanflows/seeds/.gitkeep
Normal file
@@ -0,0 +1,57 @@
|
||||
commodity_name,exchange_code,exchange
|
||||
Crude Oil WTI,CL,CME
|
||||
Crude Oil Brent,BZ,ICE
|
||||
Gasoline RBOB,RB,CME
|
||||
Heating Oil,HO,CME
|
||||
Natural Gas,NG,CME
|
||||
Ethanol,CU,CME
|
||||
Cocoa,CC,ICE
|
||||
Cotton,CT,ICE
|
||||
Orange Juice,FCOJ-A,ICE
|
||||
Coffee,KC,ICE
|
||||
Lumber,LBR,ICE
|
||||
Sugar,SB,ICE
|
||||
European Gas TTF,TTF,ICE
|
||||
European Union Emissions Allowance,ECF,ICE
|
||||
Gold,GC,CME
|
||||
Silver,SI,CME
|
||||
Platinum,PL,CME
|
||||
Copper,HG,CME
|
||||
Palladium,PA,CME
|
||||
Live Cattle,LE,CME
|
||||
Feeder Cattle,GF,CME
|
||||
Lean Hogs,HE,CME
|
||||
Corn,ZC,CME
|
||||
Soybean Oil,ZL,CME
|
||||
Soybean meal,ZM,CME
|
||||
Oats,ZO,CME
|
||||
Rough Rice,ZR,CME
|
||||
Soybeans,ZS,CME
|
||||
Wheat,ZW,CME
|
||||
Canola,RS,ICE
|
||||
Rebar,RB,SHFE
|
||||
Hot-Rolled Coil,HC,SHFE
|
||||
Nickel,NI,SHFE
|
||||
Tin,SN,SHFE
|
||||
Aluminum,AL,SHFE
|
||||
Zinc,ZN,SHFE
|
||||
Natural Rubber,RU,SHFE
|
||||
Bitumen,BU,SHFE
|
||||
Iron Ore,I,DCE
|
||||
Palm Oil,P,DCE
|
||||
Eggs,JD,DCE
|
||||
Coking Coal,JM,DCE
|
||||
Polyvinyl Chloride (PVC),V,DCE
|
||||
White Sugar,SR,ZCE
|
||||
Cotton,CF,ZCE
|
||||
Apple,AP,ZCE
|
||||
PTA,TA,ZCE
|
||||
Methanol,MA,ZCE
|
||||
LME Aluminum,AH,LME
|
||||
LME Copper,CA,LME
|
||||
LME Lead,PB,LME
|
||||
LME Nickel,NI,LME
|
||||
LME Tin,SN,LME
|
||||
LME Zinc,ZS,LME
|
||||
Iron Ore,TIO,SGX
|
||||
Rubber,TSR,SGX
|
||||
|
2
transform/sqlmesh_beanflows/seeds/dim_commodity.csv
Normal file
2
transform/sqlmesh_beanflows/seeds/dim_commodity.csv
Normal file
@@ -0,0 +1,2 @@
|
||||
usda_commodity_code;cftc_commodity_code;commodity_name;commodity_group
|
||||
"0711100";"083";"Coffee, Green";"Softs"
|
||||
|
133
transform/sqlmesh_beanflows/seeds/psd_attribute_codes.csv
Normal file
133
transform/sqlmesh_beanflows/seeds/psd_attribute_codes.csv
Normal file
@@ -0,0 +1,133 @@
|
||||
attribute_id;attribute_name
|
||||
1;Area Planted
|
||||
4;Area Harvested
|
||||
5;Catch For Reduction
|
||||
6;Cows In Milk
|
||||
7;Crush
|
||||
10;Total Grape Crush
|
||||
13;Deliv. To Processors
|
||||
16;Total Trees
|
||||
17;Bearing Trees
|
||||
19;Non-Bearing Trees
|
||||
20;Beginning Stocks
|
||||
22;Sow Beginning Stocks
|
||||
23;Dairy Cows Beg. Stocks
|
||||
24;Begin Stock (Ctrl App)
|
||||
25;Beef Cows Beg. Stocks
|
||||
26;Begin Stock (Other)
|
||||
28;Production
|
||||
29;Arabica Production
|
||||
30;Beet Sugar Production
|
||||
31;Commercial Production
|
||||
32;Cows Milk Production
|
||||
33;Farm Sales Weight Prod
|
||||
34;Filter Production
|
||||
40;Prod. from Wine Grapes
|
||||
43;Cane Sugar Production
|
||||
47;Non-Comm. Production
|
||||
48;Non-Filter Production
|
||||
49;Other Milk Production
|
||||
51;Prod. from Tabl Grapes
|
||||
53;Robusta Production
|
||||
54;Rough Production
|
||||
56;Other Production
|
||||
57;Imports
|
||||
58;Bean Imports
|
||||
62;Intra-EU Imports
|
||||
63;MY Imp. from U.S.
|
||||
64;Raw Imports
|
||||
65;U.S. Leaf Imports
|
||||
70;MY Imp. from EU
|
||||
71;Other Imports
|
||||
74;Refined Imp.(Raw Val)
|
||||
75;Roast & Ground Imports
|
||||
78;CY Imports
|
||||
81;TY Imports
|
||||
82;Soluble Imports
|
||||
83;CY Imp. from U.S.
|
||||
84;TY Imp. from U.S.
|
||||
86;Total Supply
|
||||
87;CY Exp. to U.S.
|
||||
88;Exports
|
||||
89;Raw Exports
|
||||
90;Bean Exports
|
||||
94;Intra EU Exports
|
||||
95;Intra-EU Exports
|
||||
97;MY Exp. to EU
|
||||
99;Refined Exp.(Raw Val)
|
||||
104;Other Exports
|
||||
107;Roast & Ground Exports
|
||||
110;CY Exports
|
||||
113;TY Exports
|
||||
114;Soluble Exports
|
||||
116;Slaughter (Reference)
|
||||
117;Total Slaughter
|
||||
118;Cow Slaughter
|
||||
120;Inventory (Reference)
|
||||
121;Sow Slaughter
|
||||
122;Calf Slaughter
|
||||
124;Other Slaughter
|
||||
125;Domestic Consumption
|
||||
126;Total Disappearance
|
||||
128;Dom. Leaf Consumption
|
||||
129;Dom.Consump(Cntrl App)
|
||||
130;Feed Dom. Consumption
|
||||
131;Fluid Use Dom. Consum.
|
||||
132;For Processing
|
||||
133;Fresh Dom. Consumption
|
||||
135;Fresh Dom. Consumption
|
||||
138;Human Consumption
|
||||
139;Human Dom. Consumption
|
||||
140;Industrial Dom. Cons.
|
||||
141;Rst,Ground Dom. Consum
|
||||
142;Domestic Use
|
||||
143;Utilization for Sugar
|
||||
145;Dom.Consump(Other)
|
||||
147;Factory Use Consum.
|
||||
149;Food Use Dom. Cons.
|
||||
150;Loss
|
||||
151;Other Disappearance
|
||||
152;Other Use, Losses
|
||||
154;Soluble Dom. Cons.
|
||||
155;U.S. Leaf Dom. Cons.
|
||||
157;Utilizatn for Alcohol
|
||||
158;Feed Use Dom. Consum.
|
||||
161;Feed Waste Dom. Cons.
|
||||
167;Other Foreign Cons.
|
||||
169;Withdrawal From Market
|
||||
172;Loss and Residual
|
||||
173;Total Disappearance
|
||||
174;Total Use
|
||||
175;Total Utilization
|
||||
176;Ending Stocks
|
||||
177;End Stocks (Cntrl App)
|
||||
178;Total Distribution
|
||||
179;End Stocks (Other)
|
||||
181;Extr. Rate, 999.9999
|
||||
182;Milling Rate (.9999)
|
||||
183;Seed to Lint Ratio
|
||||
184;YieldYield (Rough)
|
||||
192;FSI Consumption
|
||||
194;SME
|
||||
195;Stocks-to-UseStock to Use %
|
||||
196;Exportable Production
|
||||
198;Balance
|
||||
199;Inventory Balance
|
||||
200;Inventory Change
|
||||
201;Import Change
|
||||
202;Export Change
|
||||
203;Consumption Change
|
||||
204;Production Change
|
||||
205;Sow Change
|
||||
206;Cow Change
|
||||
207;Production to Cows
|
||||
208;Production to Sows
|
||||
209;Slaughter to Inventory
|
||||
210;Weights
|
||||
211;Population
|
||||
212;Per Capita Consumption
|
||||
213;Slaughter to Total Supply
|
||||
214;Imports Percent Consumption
|
||||
215;Exports Percent Production
|
||||
220;Annual % Change Per Cap. Cons.
|
||||
223;Stocks to Use (Months)
|
||||
|
@@ -0,0 +1,57 @@
|
||||
commodity_name,exchange_code,exchange,commodity_code
|
||||
Crude Oil WTI,CL,CME,NA
|
||||
Crude Oil Brent,BZ,ICE,NA
|
||||
Gasoline RBOB,RB,CME,NA
|
||||
Heating Oil,HO,CME,NA
|
||||
Natural Gas,NG,CME,NA
|
||||
Ethanol,CU,CME,NA
|
||||
Cocoa,CC,ICE,NA
|
||||
Cotton,CT,ICE,2631000
|
||||
Orange Juice,FCOJ-A,ICE,0585100
|
||||
Coffee,KC,ICE,0711100
|
||||
Lumber,LBR,ICE,NA
|
||||
Sugar,SB,ICE,0612000
|
||||
European Gas TTF,TTF,ICE,NA
|
||||
European Union Emissions Allowance,ECF,ICE,NA
|
||||
Gold,GC,CME,NA
|
||||
Silver,SI,CME,NA
|
||||
Platinum,PL,CME,NA
|
||||
Copper,HG,CME,NA
|
||||
Palladium,PA,CME,NA
|
||||
Live Cattle,LE,CME,0011000
|
||||
Feeder Cattle,GF,CME,0011000
|
||||
Lean Hogs,HE,CME,NA
|
||||
Corn,ZC,CME,0440000
|
||||
Soybean Oil,ZL,CME,4232000
|
||||
Soybean meal,ZM,CME,0813100
|
||||
Oats,ZO,CME,0452000
|
||||
Rough Rice,ZR,CME,0422110
|
||||
Soybeans,ZS,CME,NA
|
||||
Wheat,ZW,CME,0410000
|
||||
Canola,RS,ICE,2226000
|
||||
Rebar,RB,SHFE,NA
|
||||
Hot-Rolled Coil,HC,SHFE,NA
|
||||
Nickel,NI,SHFE,NA
|
||||
Tin,SN,SHFE,NA
|
||||
Aluminum,AL,SHFE,NA
|
||||
Zinc,ZN,SHFE,NA
|
||||
Natural Rubber,RU,SHFE,NA
|
||||
Bitumen,BU,SHFE,NA
|
||||
Iron Ore,I,DCE,NA
|
||||
Palm Oil,P,DCE,4243000
|
||||
Eggs,JD,DCE,NA
|
||||
Coking Coal,JM,DCE,NA
|
||||
Polyvinyl Chloride (PVC),V,DCE,NA
|
||||
White Sugar,SR,ZCE,0612000
|
||||
Cotton,CF,ZCE,2631000
|
||||
Apple,AP,ZCE,0574000
|
||||
PTA,TA,ZCE,NA
|
||||
Methanol,MA,ZCE,NA
|
||||
LME Aluminum,AH,LME,NA
|
||||
LME Copper,CA,LME,NA
|
||||
LME Lead,PB,LME,NA
|
||||
LME Nickel,NI,LME,NA
|
||||
LME Tin,SN,LME,NA
|
||||
LME Zinc,ZS,LME,NA
|
||||
Iron Ore,TIO,SGX,NA
|
||||
Rubber,TSR,SGX,NA
|
||||
|
65
transform/sqlmesh_beanflows/seeds/psd_commodity_codes.csv
Normal file
65
transform/sqlmesh_beanflows/seeds/psd_commodity_codes.csv
Normal file
@@ -0,0 +1,65 @@
|
||||
commodity_code; commodity_name
|
||||
0577400;Almonds, Shelled Basis
|
||||
0011000;Animal Numbers, Cattle
|
||||
0013000;Animal Numbers, Swine
|
||||
0574000;Apples, Fresh
|
||||
0430000;Barley
|
||||
0579305;Cherries (Sweet&Sour), Fresh
|
||||
0711100;Coffee, Green
|
||||
0440000;Corn
|
||||
2631000;Cotton
|
||||
0000000;Cotton (Metric Tons)
|
||||
0230000;Dairy, Butter
|
||||
0240000;Dairy, Cheese
|
||||
0224400;Dairy, Dry Whole Milk Powder
|
||||
0223000;Dairy, Milk, Fluid
|
||||
0224200;Dairy, Milk, Nonfat Dry
|
||||
0572220;Grapefruit, Fresh
|
||||
0575100;Grapes, Fresh Table
|
||||
0572120;Lemons/Limes, Fresh
|
||||
0813700;Meal, Copra
|
||||
0813300;Meal, Cottonseed
|
||||
0814200;Meal, Fish
|
||||
0813800;Meal, Palm Kernel
|
||||
0813200;Meal, Peanut
|
||||
0813600;Meal, Rapeseed
|
||||
0813100;Meal, Soybean
|
||||
0813101;Meal, Soybean (Local)
|
||||
0813500;Meal, Sunflowerseed
|
||||
0111000;Meat, Beef and Veal
|
||||
0115000;Meat, Chicken
|
||||
0113000;Meat, Swine
|
||||
0459100;Millet
|
||||
0459900;Mixed Grain
|
||||
0452000;Oats
|
||||
4242000;Oil, Coconut
|
||||
4233000;Oil, Cottonseed
|
||||
4235000;Oil, Olive
|
||||
4243000;Oil, Palm
|
||||
4244000;Oil, Palm Kernel
|
||||
4234000;Oil, Peanut
|
||||
4239100;Oil, Rapeseed
|
||||
4232000;Oil, Soybean
|
||||
4232001;Oil, Soybean (Local)
|
||||
4236000;Oil, Sunflowerseed
|
||||
2231000;Oilseed, Copra
|
||||
2223000;Oilseed, Cottonseed
|
||||
2232000;Oilseed, Palm Kernel
|
||||
2221000;Oilseed, Peanut
|
||||
2226000;Oilseed, Rapeseed
|
||||
2222000;Oilseed, Soybean
|
||||
2222001;Oilseed, Soybean (Local)
|
||||
2224000;Oilseed, Sunflowerseed
|
||||
0585100;Orange Juice
|
||||
0571120;Oranges, Fresh
|
||||
0579309;Peaches & Nectarines, Fresh
|
||||
0579220;Pears, Fresh
|
||||
0577907;Pistachios, Inshell Basis
|
||||
0114200;Poultry, Meat, Broiler
|
||||
0422110;Rice, Milled
|
||||
0451000;Rye
|
||||
0459200;Sorghum
|
||||
0612000;Sugar, Centrifugal
|
||||
0571220;Tangerines/Mandarins, Fresh
|
||||
0577901;Walnuts, Inshell Basis
|
||||
0410000;Wheat
|
||||
|
@@ -0,0 +1,43 @@
|
||||
unit_id; unit_name
|
||||
1;(1000 BUSHES)
|
||||
2;(1000 60 KG BAGS)
|
||||
3;(1000 COLONIES)
|
||||
4;(1000 HA)
|
||||
5;(1000 HEAD)
|
||||
6;(1000 HL)
|
||||
7;(1000 MT CWE)
|
||||
8;(1000 MT)
|
||||
9;(1000 PCS)
|
||||
10;(1000 TREES)
|
||||
11;(Dec. Fraction)
|
||||
12;(HA)
|
||||
13;(HECTARES)
|
||||
14;(KG)
|
||||
15;(MIL HEAD)
|
||||
16;(MIL PCS)
|
||||
17;(MILLION TREES)
|
||||
18;(MT RAW EQ)
|
||||
19;(MT RAW EW)
|
||||
20;(MT RE)
|
||||
21;(MT)
|
||||
22;(MT, Net Weight)
|
||||
23;(PERCENT)
|
||||
24;(RATIO)
|
||||
25;(1000 CUBIC METERS)
|
||||
26;(MT/HA)
|
||||
27;1000 480 lb. Bales
|
||||
28;(Bales/HA)
|
||||
29;(KG/HA)
|
||||
30;ACRES
|
||||
31;BUSHELS
|
||||
32;HUNDREDWEIGHT
|
||||
33;MILLING RATE
|
||||
34;BUSHELS/TON
|
||||
35;IMPORT MILLING RATE
|
||||
36;Bushels
|
||||
37;SHORT TONS
|
||||
38;MILLION LBS
|
||||
39;BILLION LBS
|
||||
40;(HEAD)
|
||||
41;(PEOPLE)
|
||||
42;(MONTHS)
|
||||
|
13
transform/sqlmesh_beanflows/seeds/weather_locations.csv
Normal file
13
transform/sqlmesh_beanflows/seeds/weather_locations.csv
Normal file
@@ -0,0 +1,13 @@
|
||||
location_id;name;country;lat;lon;variety
|
||||
brazil_minas_gerais;Minas Gerais;BR;-19.9167;-43.9345;Arabica
|
||||
brazil_parana;Paraná;BR;-23.4205;-51.9330;Arabica
|
||||
vietnam_highlands;Central Highlands;VN;12.6667;108.0500;Robusta
|
||||
colombia_huila;Huila;CO;2.5359;-75.5277;Arabica
|
||||
ethiopia_sidama;Sidama;ET;6.7612;38.4721;Arabica
|
||||
honduras_copan;Copán;HN;14.8333;-89.1500;Arabica
|
||||
guatemala_antigua;Antigua;GT;14.5586;-90.7295;Arabica
|
||||
indonesia_sumatra;Sumatra;ID;3.5952;98.6722;Robusta
|
||||
brazil_espirito_santo;Espírito Santo;BR;-19.3908;-40.0668;Robusta
|
||||
peru_jaen;Jaén;PE;-5.7064;-78.8077;Arabica
|
||||
uganda_elgon;Mount Elgon;UG;1.0826;34.1751;Robusta
|
||||
ivory_coast_daloa;Daloa;CI;6.8774;-6.4502;Robusta
|
||||
|
Reference in New Issue
Block a user