hexconv 0.2.1__tar.gz → 0.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexconv
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Pythonic conversion toolkit for bytes, hex, integers, arrays, binary strings, base64, and text.
5
5
  Author: hexconv contributors
6
6
  License-Expression: MIT
@@ -40,8 +40,8 @@ import hexconv as hx
40
40
 
41
41
  decode = hx.HexArray() >> hx.Text()
42
42
 
43
- decode([0x3C, 0x4D, 0x41, 0x47])
44
- # '<MAG'
43
+ decode([0x48, 0x65, 0x6C, 0x6C, 0x6F])
44
+ # 'Hello'
45
45
  ```
46
46
 
47
47
  ## Install
@@ -82,8 +82,8 @@ Use `>>` to compose reusable converters:
82
82
 
83
83
  ```python
84
84
  to_text = hx.HexArray() >> hx.Text()
85
- to_text([0x3C, 0x4D, 0x41, 0x47])
86
- # '<MAG'
85
+ to_text([0x48, 0x65, 0x6C, 0x6C, 0x6F])
86
+ # 'Hello'
87
87
 
88
88
  to_hex = hx.Text() >> hx.Hex(prefix=True)
89
89
  to_hex("data")
@@ -11,8 +11,8 @@ import hexconv as hx
11
11
 
12
12
  decode = hx.HexArray() >> hx.Text()
13
13
 
14
- decode([0x3C, 0x4D, 0x41, 0x47])
15
- # '<MAG'
14
+ decode([0x48, 0x65, 0x6C, 0x6C, 0x6F])
15
+ # 'Hello'
16
16
  ```
17
17
 
18
18
  ## Install
@@ -53,8 +53,8 @@ Use `>>` to compose reusable converters:
53
53
 
54
54
  ```python
55
55
  to_text = hx.HexArray() >> hx.Text()
56
- to_text([0x3C, 0x4D, 0x41, 0x47])
57
- # '<MAG'
56
+ to_text([0x48, 0x65, 0x6C, 0x6C, 0x6F])
57
+ # 'Hello'
58
58
 
59
59
  to_hex = hx.Text() >> hx.Hex(prefix=True)
60
60
  to_hex("data")
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hexconv"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "Pythonic conversion toolkit for bytes, hex, integers, arrays, binary strings, base64, and text."
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexconv
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Pythonic conversion toolkit for bytes, hex, integers, arrays, binary strings, base64, and text.
5
5
  Author: hexconv contributors
6
6
  License-Expression: MIT
@@ -40,8 +40,8 @@ import hexconv as hx
40
40
 
41
41
  decode = hx.HexArray() >> hx.Text()
42
42
 
43
- decode([0x3C, 0x4D, 0x41, 0x47])
44
- # '<MAG'
43
+ decode([0x48, 0x65, 0x6C, 0x6C, 0x6F])
44
+ # 'Hello'
45
45
  ```
46
46
 
47
47
  ## Install
@@ -82,8 +82,8 @@ Use `>>` to compose reusable converters:
82
82
 
83
83
  ```python
84
84
  to_text = hx.HexArray() >> hx.Text()
85
- to_text([0x3C, 0x4D, 0x41, 0x47])
86
- # '<MAG'
85
+ to_text([0x48, 0x65, 0x6C, 0x6C, 0x6F])
86
+ # 'Hello'
87
87
 
88
88
  to_hex = hx.Text() >> hx.Hex(prefix=True)
89
89
  to_hex("data")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes