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.
- {swizzle-0.1.2 → swizzle-0.1.4}/PKG-INFO +6 -3
- {swizzle-0.1.2 → swizzle-0.1.4}/README.md +4 -1
- {swizzle-0.1.2 → swizzle-0.1.4}/setup.py +1 -1
- {swizzle-0.1.2 → swizzle-0.1.4}/swizzle/__init__.py +1 -1
- {swizzle-0.1.2 → swizzle-0.1.4}/swizzle.egg-info/PKG-INFO +6 -3
- {swizzle-0.1.2 → swizzle-0.1.4}/setup.cfg +0 -0
- {swizzle-0.1.2 → swizzle-0.1.4}/swizzle.egg-info/SOURCES.txt +0 -0
- {swizzle-0.1.2 → swizzle-0.1.4}/swizzle.egg-info/dependency_links.txt +0 -0
- {swizzle-0.1.2 → swizzle-0.1.4}/swizzle.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: swizzle
|
3
|
-
Version: 0.1.
|
4
|
-
Summary:
|
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.
|
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.
|
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="
|
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",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: swizzle
|
3
|
-
Version: 0.1.
|
4
|
-
Summary:
|
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.
|
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
|
File without changes
|
File without changes
|
File without changes
|