ey-commerce-lib 1.0.1__tar.gz → 1.0.2__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.

Potentially problematic release.


This version of ey-commerce-lib might be problematic. Click here for more details.

Files changed (32) hide show
  1. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/PKG-INFO +1 -1
  2. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/pyproject.toml +1 -1
  3. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/parser/order.py +3 -1
  4. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/tests/dxm/test_order.py +1 -3
  5. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/.gitignore +0 -0
  6. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/.python-version +0 -0
  7. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/README.md +0 -0
  8. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/pytest.ini +0 -0
  9. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/__init__.py +0 -0
  10. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/__init__.py +0 -0
  11. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/constant/__init__.py +0 -0
  12. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/constant/order.py +0 -0
  13. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/exception/__init__.py +0 -0
  14. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/exception/common.py +0 -0
  15. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/main.py +0 -0
  16. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/order.py +0 -0
  17. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/parser/__init__.py +0 -0
  18. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/parser/common.py +0 -0
  19. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/parser/purchase.py +0 -0
  20. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/parser/warehouse.py +0 -0
  21. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/schemas/__init__.py +0 -0
  22. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/schemas/common.py +0 -0
  23. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/schemas/order.py +0 -0
  24. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/dxm/schemas/warehouse.py +0 -0
  25. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/py.typed +0 -0
  26. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/utils/__init__.py +0 -0
  27. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/utils/dxm.py +0 -0
  28. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/utils/list_util.py +0 -0
  29. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/src/ey_commerce_lib/utils/str.py +0 -0
  30. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/tests/__init__.py +0 -0
  31. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/tests/dxm/__init__.py +0 -0
  32. {ey_commerce_lib-1.0.1 → ey_commerce_lib-1.0.2}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ey-commerce-lib
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: eeyoung电商客户端调用封装
5
5
  Author-email: 饶奇奇 <1124393197@qq.com>
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ey-commerce-lib"
3
- version = "1.0.1"
3
+ version = "1.0.2"
4
4
  description = "eeyoung电商客户端调用封装"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -201,9 +201,11 @@ def list_order_rule(html_str: str):
201
201
  for rule_element in rule_element_list:
202
202
  rule_id = rule_element.xpath('./td[1]/input/@data-id')[0]
203
203
  rule_name = rule_element.xpath('./td[2]/text()')[0]
204
+ status = rule_element.xpath('./td[5]/span/text()')[0]
204
205
  rule_list.append({
205
206
  'rule_id': rule_id,
206
- 'rule_name': rule_name
207
+ 'rule_name': rule_name,
208
+ 'status': status
207
209
  })
208
210
  return rule_list
209
211
 
@@ -51,7 +51,5 @@ headers = {
51
51
  @pytest.mark.asyncio
52
52
  async def test_order():
53
53
  async with DxmClient(cookies=cookies, headers=headers) as dxm:
54
- data = await dxm.list_order_detail_async(ORDER_SEARCH_SELF_WAREHOUSE_BASE_FORM)
55
- for item in data:
56
- print(item)
54
+ print(await dxm.list_rule(DxmOrderRuleType.LOGISTICS))
57
55
  # print(await dxm.get_warehouse_dict())
File without changes