chellow 1741611223.0.0__py3-none-any.whl → 1742469647.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of chellow might be problematic. Click here for more details.
|
@@ -32,7 +32,7 @@ read_type_map = {
|
|
|
32
32
|
TCOD_MAP = {
|
|
33
33
|
"140114": ("reconciliation-gbp", None, None),
|
|
34
34
|
"255204": ("meter-rental-gbp", "meter-rental-rate", "meter-rental-days"),
|
|
35
|
-
"345065": ("
|
|
35
|
+
"345065": ("op-weekend-gbp", "op-weekend-rate", "op-weekend-kwh"),
|
|
36
36
|
"350293": ("capacity-gbp", "capacity-rate", "capacity-kwh"),
|
|
37
37
|
"425779": ("ro-gbp", "ro-rate", "ro-kwh"),
|
|
38
38
|
"534342": ("reconciliation-gbp", None, None),
|
|
@@ -52,6 +52,7 @@ TCOD_MAP = {
|
|
|
52
52
|
"574015": ("cfd-fit-gbp", "cfd-fit-rate", "cfd-fit-kwh"),
|
|
53
53
|
"810016": ("cfd-fit-gbp", "cfd-fit-rate", "cfd-fit-kwh"),
|
|
54
54
|
"839829": ("cfd-fit-gbp", "cfd-fit-rate", "cfd-fit-kwh"),
|
|
55
|
+
"649282": ("cfd-fit-gbp", "cfd-fit-rate", "cfd-fit-kwh"),
|
|
55
56
|
"068476": ("day-gbp", "day-rate", "day-kwh"),
|
|
56
57
|
"133186": ("day-gbp", "day-rate", "day-kwh"),
|
|
57
58
|
"400434": ("day-gbp", "day-rate", "day-kwh"),
|
|
@@ -65,21 +66,26 @@ TCOD_MAP = {
|
|
|
65
66
|
"duos-excess-availability-rate",
|
|
66
67
|
"duos-excess-availability-kva",
|
|
67
68
|
),
|
|
69
|
+
"301541": ("duos-fixed-gbp", None, None),
|
|
70
|
+
"099335": ("duos-fixed-gbp", None, None),
|
|
68
71
|
"986159": ("duos-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
|
|
69
72
|
"838286": ("duos-reactive-gbp", "duos-reactive-rate", "duos-reactive-kvarh"),
|
|
70
73
|
"242643": ("duos-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
|
|
71
74
|
"257304": ("duos-amber-gbp", "duos-amber-rate", "duos-amber-kwh"),
|
|
72
|
-
"661440": ("duos-amber-gbp", "duos-amber-rate", "duos-
|
|
75
|
+
"661440": ("duos-amber-gbp", "duos-amber-rate", "duos-amber-kwh"),
|
|
73
76
|
"257305": ("duos-green-gbp", "duos-green-rate", "duos-green-kwh"),
|
|
77
|
+
"661441": ("duos-green-gbp", "duos-green-rate", "duos-green-kwh"),
|
|
74
78
|
"257303": ("duos-red-gbp", "duos-red-rate", "duos-red-kwh"),
|
|
75
79
|
"661439": ("duos-red-gbp", "duos-red-rate", "duos-red-kwh"),
|
|
76
|
-
"
|
|
80
|
+
"504364": ("ebrs-gbp", None, "ebrs-kwh"),
|
|
77
81
|
"563023": ("ebrs-gbp", None, "ebrs-kwh"),
|
|
78
82
|
"823408": ("ebrs-gbp", None, "ebrs-kwh"),
|
|
79
83
|
"871593": ("ebrs-gbp", "ebrs-rate", "ebrs-kwh"),
|
|
80
84
|
"873894": ("ebrs-gbp", "ebrs-rate", "ebrs-kwh"),
|
|
81
85
|
"309707": ("fit-gbp", "fit-rate", "fit-kwh"),
|
|
82
86
|
"994483": ("reconciliation-gbp", None, None),
|
|
87
|
+
"310129": ("meter-rental-gbp", None, None),
|
|
88
|
+
"452415": ("meter-rental-gbp", None, None),
|
|
83
89
|
"544936": ("meter-rental-gbp", "meter-rental-rate", "meter-rental-days"),
|
|
84
90
|
"265091": ("night-gbp", "night-rate", "night-kwh"),
|
|
85
91
|
"483457": ("peak-gbp", "peak-rate", "peak-kwh"),
|
|
@@ -90,6 +96,8 @@ TCOD_MAP = {
|
|
|
90
96
|
"632209": ("summer-night-gbp", "summer-night-rate", "summer-night-kwh"),
|
|
91
97
|
"663682": ("summer-weekday-gbp", "summer-weekday-rate", "summer-weekday-kwh"),
|
|
92
98
|
"299992": ("summer-weekend-gbp", "summer-weekend-rate", "summer-weekend-kwh"),
|
|
99
|
+
"211000": ("tnuos-gbp", "tnuos-rate", "tnuos-days"),
|
|
100
|
+
"790618": ("tnuos-gbp", None, None),
|
|
93
101
|
"447769": ("triad-gbp", "triad-rate", "triad-kw"),
|
|
94
102
|
"647721": ("triad-gbp", "triad-rate", "triad-kw"),
|
|
95
103
|
"276631": ("triad-gbp", "triad-rate", "triad-kw"),
|
|
@@ -99,6 +107,12 @@ TCOD_MAP = {
|
|
|
99
107
|
"700285": ("duo-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
|
|
100
108
|
}
|
|
101
109
|
|
|
110
|
+
TPR_LOOKUP = {
|
|
111
|
+
"Day": "00043",
|
|
112
|
+
"Off Peak / Weekends": "00210",
|
|
113
|
+
"Night": "00210",
|
|
114
|
+
}
|
|
115
|
+
|
|
102
116
|
|
|
103
117
|
def _process_BCD(elements, headers):
|
|
104
118
|
issue_date = to_date(elements["IVDT"][0])
|
|
@@ -111,6 +125,7 @@ def _process_BCD(elements, headers):
|
|
|
111
125
|
|
|
112
126
|
|
|
113
127
|
def _process_CCD1(elements, headers):
|
|
128
|
+
tcod = elements["TCOD"]
|
|
114
129
|
pres_read_date = to_finish_date(elements["PRDT"][0])
|
|
115
130
|
|
|
116
131
|
prev_read_date = to_finish_date(elements["PVDT"][0])
|
|
@@ -137,6 +152,7 @@ def _process_CCD1(elements, headers):
|
|
|
137
152
|
tpr_code = None
|
|
138
153
|
else:
|
|
139
154
|
units = "kWh"
|
|
155
|
+
tpr_code = TPR_LOOKUP[tcod[1]]
|
|
140
156
|
|
|
141
157
|
try:
|
|
142
158
|
reads = headers["reads"]
|
|
@@ -203,7 +219,7 @@ def _process_CCD2(elements, headers):
|
|
|
203
219
|
|
|
204
220
|
try:
|
|
205
221
|
reads = headers["reads"]
|
|
206
|
-
|
|
222
|
+
headers["reads"] = []
|
|
207
223
|
except KeyError:
|
|
208
224
|
reads = []
|
|
209
225
|
|
|
@@ -265,14 +281,14 @@ def _process_CCD3(elements, headers):
|
|
|
265
281
|
|
|
266
282
|
try:
|
|
267
283
|
reads = headers["reads"]
|
|
268
|
-
|
|
284
|
+
headers["reads"] = []
|
|
269
285
|
except KeyError:
|
|
270
286
|
reads = []
|
|
271
287
|
|
|
272
288
|
return {
|
|
273
289
|
"bill_type_code": headers["bill_type_code"],
|
|
274
290
|
"issue_date": headers["issue_date"],
|
|
275
|
-
"reference": headers["reference"],
|
|
291
|
+
"reference": headers["reference"] + "_" + eln_gbp[:-4],
|
|
276
292
|
"mpan_core": mpan_core,
|
|
277
293
|
"account": mpan_core,
|
|
278
294
|
"start_date": start_date,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1742469647.0.0
|
|
4
4
|
Summary: Web Application for checking UK energy bills.
|
|
5
5
|
Project-URL: Homepage, https://github.com/WessexWater/chellow
|
|
6
6
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
@@ -50,7 +50,7 @@ chellow/e/bill_parsers/annual_mop_stark_xlsx.py,sha256=-HMoIfa_utXYKA44RuC0Xqv3v
|
|
|
50
50
|
chellow/e/bill_parsers/bgb_edi.py,sha256=GuwHeYbAGk7BVg5n19FcTANFDyKI-y0z3f9niQaPSSw,4828
|
|
51
51
|
chellow/e/bill_parsers/csv.py,sha256=U5zcIaZ6B5QTTpFDAcBnk4G2r8B3j5kJhDPL4AJNkEk,5640
|
|
52
52
|
chellow/e/bill_parsers/edf_export_xlsx.py,sha256=J4lY8epiSTIePZ6D1SGD76TXRoev35KrUC2sjHkNqlE,6632
|
|
53
|
-
chellow/e/bill_parsers/engie_edi.py,sha256
|
|
53
|
+
chellow/e/bill_parsers/engie_edi.py,sha256=-DXbOKo0wNiCn-OVMaTFUJyVeGFA5NEUfDzrv3-tQi0,15555
|
|
54
54
|
chellow/e/bill_parsers/engie_export_xlsx.py,sha256=oZO0qHdDlOxjJ6J5Ate82CkAoX4bxed1EJyUKHxBcpk,4690
|
|
55
55
|
chellow/e/bill_parsers/engie_xls.py,sha256=jrut2heH_ZWmSjcn7celOydZS9Y49GfpYjDk_EKwamI,14453
|
|
56
56
|
chellow/e/bill_parsers/engie_xlsx.py,sha256=4Hu3ls1uNMH7vjDHgcP6QARlGlvb616CqG3xZVjAKWo,16888
|
|
@@ -378,6 +378,6 @@ chellow/templates/g/supply_note_edit.html,sha256=b8mB6_ucBwoljp03iy6AgVaZUhGw3-1
|
|
|
378
378
|
chellow/templates/g/supply_notes.html,sha256=6epNmZ3NKdXZz27fvmRUGeffg_oc1kmwuBeyRzQe3Rg,854
|
|
379
379
|
chellow/templates/g/unit.html,sha256=KouNVU0-i84afANkLQ_heJ0uDfJ9H5A05PuLqb8iCN8,438
|
|
380
380
|
chellow/templates/g/units.html,sha256=p5Nd-lAIboKPEOO6N451hx1bcKxMg4BDODnZ-43MmJc,441
|
|
381
|
-
chellow-
|
|
382
|
-
chellow-
|
|
383
|
-
chellow-
|
|
381
|
+
chellow-1742469647.0.0.dist-info/METADATA,sha256=h2cMM3e98XS32aO0HYuIC6wJGIrSXOIJyFIOK4b_kj8,12238
|
|
382
|
+
chellow-1742469647.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
383
|
+
chellow-1742469647.0.0.dist-info/RECORD,,
|
|
File without changes
|