amazon-orders 3.2.8__tar.gz → 3.2.9__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.
Files changed (40) hide show
  1. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/CHANGELOG.md +7 -1
  2. {amazon_orders-3.2.8/amazon_orders.egg-info → amazon_orders-3.2.9}/PKG-INFO +8 -8
  3. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/README.md +6 -6
  4. {amazon_orders-3.2.8 → amazon_orders-3.2.9/amazon_orders.egg-info}/PKG-INFO +8 -8
  5. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/__init__.py +1 -1
  6. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/selectors.py +8 -3
  7. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/pyproject.toml +1 -1
  8. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/LICENSE +0 -0
  9. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/MANIFEST.in +0 -0
  10. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazon_orders.egg-info/SOURCES.txt +0 -0
  11. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazon_orders.egg-info/dependency_links.txt +0 -0
  12. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazon_orders.egg-info/entry_points.txt +0 -0
  13. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazon_orders.egg-info/requires.txt +0 -0
  14. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazon_orders.egg-info/top_level.txt +0 -0
  15. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/banner.txt +0 -0
  16. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/cli.py +0 -0
  17. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/conf.py +0 -0
  18. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/constants.py +0 -0
  19. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/entity/__init__.py +0 -0
  20. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/entity/item.py +0 -0
  21. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/entity/order.py +0 -0
  22. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/entity/parsable.py +0 -0
  23. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/entity/recipient.py +0 -0
  24. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/entity/seller.py +0 -0
  25. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/entity/shipment.py +0 -0
  26. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/entity/transaction.py +0 -0
  27. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/exception.py +0 -0
  28. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/forms.py +0 -0
  29. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/orders.py +0 -0
  30. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/session.py +0 -0
  31. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/transactions.py +0 -0
  32. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/amazonorders/util.py +0 -0
  33. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/setup.cfg +0 -0
  34. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/tests/test_cli.py +0 -0
  35. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/tests/test_conf.py +0 -0
  36. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/tests/test_orders.py +0 -0
  37. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/tests/test_session.py +0 -0
  38. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/tests/test_transactions.py +0 -0
  39. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/tests/test_util.py +0 -0
  40. {amazon_orders-3.2.8 → amazon_orders-3.2.9}/tests/testcase.py +0 -0
@@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [Unreleased](https://github.com/alexdlaird/amazon-orders/compare/3.2.8...HEAD)
7
+ ## [Unreleased](https://github.com/alexdlaird/amazon-orders/compare/3.2.9...HEAD)
8
+
9
+ ## [3.2.9](https://github.com/alexdlaird/amazon-orders/compare/3.2.8...3.2.9) - 2025-02-19
10
+
11
+ ### Added
12
+
13
+ - Further support for Amazon's new `data-component` tag on order ID and order date.
8
14
 
9
15
  ## [3.2.8](https://github.com/alexdlaird/amazon-orders/compare/3.2.7...3.2.8) - 2025-02-18
10
16
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: amazon-orders
3
- Version: 3.2.8
4
- Summary: A library for interacting with Amazon order history in Python and from the CLI
3
+ Version: 3.2.9
4
+ Summary: A Python libray (and CLI) for Amazon order history
5
5
  Maintainer-email: Alex Laird <contact@alexlaird.com>
6
6
  License: MIT License
7
7
 
@@ -74,7 +74,7 @@ Requires-Dist: types-Pillow; extra == "docs"
74
74
  Requires-Dist: types-PyYAML; extra == "docs"
75
75
  Requires-Dist: types-python-dateutil; extra == "docs"
76
76
 
77
- <p align="center"><img alt="amazon-orders - A library for interacting with Amazon order history in Python and from the CLI" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
77
+ <p align="center"><img alt="amazon-orders - A Python libray (and CLI) for Amazon order history" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
78
78
 
79
79
  [![Version](https://img.shields.io/pypi/v/amazon-orders)](https://pypi.org/project/amazon-orders)
80
80
  [![Python Versions](https://img.shields.io/pypi/pyversions/amazon-orders.svg)](https://pypi.org/project/amazon-orders)
@@ -83,12 +83,12 @@ Requires-Dist: types-python-dateutil; extra == "docs"
83
83
  [![Docs](https://img.shields.io/readthedocs/amazon-orders)](https://amazon-orders.readthedocs.io)
84
84
  [![GitHub License](https://img.shields.io/github/license/alexdlaird/amazon-orders)](https://github.com/alexdlaird/amazon-orders/blob/main/LICENSE)
85
85
 
86
- `amazon-orders` is an unofficial library that provides a command line interface alongside a programmatic API that can
87
- be used to interact with Amazon's consumer-facing website.
86
+ `amazon-orders` is an unofficial library that provides a Python API (and CLI) for Amazon order history.
88
87
 
89
- This package works by parsing website data from Amazon. A periodic build validates functionality to ensure its
90
- stability, but as Amazon provides no official API to use, this package may break at any time. Pin the [minor
91
- (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest stable release.
88
+ This package works by parsing data from Amazon's consumer-facing website. A periodic build validates functionality
89
+ to ensure its stability, but as Amazon provides no official API to use, this package may break at any time. Pin
90
+ the [minor (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest
91
+ stable release.
92
92
 
93
93
  This package only officially supports the English, `.com` version of Amazon.
94
94
 
@@ -1,4 +1,4 @@
1
- <p align="center"><img alt="amazon-orders - A library for interacting with Amazon order history in Python and from the CLI" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
1
+ <p align="center"><img alt="amazon-orders - A Python libray (and CLI) for Amazon order history" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
2
2
 
3
3
  [![Version](https://img.shields.io/pypi/v/amazon-orders)](https://pypi.org/project/amazon-orders)
4
4
  [![Python Versions](https://img.shields.io/pypi/pyversions/amazon-orders.svg)](https://pypi.org/project/amazon-orders)
@@ -7,12 +7,12 @@
7
7
  [![Docs](https://img.shields.io/readthedocs/amazon-orders)](https://amazon-orders.readthedocs.io)
8
8
  [![GitHub License](https://img.shields.io/github/license/alexdlaird/amazon-orders)](https://github.com/alexdlaird/amazon-orders/blob/main/LICENSE)
9
9
 
10
- `amazon-orders` is an unofficial library that provides a command line interface alongside a programmatic API that can
11
- be used to interact with Amazon's consumer-facing website.
10
+ `amazon-orders` is an unofficial library that provides a Python API (and CLI) for Amazon order history.
12
11
 
13
- This package works by parsing website data from Amazon. A periodic build validates functionality to ensure its
14
- stability, but as Amazon provides no official API to use, this package may break at any time. Pin the [minor
15
- (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest stable release.
12
+ This package works by parsing data from Amazon's consumer-facing website. A periodic build validates functionality
13
+ to ensure its stability, but as Amazon provides no official API to use, this package may break at any time. Pin
14
+ the [minor (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest
15
+ stable release.
16
16
 
17
17
  This package only officially supports the English, `.com` version of Amazon.
18
18
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: amazon-orders
3
- Version: 3.2.8
4
- Summary: A library for interacting with Amazon order history in Python and from the CLI
3
+ Version: 3.2.9
4
+ Summary: A Python libray (and CLI) for Amazon order history
5
5
  Maintainer-email: Alex Laird <contact@alexlaird.com>
6
6
  License: MIT License
7
7
 
@@ -74,7 +74,7 @@ Requires-Dist: types-Pillow; extra == "docs"
74
74
  Requires-Dist: types-PyYAML; extra == "docs"
75
75
  Requires-Dist: types-python-dateutil; extra == "docs"
76
76
 
77
- <p align="center"><img alt="amazon-orders - A library for interacting with Amazon order history in Python and from the CLI" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
77
+ <p align="center"><img alt="amazon-orders - A Python libray (and CLI) for Amazon order history" src="https://amazon-orders.readthedocs.io/_images/logo.png" /></p>
78
78
 
79
79
  [![Version](https://img.shields.io/pypi/v/amazon-orders)](https://pypi.org/project/amazon-orders)
80
80
  [![Python Versions](https://img.shields.io/pypi/pyversions/amazon-orders.svg)](https://pypi.org/project/amazon-orders)
@@ -83,12 +83,12 @@ Requires-Dist: types-python-dateutil; extra == "docs"
83
83
  [![Docs](https://img.shields.io/readthedocs/amazon-orders)](https://amazon-orders.readthedocs.io)
84
84
  [![GitHub License](https://img.shields.io/github/license/alexdlaird/amazon-orders)](https://github.com/alexdlaird/amazon-orders/blob/main/LICENSE)
85
85
 
86
- `amazon-orders` is an unofficial library that provides a command line interface alongside a programmatic API that can
87
- be used to interact with Amazon's consumer-facing website.
86
+ `amazon-orders` is an unofficial library that provides a Python API (and CLI) for Amazon order history.
88
87
 
89
- This package works by parsing website data from Amazon. A periodic build validates functionality to ensure its
90
- stability, but as Amazon provides no official API to use, this package may break at any time. Pin the [minor
91
- (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest stable release.
88
+ This package works by parsing data from Amazon's consumer-facing website. A periodic build validates functionality
89
+ to ensure its stability, but as Amazon provides no official API to use, this package may break at any time. Pin
90
+ the [minor (not patch) version](https://semver.org/) wildcard (ex. `==1.1.*`, not `==1.1.4`) to ensure you always get the latest
91
+ stable release.
92
92
 
93
93
  This package only officially supports the English, `.com` version of Amazon.
94
94
 
@@ -1,3 +1,3 @@
1
1
  __copyright__ = "Copyright (c) 2024-2025 Alex Laird"
2
2
  __license__ = "MIT"
3
- __version__ = "3.2.8"
3
+ __version__ = "3.2.9"
@@ -88,16 +88,21 @@ class Selectors:
88
88
  # CSS selectors for Order fields
89
89
  #####################################
90
90
 
91
- FIELD_ORDER_DETAILS_LINK_SELECTOR = "a.yohtmlc-order-details-link"
92
- FIELD_ORDER_NUMBER_SELECTOR = ["[data-component='briefOrderInfo'] div.a-column",
91
+ FIELD_ORDER_DETAILS_LINK_SELECTOR = ["a.yohtmlc-order-details-link",
92
+ # Would like to use this or similar, but not yet sure how consisten it is
93
+ # ".order-header__header-link-list-item:first-of-type a"
94
+ ]
95
+ FIELD_ORDER_NUMBER_SELECTOR = ["[data-component='orderId']",
96
+ "[data-component='briefOrderInfo'] div.a-column",
93
97
  ".order-date-invoice-item bdi[dir='ltr']",
94
98
  "bdi[dir='ltr']",
95
99
  "span[dir='ltr']"]
96
100
  FIELD_ORDER_GRAND_TOTAL_SELECTOR = ["div.yohtmlc-order-total span.value",
97
101
  "div.order-header div.a-column.a-span2",
98
102
  "div.order-header div.a-col-left .a-span9"]
99
- FIELD_ORDER_PLACED_DATE_SELECTOR = ["[data-component='briefOrderInfo'] div.a-column",
103
+ FIELD_ORDER_PLACED_DATE_SELECTOR = ["[data-component='orderDate']",
100
104
  "span.order-date-invoice-item",
105
+ "[data-component='briefOrderInfo'] div.a-column",
101
106
  "div.a-span3"]
102
107
  FIELD_ORDER_PAYMENT_METHOD_SELECTOR = "img.pmts-payment-credit-card-instrument-logo"
103
108
  FIELD_ORDER_PAYMENT_METHOD_LAST_4_SELECTOR = "span:has(img.pmts-payment-credit-card-instrument-logo):last-child"
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "amazon-orders"
3
3
  dynamic = ["version"]
4
- description = "A library for interacting with Amazon order history in Python and from the CLI"
4
+ description = "A Python libray (and CLI) for Amazon order history"
5
5
  readme = "README.md"
6
6
  license = { file = "LICENSE" }
7
7
  maintainers = [{ name = "Alex Laird", email = "contact@alexlaird.com" }]
File without changes
File without changes
File without changes