swizzle 2.3.1__py3-none-any.whl → 2.3.2__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.
swizzle/__init__.py CHANGED
@@ -18,7 +18,7 @@ except ImportError:
18
18
 
19
19
  _type = builtins.type
20
20
 
21
- __version__ = "2.3.1"
21
+ __version__ = "2.3.2"
22
22
 
23
23
  MISSING = object()
24
24
 
@@ -535,6 +535,10 @@ def swizzle(cls=None, meta=False, sep=None, type=tuple, only_attrs=None):
535
535
  return class_decorator(cls)
536
536
 
537
537
 
538
+ t = swizzledtuple
539
+ # c = swizzledclass
540
+
541
+
538
542
  class Swizzle(types.ModuleType):
539
543
  def __init__(self):
540
544
  types.ModuleType.__init__(self, __name__)
swizzle/trie.py CHANGED
@@ -48,14 +48,3 @@ class Trie:
48
48
  result.append(query[i:longest_end])
49
49
  i = longest_end
50
50
  return result
51
-
52
-
53
- if __name__ == "__main__":
54
- words = ["mango", "man", "go", "bat", "manbat"]
55
- trie = Trie(words)
56
-
57
- print(trie.split_longest_prefix("mangomanmanbat")) # ['mango', 'man', 'bat']
58
- print(trie.split_longest_prefix("manbat")) # ['manbat']
59
- print(trie.split_longest_prefix("mango")) # ['mango']
60
- print(trie.split_longest_prefix("mangoman")) # ['mango', 'man']
61
- print(trie.split_longest_prefix("unknownword")) # None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: swizzle
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Swizzle 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
@@ -0,0 +1,7 @@
1
+ swizzle/__init__.py,sha256=qPf9IXyZ3JGA2nVM_fCcsxluoxxHumIfHHkL-VE5MZg,20040
2
+ swizzle/trie.py,sha256=fa5iRR-6dZ8nHsuqalGxH40uYiP5Ge7Kc4r51aCOwbk,1355
3
+ swizzle-2.3.2.dist-info/licenses/LICENSE,sha256=WDAegKWtl3rZUiN-SQ2FEQQwEFxlM_jEKQyJRJawJXo,1070
4
+ swizzle-2.3.2.dist-info/METADATA,sha256=wDotyAgFlMThAENLwZYkEoEhR_QiO2NcOXqylkzVQdc,5684
5
+ swizzle-2.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ swizzle-2.3.2.dist-info/top_level.txt,sha256=XFSQti81x2zM0zAMCY1YD0lqB1eSg5my9BB03uFgCic,8
7
+ swizzle-2.3.2.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- swizzle/__init__.py,sha256=8lOReILgZiQ38ez_BTRsVTbWbHJ2cHfQM9edkU6voOQ,19996
2
- swizzle/trie.py,sha256=JutRoUHut2kbNJZ8hmHMCaXP8QHGl7KXzLv2rRVFrb0,1791
3
- swizzle-2.3.1.dist-info/licenses/LICENSE,sha256=WDAegKWtl3rZUiN-SQ2FEQQwEFxlM_jEKQyJRJawJXo,1070
4
- swizzle-2.3.1.dist-info/METADATA,sha256=QYsGAWzGAB3i25i6zZZOqHM7PkIbMmEqNleLNOr-ttk,5684
5
- swizzle-2.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- swizzle-2.3.1.dist-info/top_level.txt,sha256=XFSQti81x2zM0zAMCY1YD0lqB1eSg5my9BB03uFgCic,8
7
- swizzle-2.3.1.dist-info/RECORD,,