tf2-sku-to-name 1.0.4__tar.gz → 1.0.5__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tf2-sku-to-name
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: A python library that parses TF2 item SKU to the item's name and vice versa.
5
5
  Home-page: https://github.com/purplebarber/tf2-sku
6
6
  Author: Purple Barber
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='tf2-sku-to-name',
5
- version='1.0.4',
5
+ version='1.0.5',
6
6
  author='Purple Barber',
7
7
  description="A python library that parses TF2 item SKU to the item's name and vice versa.",
8
8
  url='https://github.com/purplebarber/tf2-sku',
@@ -2,7 +2,7 @@ from json import dumps
2
2
 
3
3
 
4
4
  class itemClass:
5
- def __init__(self):
5
+ def __init__(self, data=None):
6
6
  # Initialize the properties with their default values
7
7
  self.Defindex = 0
8
8
  self.Quality = 6
@@ -20,6 +20,11 @@ class itemClass:
20
20
  self.Output = None
21
21
  self.OutputQuality = None
22
22
 
23
+ # Update the properties with the provided data
24
+ if data is not None:
25
+ self.__dict__.update(data)
26
+
27
+
23
28
  def __str__(self):
24
29
  # Serialize the object to a JSON string
25
30
  return dumps(self.__dict__)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tf2-sku-to-name
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: A python library that parses TF2 item SKU to the item's name and vice versa.
5
5
  Home-page: https://github.com/purplebarber/tf2-sku
6
6
  Author: Purple Barber
File without changes