aldict 1.2.0__tar.gz → 1.2.1__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.2.0
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
  ---
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="https://github.com/kaliv0/aldict/blob/main/assets/alter-ego.jpg?raw=true" width="250" alt="Alter Ego">
2
+ <img src="https://github.com/kaliv0/aldict/blob/main/.github/assets/alter-ego.jpg?raw=true" width="250" alt="Alter Ego">
3
3
  </p>
4
4
 
5
5
  ---
@@ -0,0 +1,8 @@
1
+ from .alias_dict import (
2
+ AliasDict as AliasDict,
3
+ AliasError as AliasError,
4
+ AliasValueError as AliasValueError,
5
+ )
6
+
7
+ __version__ = "1.2.1"
8
+ __all__ = ["AliasDict", "AliasError", "AliasValueError"]
@@ -2,7 +2,17 @@ from collections import UserDict
2
2
  from collections.abc import Mapping
3
3
  from itertools import chain
4
4
 
5
- from aldict.exception import AliasError, AliasValueError
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
  [project]
2
2
  name = "aldict"
3
- version = "1.2.0"
3
+ version = "1.2.1"
4
4
  requires-python = ">=3.10"
5
5
  authors = [
6
6
  { name = "kaliv0", email = "kaloyan.ivanov88@gmail.com" },
@@ -1,6 +0,0 @@
1
- from .alias_dict import AliasDict as AliasDict
2
- from .exception import AliasError as AliasError
3
- from .exception import AliasValueError as AliasValueError
4
-
5
- __version__ = "1.2.0"
6
- __all__ = ["AliasDict", "AliasError", "AliasValueError"]
@@ -1,6 +0,0 @@
1
- class AliasError(KeyError):
2
- pass
3
-
4
-
5
- class AliasValueError(ValueError):
6
- pass
File without changes