swizzle 0.1.2__tar.gz → 0.1.4__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,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: swizzle
3
- Version: 0.1.2
4
- Summary: Transforms a string representation of a Python literal into the corresponding Python object.
3
+ Version: 0.1.4
4
+ Summary: The Swizzle Decorator enables the retrieval of multiple attributes, similar to swizzling in computer graphics.
5
5
  Home-page: https://github.com/janthmueller/swizzle
6
6
  Author: Jan T. Müller
7
7
  Author-email: mail@jantmueller.com
@@ -77,7 +77,7 @@ class XYZ(IntEnum):
77
77
  Z = 3
78
78
 
79
79
  # Test the swizzle
80
- print(XYZ.yxz) # Output: (<XYZ.Y: 2>, <XYZ.X: 1>, <XYZ.Z: 3>)
80
+ print(XYZ.YXZ) # Output: (<XYZ.Y: 2>, <XYZ.X: 1>, <XYZ.Z: 3>)
81
81
  ```
82
82
  Setting the `meta` argument to `True` in the swizzle decorator extends the `getattr` behavior of the metaclass, enabling attribute swizzling directly on the class itself.
83
83
 
@@ -121,3 +121,6 @@ print(Test.xyyz) # Output: (4, 5)
121
121
  print(Test.xyzx) # Output: (7, 1)
122
122
  ```
123
123
 
124
+ ## To Do
125
+ - [ ] Add support for module-level swizzling
126
+ - [ ] Swizzle for method args (swizzle+partial)
@@ -58,7 +58,7 @@ class XYZ(IntEnum):
58
58
  Z = 3
59
59
 
60
60
  # Test the swizzle
61
- print(XYZ.yxz) # Output: (<XYZ.Y: 2>, <XYZ.X: 1>, <XYZ.Z: 3>)
61
+ print(XYZ.YXZ) # Output: (<XYZ.Y: 2>, <XYZ.X: 1>, <XYZ.Z: 3>)
62
62
  ```
63
63
  Setting the `meta` argument to `True` in the swizzle decorator extends the `getattr` behavior of the metaclass, enabling attribute swizzling directly on the class itself.
64
64
 
@@ -102,3 +102,6 @@ print(Test.xyyz) # Output: (4, 5)
102
102
  print(Test.xyzx) # Output: (7, 1)
103
103
  ```
104
104
 
105
+ ## To Do
106
+ - [ ] Add support for module-level swizzling
107
+ - [ ] Swizzle for method args (swizzle+partial)
@@ -17,7 +17,7 @@ setup(
17
17
  packages=find_packages(exclude=["tests"]),
18
18
  author="Jan T. Müller",
19
19
  author_email="mail@jantmueller.com",
20
- description="Transforms a string representation of a Python literal into the corresponding Python object.",
20
+ description="The Swizzle Decorator enables the retrieval of multiple attributes, similar to swizzling in computer graphics.",
21
21
  long_description=long_description,
22
22
  long_description_content_type="text/markdown",
23
23
  url="https://github.com/janthmueller/swizzle",
@@ -2,7 +2,7 @@ from functools import wraps
2
2
  import sys
3
3
  import types
4
4
 
5
- __version__ = "0.1.2"
5
+ __version__ = "0.1.4"
6
6
 
7
7
  def _split(s, sep):
8
8
  if sep == '':
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: swizzle
3
- Version: 0.1.2
4
- Summary: Transforms a string representation of a Python literal into the corresponding Python object.
3
+ Version: 0.1.4
4
+ Summary: The Swizzle Decorator enables the retrieval of multiple attributes, similar to swizzling in computer graphics.
5
5
  Home-page: https://github.com/janthmueller/swizzle
6
6
  Author: Jan T. Müller
7
7
  Author-email: mail@jantmueller.com
@@ -77,7 +77,7 @@ class XYZ(IntEnum):
77
77
  Z = 3
78
78
 
79
79
  # Test the swizzle
80
- print(XYZ.yxz) # Output: (<XYZ.Y: 2>, <XYZ.X: 1>, <XYZ.Z: 3>)
80
+ print(XYZ.YXZ) # Output: (<XYZ.Y: 2>, <XYZ.X: 1>, <XYZ.Z: 3>)
81
81
  ```
82
82
  Setting the `meta` argument to `True` in the swizzle decorator extends the `getattr` behavior of the metaclass, enabling attribute swizzling directly on the class itself.
83
83
 
@@ -121,3 +121,6 @@ print(Test.xyyz) # Output: (4, 5)
121
121
  print(Test.xyzx) # Output: (7, 1)
122
122
  ```
123
123
 
124
+ ## To Do
125
+ - [ ] Add support for module-level swizzling
126
+ - [ ] Swizzle for method args (swizzle+partial)
File without changes