RidersPyTools 0.0.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.
@@ -0,0 +1,75 @@
1
+ import dolphin_memory_engine as DME
2
+ from .OffsetAttr import OffsetAttr
3
+ from .Constants import *
4
+
5
+ class Controller(OffsetAttr):
6
+ def __getattribute__(self, name):
7
+ # This gets our types and offsets (users cannot get these, they are protected from frontend).
8
+ type_to_read = super(Controller, self).__getattribute__(name)._datatype
9
+ offset_to_read = super(Controller, self).__getattribute__(name)._offset
10
+
11
+ # Check our types, read from game, return value if found
12
+ try:
13
+ value_read = 0
14
+ if type_to_read == u8 or type_to_read == s8 or type_to_read == Bool:
15
+ value_read = DME.read_byte(offset_to_read)
16
+ if type_to_read == u16 or type_to_read == s16:
17
+ value_read = DME.read_byte(offset_to_read)
18
+ if type_to_read == u32 or type_to_read == s32 or type_to_read == vu32:
19
+ value_read = DME.read_word(offset_to_read)
20
+ if type_to_read == f32:
21
+ value_read = DME.read_float(offset_to_read)
22
+ return value_read
23
+ except RuntimeError as e:
24
+ print("RuntimeError: DME is " + str(e) + ". Failed to return value.")
25
+ return 0
26
+ return name
27
+
28
+ def __setattr__(self, name, value):
29
+ # This gets our types and offsets (users cannot get these, they are protected from frontend).
30
+ type_to_write = super(Controller, self).__getattribute__(name)._datatype
31
+ offset_to_write = super(Controller, self).__getattribute__(name)._offset
32
+
33
+ # Check our types, read from game, return value if found
34
+ try:
35
+ if type_to_write == u8 or type_to_write == s8 or type_to_write == Bool:
36
+ DME.write_byte(offset_to_write, value)
37
+ if type_to_write == u16 or type_to_write == s16:
38
+ DME.write_byte(offset_to_write, value)
39
+ if type_to_write == u32 or type_to_write == s32 or type_to_write == vu32:
40
+ DME.write_word(offset_to_write, value)
41
+ if type_to_write == f32:
42
+ DME.write_float(offset_to_write, value)
43
+ return
44
+ except RuntimeError as e:
45
+ print("RuntimeError: DME is " + str(e) + ". Failed to write new value.")
46
+ return
47
+ def __init__(self, ptr_start_addr, datatype):
48
+ # Offset attributes:
49
+ # 1. Player Struct offset: 0x0
50
+ # 2. Datatype: ptr
51
+ # 3. ptr address
52
+
53
+ # This will NOT call __setattr__
54
+ super().__init__(0x0, datatype, ptr_start_addr)
55
+
56
+ # Do a DME read at the start here of bytes length of struct, then parse that output for the rest here
57
+
58
+ # Set attributes here
59
+ super().__setattr__('timeSinceLastInput', OffsetAttr(ptr_start_addr + 0x0, u32))
60
+ super().__setattr__('unk4', OffsetAttr(ptr_start_addr + 0x4, u32))
61
+ super().__setattr__('holdFaceButtons', OffsetAttr(ptr_start_addr + 0x8, Flag("Buttons")))
62
+ super().__setattr__('toggleFaceButtons', OffsetAttr(ptr_start_addr + 0xc, Flag("Buttons")))
63
+ super().__setattr__('filler', OffsetAttr(ptr_start_addr + 0x10, fillerData(0x8)))
64
+ super().__setattr__('leftStickHorizontal', OffsetAttr(ptr_start_addr + 0x18, s8))
65
+ super().__setattr__('leftStickVertical', OffsetAttr(ptr_start_addr + 0x19, s8))
66
+ super().__setattr__('filler2', OffsetAttr(ptr_start_addr + 0x1a, fillerData(0x2)))
67
+ super().__setattr__('rightStickHorizontal', OffsetAttr(ptr_start_addr + 0x1c, s8))
68
+ super().__setattr__('rightStickVertical', OffsetAttr(ptr_start_addr + 0x1d, s8))
69
+ super().__setattr__('port', OffsetAttr(ptr_start_addr + 0x1e, u8))
70
+ super().__setattr__('filler3', OffsetAttr(ptr_start_addr + 0x1f, fillerData(0x5)))
71
+ super().__setattr__('initStatus2', OffsetAttr(ptr_start_addr + 0x24, u32))
72
+ super().__setattr__('initStatus', OffsetAttr(ptr_start_addr + 0x28, Bool))
73
+ super().__setattr__('unk29', OffsetAttr(ptr_start_addr + 0x29, Bool))
74
+ super().__setattr__('filler4', OffsetAttr(ptr_start_addr + 0x2a, fillerData(0x6)))
75
+ pass
@@ -0,0 +1,72 @@
1
+ import dolphin_memory_engine as DME
2
+ from .OffsetAttr import OffsetAttr
3
+ from .Constants import *
4
+
5
+
6
+ class GearStats(OffsetAttr):
7
+ def __getattribute__(self, name):
8
+ # This gets our types and offsets (users cannot get these, they are protected from frontend).
9
+ type_to_read = super(GearStats, self).__getattribute__(name)._datatype
10
+ offset_to_read = super(GearStats, self).__getattribute__(name)._offset
11
+
12
+ # Check our types, read from game, return value if found
13
+ try:
14
+ value_read = 0
15
+ if type_to_read == u8 or type_to_read == s8 or type_to_read == Bool:
16
+ value_read = DME.read_byte(offset_to_read)
17
+ if type_to_read == u16 or type_to_read == s16:
18
+ value_read = DME.read_byte(offset_to_read)
19
+ if type_to_read == u32 or type_to_read == s32 or type_to_read == vu32:
20
+ value_read = DME.read_word(offset_to_read)
21
+ if type_to_read == f32:
22
+ value_read = DME.read_float(offset_to_read)
23
+ return value_read
24
+ except RuntimeError as e:
25
+ print("RuntimeError: DME is " + str(e) + ". Failed to return value.")
26
+ return 0
27
+ return name
28
+ def __setattr__(self, name, value):
29
+ # This gets our types and offsets (users cannot get these, they are protected from frontend).
30
+ type_to_write = super(GearStats, self).__getattribute__(name)._datatype
31
+ offset_to_write = super(GearStats, self).__getattribute__(name)._offset
32
+
33
+ # Check our types, read from game, return value if found
34
+ try:
35
+ if type_to_write == u8 or type_to_write == s8 or type_to_write == Bool:
36
+ DME.write_byte(offset_to_write, value)
37
+ if type_to_write == u16 or type_to_write == s16:
38
+ DME.write_byte(offset_to_write, value)
39
+ if type_to_write == u32 or type_to_write == s32 or type_to_write == vu32:
40
+ DME.write_word(offset_to_write, value)
41
+ if type_to_write == f32:
42
+ DME.write_float(offset_to_write, value)
43
+ return
44
+ except RuntimeError as e:
45
+ print("RuntimeError: DME is " + str(e) + ". Failed to write new value.")
46
+ return
47
+ def __init__(self, ptr_start_addr, datatype):
48
+ # Offset attributes:
49
+ # 1. Player Struct offset: 0x0
50
+ # 2. Datatype: u32
51
+
52
+ # This will NOT call __setattr__
53
+ super().__init__(0x0, datatype)
54
+
55
+ # Do a DME read at the start here of bytes length of struct, then parse that output for the rest here
56
+
57
+ # Set attributes here
58
+ super().__setattr__('baseTopSpeed', OffsetAttr(ptr_start_addr + 0x0, f32))
59
+ super().__setattr__('baseAccel', OffsetAttr(ptr_start_addr + 0x4, f32))
60
+ super().__setattr__('topSpeed', OffsetAttr(ptr_start_addr + 0x8, f32))
61
+ super().__setattr__('tier1Accel', OffsetAttr(ptr_start_addr + 0xc, f32))
62
+ super().__setattr__('tier2Accel', OffsetAttr(ptr_start_addr + 0x10, f32))
63
+ super().__setattr__('tier3Accel', OffsetAttr(ptr_start_addr + 0x14, f32))
64
+ super().__setattr__('offroadSpeedCap', OffsetAttr(ptr_start_addr + 0x18, f32))
65
+ super().__setattr__('maxAir', OffsetAttr(ptr_start_addr + 0x1c, s32))
66
+ super().__setattr__('airDrain', OffsetAttr(ptr_start_addr + 0x20, s32))
67
+ super().__setattr__('driftCost', OffsetAttr(ptr_start_addr + 0x24, s32))
68
+ super().__setattr__('boostCost', OffsetAttr(ptr_start_addr + 0x28, s32))
69
+ super().__setattr__('tornadoCost', OffsetAttr(ptr_start_addr + 0x2c, s32))
70
+ super().__setattr__('driftDashSpeed', OffsetAttr(ptr_start_addr + 0x30, f32))
71
+ super().__setattr__('boostSpeed', OffsetAttr(ptr_start_addr + 0x34, f32))
72
+ pass
@@ -0,0 +1,176 @@
1
+ import dolphin_memory_engine as DME
2
+ from .OffsetAttr import OffsetAttr
3
+ from .Constants import *
4
+
5
+ class GenericData(OffsetAttr):
6
+ def __getattribute__(self, name):
7
+ # This gets our types and offsets (users cannot get these, they are protected from frontend).
8
+ type_to_read = vars(super(GenericData, self))['_datatype']
9
+ offset_to_read = vars(super(GenericData, self))['_offset']
10
+
11
+ # Check our types, read from game, return value if found
12
+ if 'READ_FROM_DME' in name:
13
+ try:
14
+ value_read = None
15
+ if type_to_read == u8 or type_to_read == s8 or type_to_read == Bool:
16
+ value_read = DME.read_byte(offset_to_read)
17
+ if type_to_read == u16 or type_to_read == s16:
18
+ value_read = DME.read_byte(offset_to_read)
19
+ if type_to_read == u32 or type_to_read == s32 or type_to_read == vu32:
20
+ value_read = DME.read_word(offset_to_read)
21
+ if type_to_read == f32:
22
+ value_read = DME.read_float(offset_to_read)
23
+ if value_read is None:
24
+ # No types were valid, read bytes instead
25
+ value_read = DME.read_bytes(offset_to_read, type_to_read)
26
+ return value_read
27
+ except RuntimeError as e:
28
+ print("RuntimeError: DME is " + str(e) + ". Failed to return value.")
29
+ return vars(super(GenericData, self))
30
+
31
+ def __setattr__(self, name, value):
32
+ # This gets our types and offsets (users cannot get these, they are protected from frontend).
33
+ type_to_write = vars(super(GenericData, self))['_datatype']
34
+ offset_to_write = vars(super(GenericData, self))['_offset']
35
+
36
+ # Check our types, read from game, return value if found
37
+ try:
38
+ if type_to_write == u8 or type_to_write == s8 or type_to_write == Bool:
39
+ DME.write_byte(offset_to_write, value)
40
+ if type_to_write == u16 or type_to_write == s16:
41
+ DME.write_byte(offset_to_write, value)
42
+ if type_to_write == u32 or type_to_write == s32 or type_to_write == vu32:
43
+ DME.write_word(offset_to_write, value)
44
+ if type_to_write == f32:
45
+ DME.write_float(offset_to_write, value)
46
+ return
47
+ except RuntimeError as e:
48
+ print("RuntimeError: DME is " + str(e) + ". Failed to write new value.")
49
+ return
50
+
51
+ # Define generics as int comparisons, since most of this is int based.
52
+ def __lt__(self, other):
53
+ if isinstance(other, GenericData):
54
+ other = getattr(other, "READ_FROM_DME")
55
+ return getattr(self, "READ_FROM_DME") < other
56
+
57
+ def __le__(self, other):
58
+ if isinstance(other, GenericData):
59
+ other = getattr(other, "READ_FROM_DME")
60
+ return getattr(self, "READ_FROM_DME") <= other
61
+
62
+ def __eq__(self, other):
63
+ if isinstance(other, GenericData):
64
+ other = getattr(other, "READ_FROM_DME")
65
+ return getattr(self, "READ_FROM_DME") == other
66
+
67
+ def __ne__(self, other):
68
+ if isinstance(other, GenericData):
69
+ other = getattr(other, "READ_FROM_DME")
70
+ return getattr(self, "READ_FROM_DME") != other
71
+
72
+ def __gt__(self, other):
73
+ if isinstance(other, GenericData):
74
+ other = getattr(other, "READ_FROM_DME")
75
+ return getattr(self, "READ_FROM_DME") > other
76
+
77
+ def __ge__(self, other):
78
+ if isinstance(other, GenericData):
79
+ other = getattr(other, "READ_FROM_DME")
80
+ return getattr(self, "READ_FROM_DME") >= other
81
+
82
+ def __int__(self):
83
+ return int(getattr(self, "READ_FROM_DME"))
84
+
85
+ def __index__(self):
86
+ return int(getattr(self, "READ_FROM_DME"))
87
+
88
+ def __float__(self):
89
+ return float(getattr(self, "READ_FROM_DME"))
90
+
91
+ def __repr__(self):
92
+ return str(getattr(self, "READ_FROM_DME"))
93
+
94
+ def __str__(self):
95
+ return str(getattr(self, "READ_FROM_DME"))
96
+
97
+ def __format__(self, format_spec):
98
+ return format(getattr(self, "READ_FROM_DME"), format_spec)
99
+
100
+ def __hash__(self):
101
+ return hash(getattr(self, "READ_FROM_DME"))
102
+
103
+ def __add__(self, other):
104
+ if isinstance(other, GenericData):
105
+ other = getattr(other, "READ_FROM_DME")
106
+ return getattr(self, "READ_FROM_DME") + other
107
+
108
+ def __sub__(self, other):
109
+ if isinstance(other, GenericData):
110
+ other = getattr(other, "READ_FROM_DME")
111
+ return getattr(self, "READ_FROM_DME") - other
112
+
113
+ def __mul__(self, other):
114
+ if isinstance(other, GenericData):
115
+ other = getattr(other, "READ_FROM_DME")
116
+ return getattr(self, "READ_FROM_DME") * other
117
+
118
+ def __truediv__(self, other):
119
+ if isinstance(other, GenericData):
120
+ other = getattr(other, "READ_FROM_DME")
121
+ return getattr(self, "READ_FROM_DME") / other
122
+
123
+ def __floordiv__(self, other):
124
+ if isinstance(other, GenericData):
125
+ other = getattr(other, "READ_FROM_DME")
126
+ return getattr(self, "READ_FROM_DME") // other
127
+
128
+ def __mod__(self, other):
129
+ if isinstance(other, GenericData):
130
+ other = getattr(other, "READ_FROM_DME")
131
+ return getattr(self, "READ_FROM_DME") % other
132
+
133
+ def __pow__(self, power):
134
+ return getattr(self, "READ_FROM_DME") ** power
135
+
136
+ def __lshift__(self, other):
137
+ if isinstance(other, GenericData):
138
+ other = getattr(other, "READ_FROM_DME")
139
+ return getattr(self, "READ_FROM_DME") << other
140
+
141
+ def __rshift__(self, other):
142
+ if isinstance(other, GenericData):
143
+ other = getattr(other, "READ_FROM_DME")
144
+ return getattr(self, "READ_FROM_DME") >> other
145
+
146
+ def __invert__(self):
147
+ return ~getattr(self, "READ_FROM_DME")
148
+
149
+ def __and__(self, other):
150
+ if isinstance(other, GenericData):
151
+ other = getattr(other, "READ_FROM_DME")
152
+ return getattr(self, "READ_FROM_DME") & other
153
+
154
+ def __or__(self, other):
155
+ if isinstance(other, GenericData):
156
+ other = getattr(other, "READ_FROM_DME")
157
+ return getattr(self, "READ_FROM_DME") | other
158
+
159
+ def __xor__(self, other):
160
+ if isinstance(other, GenericData):
161
+ other = getattr(other, "READ_FROM_DME")
162
+ return getattr(self, "READ_FROM_DME") ^ other
163
+
164
+ def __abs__(self):
165
+ return abs(getattr(self, "READ_FROM_DME"))
166
+
167
+ def __neg__(self):
168
+ return -getattr(self, "READ_FROM_DME")
169
+
170
+ def __bytes__(self):
171
+ return bytes(getattr(self, "READ_FROM_DME"))
172
+
173
+ def __init__(self, addr, datatype):
174
+ super().__init__(addr, datatype)
175
+ # super().__setattr__(str(name), OffsetAttr(offset=addr, datatype=datatype))
176
+ pass
@@ -0,0 +1,26 @@
1
+ """
2
+ This is where a class is defined for each offset, containing the following:
3
+ 1. Offset
4
+ 2. Datatype
5
+ 3. Struct type (if ptr)
6
+ """
7
+
8
+ class OffsetAttr:
9
+ def __init__(self, offset, datatype, ptr=None, struct=None):
10
+ # REQUIRED TO HAVE BOTH OF THESE
11
+ # self._offset = offset
12
+ super().__setattr__('_offset', offset)
13
+ # self.__dict__["_offset"] = offset
14
+ super().__setattr__('_datatype', datatype)
15
+ # self._datatype = datatype
16
+ # self.__dict__["_datatype"] = datatype
17
+ # Treat this class as a superclass to any other structs that may exist
18
+
19
+ # If the attribute is a pointer, set the value it points to here
20
+ if ptr is not None:
21
+ # TODO: Add support for checking where the pointed address leads to
22
+ super().__setattr__('_ptr', ptr)
23
+ # self.__dict__["_ptr"] = ptr
24
+ # self._ptr = ptr
25
+ else:
26
+ pass
File without changes
File without changes
@@ -0,0 +1,76 @@
1
+ Metadata-Version: 2.4
2
+ Name: RidersPyTools
3
+ Version: 0.0.1
4
+ Summary: Tools to read/write data and scripts for Sonic Riders (GC) & mods on dolphin
5
+ Project-URL: Homepage, https://github.com/KidWizardOfTheWeb/RidersPyTools
6
+ Project-URL: Issues, https://github.com/KidWizardOfTheWeb/RidersPyTools/issues
7
+ Author-email: KidChameleon <smasih2020@gmail.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: >=3.12
13
+ Requires-Dist: dolphin-memory-engine>=1.3.0
14
+ Description-Content-Type: text/markdown
15
+
16
+ # RidersPyTools
17
+
18
+ Package designed to write scripts for Sonic Riders (GameCube) and Sonic Riders: Zero Gravity (Wii). Compatible with vanilla/all mods.
19
+
20
+ Still a MAJOR work in progress, but functional at a basic level for now.
21
+
22
+ ## Code style
23
+
24
+ We enforce the same standards as the Sonic Riders: Tournament Edition C++ codebase for Sonic Riders, aiming to be as close as possible in syntax to the existing decompilation.
25
+
26
+ In some cases, this isn't 100% possible, but it remains the goal, as this allows us to read code similarly between C++ and python,
27
+ as well as provide a bridge for newer users learning to program to jump into the C++ side of things.
28
+
29
+ Other games may have different data structures and syntax, feel free to add/modify classes as needed to fit your game.
30
+
31
+ Some concepts:
32
+
33
+ Ways to get a player pointer:
34
+ Instantiate a player object in Python:
35
+
36
+ `player1 = Player(0) # Instantiates a pointer to player 1, based on the current game version detected.`
37
+
38
+ Instantiate a player object starting at X address:
39
+
40
+ ```python
41
+ player1Vanilla = Player(0, 0x80609440) # Vanilla address
42
+ player1TE = Player(0, TE_PLAYER_PTR) # Some addresses are given identifiers for ease of use
43
+ ```
44
+
45
+ Things you can do:
46
+
47
+ Read data:
48
+
49
+ `print(player1.rings)`
50
+
51
+ Compare data:
52
+
53
+ ```python
54
+ player1 = Player(0, 0x80609440)
55
+ if player1.rings > 0:
56
+ print("You have at least one ring!")
57
+ ```
58
+
59
+ Write data:
60
+
61
+ ```python
62
+ player1 = Player(0, 0x80609440)
63
+ player1.currentAir = 100000
64
+ player1.gearStats[int(player1.level)].boostSpeed = pSpeed(300.0)
65
+ ```
66
+
67
+ Math operations:
68
+ ```python
69
+ player1 = Player(0, 0x80609440)
70
+ hundredRingDiff = 100 - int(player1.rings)
71
+ print(hundredRingDiff)
72
+ ```
73
+
74
+ And you can integrate this into other scripts too!
75
+
76
+ We use hatchling to compile the builds. Build compilation instructions coming soon.
@@ -0,0 +1,22 @@
1
+ RidersPyTools_KC/Archetypes.py,sha256=PlNHKPSspXFEkAjgSBNlyCVgluTt-hR9mlv_C_V9eys,557
2
+ RidersPyTools_KC/Characters.py,sha256=bSMM7Qaa4XnuNkPyfV_EDntRhTDkUYZoSUhH87Fx_pc,1140
3
+ RidersPyTools_KC/DolphinProc.py,sha256=2ZNrUrZ-C0YxBlxkKU-_CUrIuDebGOrKitDPKdK1bck,2610
4
+ RidersPyTools_KC/GameState.py,sha256=QBuBGZFVUU122_Xg7UDtne7N94WoEguUNKTW4lKxjfo,2504
5
+ RidersPyTools_KC/Gears.py,sha256=SO4hROalYvmR3Qg_lJcHwJionk-8CnIFY9-2IlOf6FE,3463
6
+ RidersPyTools_KC/MapParser.py,sha256=GZgq3Wlhpe4QFAFO9vnrMsupMc5Cbs4d5QMv-Zy0A8c,4613
7
+ RidersPyTools_KC/Player.py,sha256=_yLZ3vFhxDzUcfzC_yiV3yzCTLtrZKhtegr5UvEvpus,17597
8
+ RidersPyTools_KC/RidersObject.py,sha256=5bLvjd8VlOl3AuR0nEFVQH_31LG2dnaKruQXoANUqt0,5632
9
+ RidersPyTools_KC/Stages.py,sha256=vpMjvIpXXcKkpjMdXwgIqZ6eYO5HeqsLvNL5J0nWqoM,1199
10
+ RidersPyTools_KC/__init__.py,sha256=URyRklqydZy7qXFhylgQS0la9vSn15UsUV888q8Uun4,22
11
+ RidersPyTools_KC/config.py,sha256=n3gO4n7V_QLRmGXlYsVYN-XBBPmQFI4p6wwDz404NZs,1471
12
+ RidersPyTools_KC/include/Constants.py,sha256=u4nzYt2pj_SUNEA5m01sbKmin52FPARK_rMXybRMh-Y,2642
13
+ RidersPyTools_KC/include/Controller.py,sha256=RZ8VfcqXEY4JdAHKxd_l-YoitVmO7AExRPxEFwhRGGc,4066
14
+ RidersPyTools_KC/include/GearStats.py,sha256=7lRt9FUJgtCtBSDJ2Pt3h2_6hglL7W5HtxpDZpRdrhM,3763
15
+ RidersPyTools_KC/include/GenericData.py,sha256=uPRamiEIYXOZuxZz5bBD37mKuY-MV6DK1XPQr2wfT5s,6746
16
+ RidersPyTools_KC/include/OffsetAttr.py,sha256=9lF262_1s1JFZc8cmRDz34Pwi1CDx3thVBQF0jKb0PU,921
17
+ RidersPyTools_KC/include/Structs.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
+ RidersPyTools_KC/include/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
+ riderspytools-0.0.1.dist-info/METADATA,sha256=YgCCfYxiE1R_-axqbLDbO8Vrr85YT2MtnINbaKpm7q8,2374
20
+ riderspytools-0.0.1.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
21
+ riderspytools-0.0.1.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
22
+ riderspytools-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2018 The Python Packaging Authority
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.