pymbusparser 0.0.2__tar.gz → 0.0.3__tar.gz
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.
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/Cargo.lock +25 -22
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/Cargo.toml +1 -1
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/PKG-INFO +1 -1
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/pyproject.toml +1 -1
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/python/Cargo.toml +2 -2
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/value_information.rs +21 -3
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.github/dependabot.yml +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.github/workflows/python.yml +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.github/workflows/rust.yml +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.gitignore +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.vscode/launch.json +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.vscode/settings.json +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/CONTRIBUTING.md +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/LICENSE +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/README.md +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/README_python.md +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/benches/bench.rs +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/index.html +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/m_bus_parser_wasm_pack.js +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/m_bus_parser_wasm_pack_bg.js +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/m_bus_parser_wasm_pack_bg.wasm +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/meter.png +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/package.json +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/python/.gitignore +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/python/README_python.md +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/python/src/lib.rs +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/frames/mod.rs +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/lib.rs +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/data_information.rs +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/data_record.rs +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/mod.rs +0 -0
- {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/variable_user_data.rs +0 -0
|
@@ -77,9 +77,9 @@ dependencies = [
|
|
|
77
77
|
|
|
78
78
|
[[package]]
|
|
79
79
|
name = "autocfg"
|
|
80
|
-
version = "1.
|
|
80
|
+
version = "1.4.0"
|
|
81
81
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
82
|
-
checksum = "
|
|
82
|
+
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
|
|
83
83
|
|
|
84
84
|
[[package]]
|
|
85
85
|
name = "bindgen"
|
|
@@ -124,9 +124,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
|
|
|
124
124
|
|
|
125
125
|
[[package]]
|
|
126
126
|
name = "cc"
|
|
127
|
-
version = "1.1.
|
|
127
|
+
version = "1.1.23"
|
|
128
128
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
129
|
-
checksum = "
|
|
129
|
+
checksum = "3bbb537bb4a30b90362caddba8f360c0a56bc13d3a5570028e7197204cb54a17"
|
|
130
130
|
dependencies = [
|
|
131
131
|
"shlex",
|
|
132
132
|
]
|
|
@@ -492,9 +492,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
|
492
492
|
|
|
493
493
|
[[package]]
|
|
494
494
|
name = "libc"
|
|
495
|
-
version = "0.2.
|
|
495
|
+
version = "0.2.159"
|
|
496
496
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
497
|
-
checksum = "
|
|
497
|
+
checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5"
|
|
498
498
|
|
|
499
499
|
[[package]]
|
|
500
500
|
name = "libloading"
|
|
@@ -524,7 +524,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
|
|
|
524
524
|
|
|
525
525
|
[[package]]
|
|
526
526
|
name = "m-bus-parser"
|
|
527
|
-
version = "0.0.
|
|
527
|
+
version = "0.0.15"
|
|
528
528
|
dependencies = [
|
|
529
529
|
"arrayvec",
|
|
530
530
|
"bindgen",
|
|
@@ -542,7 +542,7 @@ dependencies = [
|
|
|
542
542
|
|
|
543
543
|
[[package]]
|
|
544
544
|
name = "m-bus-parser-cli"
|
|
545
|
-
version = "0.0.
|
|
545
|
+
version = "0.0.10"
|
|
546
546
|
dependencies = [
|
|
547
547
|
"clap",
|
|
548
548
|
"m-bus-parser",
|
|
@@ -550,7 +550,7 @@ dependencies = [
|
|
|
550
550
|
|
|
551
551
|
[[package]]
|
|
552
552
|
name = "m-bus-parser-wasm-pack"
|
|
553
|
-
version = "0.0.
|
|
553
|
+
version = "0.0.6"
|
|
554
554
|
dependencies = [
|
|
555
555
|
"console_error_panic_hook",
|
|
556
556
|
"m-bus-parser",
|
|
@@ -612,9 +612,12 @@ dependencies = [
|
|
|
612
612
|
|
|
613
613
|
[[package]]
|
|
614
614
|
name = "once_cell"
|
|
615
|
-
version = "1.
|
|
615
|
+
version = "1.20.1"
|
|
616
616
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
617
|
-
checksum = "
|
|
617
|
+
checksum = "82881c4be219ab5faaf2ad5e5e5ecdff8c66bd7402ca3160975c93b24961afd1"
|
|
618
|
+
dependencies = [
|
|
619
|
+
"portable-atomic",
|
|
620
|
+
]
|
|
618
621
|
|
|
619
622
|
[[package]]
|
|
620
623
|
name = "oorandom"
|
|
@@ -652,9 +655,9 @@ dependencies = [
|
|
|
652
655
|
|
|
653
656
|
[[package]]
|
|
654
657
|
name = "portable-atomic"
|
|
655
|
-
version = "1.
|
|
658
|
+
version = "1.9.0"
|
|
656
659
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
657
|
-
checksum = "
|
|
660
|
+
checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
|
|
658
661
|
|
|
659
662
|
[[package]]
|
|
660
663
|
name = "prettyplease"
|
|
@@ -691,7 +694,7 @@ dependencies = [
|
|
|
691
694
|
|
|
692
695
|
[[package]]
|
|
693
696
|
name = "pymbusparser"
|
|
694
|
-
version = "0.0.
|
|
697
|
+
version = "0.0.3"
|
|
695
698
|
dependencies = [
|
|
696
699
|
"hex",
|
|
697
700
|
"m-bus-parser",
|
|
@@ -814,9 +817,9 @@ dependencies = [
|
|
|
814
817
|
|
|
815
818
|
[[package]]
|
|
816
819
|
name = "regex"
|
|
817
|
-
version = "1.
|
|
820
|
+
version = "1.11.0"
|
|
818
821
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
819
|
-
checksum = "
|
|
822
|
+
checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8"
|
|
820
823
|
dependencies = [
|
|
821
824
|
"aho-corasick",
|
|
822
825
|
"memchr",
|
|
@@ -826,9 +829,9 @@ dependencies = [
|
|
|
826
829
|
|
|
827
830
|
[[package]]
|
|
828
831
|
name = "regex-automata"
|
|
829
|
-
version = "0.4.
|
|
832
|
+
version = "0.4.8"
|
|
830
833
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
831
|
-
checksum = "
|
|
834
|
+
checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3"
|
|
832
835
|
dependencies = [
|
|
833
836
|
"aho-corasick",
|
|
834
837
|
"memchr",
|
|
@@ -837,9 +840,9 @@ dependencies = [
|
|
|
837
840
|
|
|
838
841
|
[[package]]
|
|
839
842
|
name = "regex-syntax"
|
|
840
|
-
version = "0.8.
|
|
843
|
+
version = "0.8.5"
|
|
841
844
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
842
|
-
checksum = "
|
|
845
|
+
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
|
843
846
|
|
|
844
847
|
[[package]]
|
|
845
848
|
name = "rustc-hash"
|
|
@@ -945,9 +948,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|
|
945
948
|
|
|
946
949
|
[[package]]
|
|
947
950
|
name = "syn"
|
|
948
|
-
version = "2.0.
|
|
951
|
+
version = "2.0.79"
|
|
949
952
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
950
|
-
checksum = "
|
|
953
|
+
checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
|
|
951
954
|
dependencies = [
|
|
952
955
|
"proc-macro2",
|
|
953
956
|
"quote",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "pymbusparser"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.3"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
homepage = "https://maebli.github.io/"
|
|
6
6
|
repository = "https://github.com/maebli/m-bus-parser"
|
|
7
7
|
|
|
8
8
|
[dependencies]
|
|
9
|
-
m-bus-parser = { path = "..", version = "0.0.
|
|
9
|
+
m-bus-parser = { path = "..", version = "0.0.15", features = ["std", "serde"] }
|
|
10
10
|
serde_json = "1.0"
|
|
11
11
|
pyo3 = { version = "0.22.3", features = ["extension-module","generate-import-lib"] }
|
|
12
12
|
hex = "0.4.2"
|
|
@@ -214,6 +214,7 @@ impl TryFrom<&ValueInformationBlock> for ValueInformation {
|
|
|
214
214
|
}
|
|
215
215
|
0x10..=0x17 => {
|
|
216
216
|
units.push(unit!(Meter ^ 3));
|
|
217
|
+
labels.push(ValueLabel::Volume);
|
|
217
218
|
decimal_scale_exponent =
|
|
218
219
|
(value_information_block.value_information.data & 0b111) as isize - 6;
|
|
219
220
|
}
|
|
@@ -1030,6 +1031,7 @@ pub enum ValueLabel {
|
|
|
1030
1031
|
LowTemperatureRatingFactor,
|
|
1031
1032
|
DisplayOutputScalingFactor,
|
|
1032
1033
|
ManufacturerSpecific,
|
|
1034
|
+
Volume,
|
|
1033
1035
|
}
|
|
1034
1036
|
|
|
1035
1037
|
#[cfg(feature = "std")]
|
|
@@ -1200,7 +1202,11 @@ mod tests {
|
|
|
1200
1202
|
x.push(unit!(Meter ^ 3));
|
|
1201
1203
|
x
|
|
1202
1204
|
},
|
|
1203
|
-
labels:
|
|
1205
|
+
labels: {
|
|
1206
|
+
let mut x = ArrayVec::<ValueLabel, 10>::new();
|
|
1207
|
+
x.push(ValueLabel::Volume);
|
|
1208
|
+
x
|
|
1209
|
+
}
|
|
1204
1210
|
}
|
|
1205
1211
|
);
|
|
1206
1212
|
|
|
@@ -1226,7 +1232,12 @@ mod tests {
|
|
|
1226
1232
|
x.push(unit!(Meter ^ 3));
|
|
1227
1233
|
x
|
|
1228
1234
|
},
|
|
1229
|
-
|
|
1235
|
+
|
|
1236
|
+
labels: {
|
|
1237
|
+
let mut x = ArrayVec::<ValueLabel, 10>::new();
|
|
1238
|
+
x.push(ValueLabel::Volume);
|
|
1239
|
+
x
|
|
1240
|
+
}
|
|
1230
1241
|
}
|
|
1231
1242
|
);
|
|
1232
1243
|
|
|
@@ -1252,7 +1263,11 @@ mod tests {
|
|
|
1252
1263
|
x.push(unit!(Meter ^ 3));
|
|
1253
1264
|
x
|
|
1254
1265
|
},
|
|
1255
|
-
labels:
|
|
1266
|
+
labels: {
|
|
1267
|
+
let mut x = ArrayVec::<ValueLabel, 10>::new();
|
|
1268
|
+
x.push(ValueLabel::Volume);
|
|
1269
|
+
x
|
|
1270
|
+
}
|
|
1256
1271
|
}
|
|
1257
1272
|
);
|
|
1258
1273
|
|
|
@@ -1288,6 +1303,7 @@ mod tests {
|
|
|
1288
1303
|
assert_eq!(result.value_information, ValueInformationField::from(0x96));
|
|
1289
1304
|
assert_eq!(ValueInformation::try_from(&result).unwrap().labels, {
|
|
1290
1305
|
let mut x = ArrayVec::<ValueLabel, 10>::new();
|
|
1306
|
+
x.push(ValueLabel::Volume);
|
|
1291
1307
|
x.push(ValueLabel::Averaged);
|
|
1292
1308
|
x
|
|
1293
1309
|
});
|
|
@@ -1306,6 +1322,7 @@ mod tests {
|
|
|
1306
1322
|
ValueInformation {
|
|
1307
1323
|
labels: {
|
|
1308
1324
|
let mut x = ArrayVec::<ValueLabel, 10>::new();
|
|
1325
|
+
x.push(ValueLabel::Volume);
|
|
1309
1326
|
x.push(ValueLabel::Averaged);
|
|
1310
1327
|
x
|
|
1311
1328
|
},
|
|
@@ -1335,6 +1352,7 @@ mod tests {
|
|
|
1335
1352
|
ValueInformation {
|
|
1336
1353
|
labels: {
|
|
1337
1354
|
let mut x = ArrayVec::<ValueLabel, 10>::new();
|
|
1355
|
+
x.push(ValueLabel::Volume);
|
|
1338
1356
|
x.push(ValueLabel::Averaged);
|
|
1339
1357
|
x
|
|
1340
1358
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|