chellow 1741611223.0.0__py3-none-any.whl → 1742291966.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.
|
@@ -65,6 +65,8 @@ TCOD_MAP = {
|
|
|
65
65
|
"duos-excess-availability-rate",
|
|
66
66
|
"duos-excess-availability-kva",
|
|
67
67
|
),
|
|
68
|
+
"301541": ("duos-fixed-gbp", None, None),
|
|
69
|
+
"099335": ("duos-fixed-gbp", None, None),
|
|
68
70
|
"986159": ("duos-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
|
|
69
71
|
"838286": ("duos-reactive-gbp", "duos-reactive-rate", "duos-reactive-kvarh"),
|
|
70
72
|
"242643": ("duos-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
|
|
@@ -74,12 +76,15 @@ TCOD_MAP = {
|
|
|
74
76
|
"257303": ("duos-red-gbp", "duos-red-rate", "duos-red-kwh"),
|
|
75
77
|
"661439": ("duos-red-gbp", "duos-red-rate", "duos-red-kwh"),
|
|
76
78
|
"661441": ("duos-red-gbp", "duos-red-rate", "duos-red-kwh"),
|
|
79
|
+
"504364": ("ebrs-gbp", None, "ebrs-kwh"),
|
|
77
80
|
"563023": ("ebrs-gbp", None, "ebrs-kwh"),
|
|
78
81
|
"823408": ("ebrs-gbp", None, "ebrs-kwh"),
|
|
79
82
|
"871593": ("ebrs-gbp", "ebrs-rate", "ebrs-kwh"),
|
|
80
83
|
"873894": ("ebrs-gbp", "ebrs-rate", "ebrs-kwh"),
|
|
81
84
|
"309707": ("fit-gbp", "fit-rate", "fit-kwh"),
|
|
82
85
|
"994483": ("reconciliation-gbp", None, None),
|
|
86
|
+
"310129": ("meter-rental-gbp", None, None),
|
|
87
|
+
"452415": ("meter-rental-gbp", None, None),
|
|
83
88
|
"544936": ("meter-rental-gbp", "meter-rental-rate", "meter-rental-days"),
|
|
84
89
|
"265091": ("night-gbp", "night-rate", "night-kwh"),
|
|
85
90
|
"483457": ("peak-gbp", "peak-rate", "peak-kwh"),
|
|
@@ -90,6 +95,8 @@ TCOD_MAP = {
|
|
|
90
95
|
"632209": ("summer-night-gbp", "summer-night-rate", "summer-night-kwh"),
|
|
91
96
|
"663682": ("summer-weekday-gbp", "summer-weekday-rate", "summer-weekday-kwh"),
|
|
92
97
|
"299992": ("summer-weekend-gbp", "summer-weekend-rate", "summer-weekend-kwh"),
|
|
98
|
+
"211000": ("tnuos-gbp", "tnuos-rate", "tnuos-days"),
|
|
99
|
+
"790618": ("tnuos-gbp", None, None),
|
|
93
100
|
"447769": ("triad-gbp", "triad-rate", "triad-kw"),
|
|
94
101
|
"647721": ("triad-gbp", "triad-rate", "triad-kw"),
|
|
95
102
|
"276631": ("triad-gbp", "triad-rate", "triad-kw"),
|
|
@@ -99,6 +106,12 @@ TCOD_MAP = {
|
|
|
99
106
|
"700285": ("duo-fixed-gbp", "duos-fixed-rate", "duos-fixed-days"),
|
|
100
107
|
}
|
|
101
108
|
|
|
109
|
+
TPR_LOOKUP = {
|
|
110
|
+
"Day": "00043",
|
|
111
|
+
"Off Peak / Weekends": "00210",
|
|
112
|
+
"Night": "00210",
|
|
113
|
+
}
|
|
114
|
+
|
|
102
115
|
|
|
103
116
|
def _process_BCD(elements, headers):
|
|
104
117
|
issue_date = to_date(elements["IVDT"][0])
|
|
@@ -111,6 +124,7 @@ def _process_BCD(elements, headers):
|
|
|
111
124
|
|
|
112
125
|
|
|
113
126
|
def _process_CCD1(elements, headers):
|
|
127
|
+
tcod = elements["TCOD"]
|
|
114
128
|
pres_read_date = to_finish_date(elements["PRDT"][0])
|
|
115
129
|
|
|
116
130
|
prev_read_date = to_finish_date(elements["PVDT"][0])
|
|
@@ -137,6 +151,7 @@ def _process_CCD1(elements, headers):
|
|
|
137
151
|
tpr_code = None
|
|
138
152
|
else:
|
|
139
153
|
units = "kWh"
|
|
154
|
+
tpr_code = TPR_LOOKUP[tcod[1]]
|
|
140
155
|
|
|
141
156
|
try:
|
|
142
157
|
reads = headers["reads"]
|
|
@@ -203,7 +218,7 @@ def _process_CCD2(elements, headers):
|
|
|
203
218
|
|
|
204
219
|
try:
|
|
205
220
|
reads = headers["reads"]
|
|
206
|
-
|
|
221
|
+
headers["reads"] = []
|
|
207
222
|
except KeyError:
|
|
208
223
|
reads = []
|
|
209
224
|
|
|
@@ -265,14 +280,14 @@ def _process_CCD3(elements, headers):
|
|
|
265
280
|
|
|
266
281
|
try:
|
|
267
282
|
reads = headers["reads"]
|
|
268
|
-
|
|
283
|
+
headers["reads"] = []
|
|
269
284
|
except KeyError:
|
|
270
285
|
reads = []
|
|
271
286
|
|
|
272
287
|
return {
|
|
273
288
|
"bill_type_code": headers["bill_type_code"],
|
|
274
289
|
"issue_date": headers["issue_date"],
|
|
275
|
-
"reference": headers["reference"],
|
|
290
|
+
"reference": headers["reference"] + "_" + eln_gbp[:-4],
|
|
276
291
|
"mpan_core": mpan_core,
|
|
277
292
|
"account": mpan_core,
|
|
278
293
|
"start_date": start_date,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chellow
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1742291966.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=6nchwtPtD8OSGqmLhDVAkAYPKxs0uLwcI8I-nPvQ4cw,15497
|
|
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-1742291966.0.0.dist-info/METADATA,sha256=s1n0zATFfXzABL3l0oJQ__163E87CtkT4Kudz4GqC-s,12238
|
|
382
|
+
chellow-1742291966.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
383
|
+
chellow-1742291966.0.0.dist-info/RECORD,,
|
|
File without changes
|