tf2-sku-to-name 2.0.0__py3-none-any.whl → 2.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.
sku/__init__.py CHANGED
@@ -2,7 +2,7 @@ from sku.parser import Sku, get_schema
2
2
  from sku.models import itemClass
3
3
  from sku.schema import Schema
4
4
 
5
- __version__ = "2.0.0"
5
+ __version__ = "2.0.1"
6
6
  __all__ = ["Sku", "itemClass", "Schema", "get_schema", "update_schema"]
7
7
 
8
8
  # Main functions
sku/schema.py CHANGED
@@ -245,7 +245,10 @@ class Schema:
245
245
 
246
246
  def _fetch_from_autobot(self):
247
247
  try:
248
- response = requests.get('https://schema.autobot.tf/schema')
248
+ headers = {
249
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
250
+ }
251
+ response = requests.get('https://schema.autobot.tf/schema', headers=headers)
249
252
  response.raise_for_status()
250
253
  data = response.json()
251
254
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tf2-sku-to-name
3
- Version: 2.0.0
3
+ Version: 2.0.1
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
@@ -0,0 +1,9 @@
1
+ sku/__init__.py,sha256=GDLOBRSUgMTYcgjA-T4tzTEiXQF8YHwNtzNaoeLILxQ,377
2
+ sku/models.py,sha256=9jQimlGwJrJRmAY5o9PTKfdgp5kRajjMcH-Xp3GA35k,804
3
+ sku/parser.py,sha256=f-myoUIpbNyAT9tUct0gsZSG14VKnZA9IV6SllsTvKA,26650
4
+ sku/schema.py,sha256=U_L-p4p7eJstR3lVKu6Bca6vxEZXbA0wBpEt9c5nXtE,25254
5
+ tf2_sku_to_name-2.0.1.dist-info/licenses/LICENSE,sha256=oZXGpA1oKt4L1lkrblMbut3_ClR3etussSbI0pBkL38,1070
6
+ tf2_sku_to_name-2.0.1.dist-info/METADATA,sha256=xXRfvs47b__3zfC-tcmFy_JhRsDe1zPeTUdolNT3PdM,2723
7
+ tf2_sku_to_name-2.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ tf2_sku_to_name-2.0.1.dist-info/top_level.txt,sha256=2ekTXVLQ1fHUW3ge6PK7EaoEwkUy0tnsaDvoNkPXfNw,4
9
+ tf2_sku_to_name-2.0.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- sku/__init__.py,sha256=77dSD2mzT1jgk-OYCWpuHVBTBCmWMdqfbwCONzmd2s0,377
2
- sku/models.py,sha256=9jQimlGwJrJRmAY5o9PTKfdgp5kRajjMcH-Xp3GA35k,804
3
- sku/parser.py,sha256=f-myoUIpbNyAT9tUct0gsZSG14VKnZA9IV6SllsTvKA,26650
4
- sku/schema.py,sha256=MxfQGo8dAm5O_YZ0uzicQwULSz-4khoz_-l04i6uEZ8,25051
5
- tf2_sku_to_name-2.0.0.dist-info/licenses/LICENSE,sha256=oZXGpA1oKt4L1lkrblMbut3_ClR3etussSbI0pBkL38,1070
6
- tf2_sku_to_name-2.0.0.dist-info/METADATA,sha256=vMREIUXo44PBZcUhbWTWCKksodvujdKiwPTeZgCSh2c,2723
7
- tf2_sku_to_name-2.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- tf2_sku_to_name-2.0.0.dist-info/top_level.txt,sha256=2ekTXVLQ1fHUW3ge6PK7EaoEwkUy0tnsaDvoNkPXfNw,4
9
- tf2_sku_to_name-2.0.0.dist-info/RECORD,,