aldict 1.1.1__tar.gz → 1.1.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: aldict
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: Multi-key dictionary, supports adding and manipulating key-aliases pointing to shared values
5
5
  Keywords: multi-key dictionary,multidict,alias-dict
6
6
  Author-Email: kaliv0 <kaloyan.ivanov88@gmail.com>
@@ -28,9 +28,9 @@ Multi-key dictionary, supports adding and manipulating key-aliases pointing to s
28
28
  ## How to use
29
29
 
30
30
  - initialize with aliases
31
- <br>(one-liner with <i>aliases</i> dict mapping <i>key</i> to list of <i>aliases</i>)
31
+ <br>(one-liner with <i>aliases</i> dict mapping <i>original key</i> to <i>alias keys</i>)
32
32
  ```python
33
- ad = AliasDict({"a": 1, "b": 2}, aliases={"a": ["aa", "aaa"], "b": ["bb"]})
33
+ ad = AliasDict({"a": 1, "b": 2}, aliases={"a": ["aa", "aaa"], "b": "bb"})
34
34
  assert ad["a"] == ad["aa"] == ad["aaa"] == 1
35
35
  assert ad["b"] == ad["bb"] == 2
36
36
  ```
@@ -17,9 +17,9 @@ Multi-key dictionary, supports adding and manipulating key-aliases pointing to s
17
17
  ## How to use
18
18
 
19
19
  - initialize with aliases
20
- <br>(one-liner with <i>aliases</i> dict mapping <i>key</i> to list of <i>aliases</i>)
20
+ <br>(one-liner with <i>aliases</i> dict mapping <i>original key</i> to <i>alias keys</i>)
21
21
  ```python
22
- ad = AliasDict({"a": 1, "b": 2}, aliases={"a": ["aa", "aaa"], "b": ["bb"]})
22
+ ad = AliasDict({"a": 1, "b": 2}, aliases={"a": ["aa", "aaa"], "b": "bb"})
23
23
  assert ad["a"] == ad["aa"] == ad["aaa"] == 1
24
24
  assert ad["b"] == ad["bb"] == 2
25
25
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "aldict"
3
- version = "1.1.1"
3
+ version = "1.1.2"
4
4
  requires-python = ">=3.10"
5
5
  authors = [
6
6
  { name = "kaliv0", email = "kaloyan.ivanov88@gmail.com" },
File without changes
File without changes
File without changes
File without changes