aldict 1.2.0__py3-none-any.whl → 1.2.1__py3-none-any.whl
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.
- aldict/__init__.py +6 -4
- aldict/alias_dict.py +11 -1
- {aldict-1.2.0.dist-info → aldict-1.2.1.dist-info}/METADATA +2 -2
- aldict-1.2.1.dist-info/RECORD +7 -0
- aldict/exception.py +0 -6
- aldict-1.2.0.dist-info/RECORD +0 -8
- {aldict-1.2.0.dist-info → aldict-1.2.1.dist-info}/WHEEL +0 -0
- {aldict-1.2.0.dist-info → aldict-1.2.1.dist-info}/entry_points.txt +0 -0
- {aldict-1.2.0.dist-info → aldict-1.2.1.dist-info}/licenses/LICENSE +0 -0
aldict/__init__.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
from .alias_dict import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
from .alias_dict import (
|
|
2
|
+
AliasDict as AliasDict,
|
|
3
|
+
AliasError as AliasError,
|
|
4
|
+
AliasValueError as AliasValueError,
|
|
5
|
+
)
|
|
4
6
|
|
|
5
|
-
__version__ = "1.2.
|
|
7
|
+
__version__ = "1.2.1"
|
|
6
8
|
__all__ = ["AliasDict", "AliasError", "AliasValueError"]
|
aldict/alias_dict.py
CHANGED
|
@@ -2,7 +2,17 @@ from collections import UserDict
|
|
|
2
2
|
from collections.abc import Mapping
|
|
3
3
|
from itertools import chain
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
class AliasError(KeyError):
|
|
7
|
+
"""Key alias not found"""
|
|
8
|
+
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AliasValueError(ValueError):
|
|
13
|
+
"""Inappropriate alias value"""
|
|
14
|
+
|
|
15
|
+
pass
|
|
6
16
|
|
|
7
17
|
|
|
8
18
|
class AliasDict(UserDict):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aldict
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.1
|
|
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>
|
|
@@ -10,7 +10,7 @@ Requires-Python: >=3.10
|
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
|
-
<img src="https://github.com/kaliv0/aldict/blob/main/assets/alter-ego.jpg?raw=true" width="250" alt="Alter Ego">
|
|
13
|
+
<img src="https://github.com/kaliv0/aldict/blob/main/.github/assets/alter-ego.jpg?raw=true" width="250" alt="Alter Ego">
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
---
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
aldict-1.2.1.dist-info/METADATA,sha256=EhnQOvS5TDWK14MVRelIRNyspGyzRkxKbr_WyF-L3VM,5247
|
|
2
|
+
aldict-1.2.1.dist-info/WHEEL,sha256=Wb0ASbVj8JvWHpOiIpPi7ucfIgJeCi__PzivviEAQFc,90
|
|
3
|
+
aldict-1.2.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
4
|
+
aldict-1.2.1.dist-info/licenses/LICENSE,sha256=frOVyHZrx5o-fh5xC-kggT3MaLdp6yxV_YGpVXFHFSQ,1071
|
|
5
|
+
aldict/__init__.py,sha256=4TSCecvDUKGKQHAYyws0jytjQiYiHRh9LA62L6kC-HI,206
|
|
6
|
+
aldict/alias_dict.py,sha256=DbGPulzlREVod-tMOnVY06Peezk6zsNZOx7aZ3YTuWU,8107
|
|
7
|
+
aldict-1.2.1.dist-info/RECORD,,
|
aldict/exception.py
DELETED
aldict-1.2.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
aldict-1.2.0.dist-info/METADATA,sha256=QNtG7xV9icevXw4BkrpNkcILHOUyu7Ch69NLNRI4B0M,5239
|
|
2
|
-
aldict-1.2.0.dist-info/WHEEL,sha256=Wb0ASbVj8JvWHpOiIpPi7ucfIgJeCi__PzivviEAQFc,90
|
|
3
|
-
aldict-1.2.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
4
|
-
aldict-1.2.0.dist-info/licenses/LICENSE,sha256=frOVyHZrx5o-fh5xC-kggT3MaLdp6yxV_YGpVXFHFSQ,1071
|
|
5
|
-
aldict/__init__.py,sha256=Fog4LzmMPlKzmFAuJ7YpYVSmSemClWfs_gA3qjWP_q8,233
|
|
6
|
-
aldict/alias_dict.py,sha256=JOC8-z08zhfEOSHyVoWg4dq1gX1MFs-bjFUBmeu7ydo,8012
|
|
7
|
-
aldict/exception.py,sha256=rFNmv9HuUOn2toPVYpVPQq6SOsl8nvwtJpGhPkK1puQ,83
|
|
8
|
-
aldict-1.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|