nsarchive 1.0.0__py3-none-any.whl → 1.1.0__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.
- nsarchive/__init__.py +1 -0
- nsarchive/cls/base.py +4 -7
- {nsarchive-1.0.0.dist-info → nsarchive-1.1.0.dist-info}/METADATA +1 -1
- {nsarchive-1.0.0.dist-info → nsarchive-1.1.0.dist-info}/RECORD +6 -6
- {nsarchive-1.0.0.dist-info → nsarchive-1.1.0.dist-info}/LICENSE +0 -0
- {nsarchive-1.0.0.dist-info → nsarchive-1.1.0.dist-info}/WHEEL +0 -0
nsarchive/__init__.py
CHANGED
nsarchive/cls/base.py
CHANGED
@@ -13,18 +13,15 @@ class NSID(str):
|
|
13
13
|
interior_department = "103"
|
14
14
|
|
15
15
|
def __new__(cls, value):
|
16
|
-
instance = super(NSID, cls).__new__(cls, value)
|
17
|
-
return instance
|
18
|
-
|
19
|
-
def __init__(self, value: str | int = ""):
|
20
16
|
if type(value) == int:
|
21
17
|
value = hex(value)
|
22
18
|
elif type(value) in (str, NSID):
|
23
19
|
value = hex(int(value, 16))
|
24
20
|
else:
|
25
21
|
return TypeError(f"<{value}> is not NSID serializable")
|
26
|
-
|
22
|
+
|
27
23
|
if value.startswith("0x"):
|
28
24
|
value = value[2:]
|
29
|
-
|
30
|
-
|
25
|
+
|
26
|
+
instance = super(NSID, cls).__new__(cls, value.upper())
|
27
|
+
return instance
|
@@ -1,13 +1,13 @@
|
|
1
|
-
nsarchive/__init__.py,sha256=
|
1
|
+
nsarchive/__init__.py,sha256=Y_vhFVEURz-14rePh35a_zHLvCJQOwGJODKBfPRAS44,23986
|
2
2
|
nsarchive/assets/default_avatar.png,sha256=n-4vG_WPke8LvbY3ZU6oA-H-OtRoIu7woKnRq9DCIlI,51764
|
3
3
|
nsarchive/cls/archives.py,sha256=P3xOg7D7og-Vnf3VQWeIwmJRD9g7dVQBYChvMIMM6i8,2008
|
4
|
-
nsarchive/cls/base.py,sha256=
|
4
|
+
nsarchive/cls/base.py,sha256=z7NTvrtbeaUF1T_o-J7PL2N8axkmJek9EoKcQ8fTF9I,715
|
5
5
|
nsarchive/cls/economy.py,sha256=RjFu3VzNunazslbd4Ia5p1Jr-jJP5CvIcbVOzkDTwTU,549
|
6
6
|
nsarchive/cls/entities.py,sha256=zz0JTphgtXpCIVH8dgb3hxc55nxwvXF3m2yIXgp_Q9k,5743
|
7
7
|
nsarchive/cls/exceptions.py,sha256=QN6Qn7cxTkGoC4lO50hBAq4gZCgo7scQvCkb-xKl6Xs,692
|
8
8
|
nsarchive/cls/republic.py,sha256=FphoO9TBE9hyfdjcePjQHqBw7NFT74f-avE9T5qTTuE,1750
|
9
9
|
nsarchive/utils/assets.py,sha256=hd0STSpa0yT-OJlUyI_wCYXJqcBiUMQds2pZTXNNg9c,382
|
10
|
-
nsarchive-1.
|
11
|
-
nsarchive-1.
|
12
|
-
nsarchive-1.
|
13
|
-
nsarchive-1.
|
10
|
+
nsarchive-1.1.0.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
|
11
|
+
nsarchive-1.1.0.dist-info/METADATA,sha256=7ve5bI2eEPMGbr_MFVbQ4ihc8_pKtnbQ7yLTEPy21jA,5629
|
12
|
+
nsarchive-1.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
13
|
+
nsarchive-1.1.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|