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.
Files changed (32) hide show
  1. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/Cargo.lock +25 -22
  2. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/Cargo.toml +1 -1
  3. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/PKG-INFO +1 -1
  4. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/pyproject.toml +1 -1
  5. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/python/Cargo.toml +2 -2
  6. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/value_information.rs +21 -3
  7. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.github/dependabot.yml +0 -0
  8. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.github/workflows/python.yml +0 -0
  9. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.github/workflows/rust.yml +0 -0
  10. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.gitignore +0 -0
  11. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.vscode/launch.json +0 -0
  12. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/.vscode/settings.json +0 -0
  13. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/CONTRIBUTING.md +0 -0
  14. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/LICENSE +0 -0
  15. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/README.md +0 -0
  16. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/README_python.md +0 -0
  17. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/benches/bench.rs +0 -0
  18. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/index.html +0 -0
  19. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/m_bus_parser_wasm_pack.js +0 -0
  20. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/m_bus_parser_wasm_pack_bg.js +0 -0
  21. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/m_bus_parser_wasm_pack_bg.wasm +0 -0
  22. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/meter.png +0 -0
  23. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/docs/package.json +0 -0
  24. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/python/.gitignore +0 -0
  25. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/python/README_python.md +0 -0
  26. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/python/src/lib.rs +0 -0
  27. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/frames/mod.rs +0 -0
  28. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/lib.rs +0 -0
  29. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/data_information.rs +0 -0
  30. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/data_record.rs +0 -0
  31. {pymbusparser-0.0.2 → pymbusparser-0.0.3}/src/user_data/mod.rs +0 -0
  32. {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.3.0"
80
+ version = "1.4.0"
81
81
  source = "registry+https://github.com/rust-lang/crates.io-index"
82
- checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
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.21"
127
+ version = "1.1.23"
128
128
  source = "registry+https://github.com/rust-lang/crates.io-index"
129
- checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0"
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.158"
495
+ version = "0.2.159"
496
496
  source = "registry+https://github.com/rust-lang/crates.io-index"
497
- checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
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.14"
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.9"
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.5"
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.19.0"
615
+ version = "1.20.1"
616
616
  source = "registry+https://github.com/rust-lang/crates.io-index"
617
- checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
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.8.0"
658
+ version = "1.9.0"
656
659
  source = "registry+https://github.com/rust-lang/crates.io-index"
657
- checksum = "d30538d42559de6b034bc76fd6dd4c38961b1ee5c6c56e3808c50128fdbc22ce"
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.2"
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.10.6"
820
+ version = "1.11.0"
818
821
  source = "registry+https://github.com/rust-lang/crates.io-index"
819
- checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
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.7"
832
+ version = "0.4.8"
830
833
  source = "registry+https://github.com/rust-lang/crates.io-index"
831
- checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
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.4"
843
+ version = "0.8.5"
841
844
  source = "registry+https://github.com/rust-lang/crates.io-index"
842
- checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
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.77"
951
+ version = "2.0.79"
949
952
  source = "registry+https://github.com/rust-lang/crates.io-index"
950
- checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed"
953
+ checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
951
954
  dependencies = [
952
955
  "proc-macro2",
953
956
  "quote",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "m-bus-parser"
3
- version = "0.0.14"
3
+ version = "0.0.15"
4
4
  edition = "2021"
5
5
  description = "A library for parsing M-Bus frames"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymbusparser
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Python bindings for m-bus-parser written in Rust
5
5
  Home-Page: https://maebli.github.io/
6
6
  Author-email: Michael Aebli <>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pymbusparser"
3
- version = "0.0.2"
3
+ version = "0.0.3"
4
4
  description = "Python bindings for m-bus-parser written in Rust"
5
5
  homepage = "https://maebli.github.io/"
6
6
  authors = [{name = "Michael Aebli", email = ""}]
@@ -1,12 +1,12 @@
1
1
  [package]
2
2
  name = "pymbusparser"
3
- version = "0.0.2"
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.14", features = ["std", "serde"] }
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: ArrayVec::<ValueLabel, 10>::new()
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
- labels: ArrayVec::<ValueLabel, 10>::new()
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: ArrayVec::<ValueLabel, 10>::new()
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