canoser
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: canoser | ||
| Version: 0.7.7 | ||
| Version: 0.7.8 | ||
| Summary: A python implementation of the LCS(Libra Canonical Serialization) for the Libra network. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/yuan-xy/canoser-python.git |
@@ -31,1 +31,8 @@ | ||
| return self.offset == self.buffer_len | ||
| def position(self): | ||
| return self.offset | ||
| def read_u8(self): | ||
| arr = self.read_bytes(1) | ||
| return int(arr[0]) |
@@ -1,1 +0,1 @@ | ||
| version = "0.7.7" | ||
| version = "0.7.8" |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: canoser | ||
| Version: 0.7.7 | ||
| Version: 0.7.8 | ||
| Summary: A python implementation of the LCS(Libra Canonical Serialization) for the Libra network. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/yuan-xy/canoser-python.git |
@@ -6,6 +6,7 @@ from canoser import * | ||
| def test_read(): | ||
| data = [1,2,3,4,5] | ||
| data = [6,2,3,4,5] | ||
| cursor = Cursor(data) | ||
| assert cursor.read_bytes(1) == b'\x01' | ||
| assert cursor.read_u8() == 6 | ||
| assert cursor.offset == 1 | ||
| assert cursor.position() == cursor.offset | ||
| assert cursor.peek_bytes(3) == b'\x02\x03\x04' | ||
@@ -12,0 +13,0 @@ assert cursor.offset == 1 |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
105872
0.17%1535
0.33%