Pymagento

Latest version: v1.11.0

Safety actively analyzes 623784 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.11.0

* `get_category_by_name`: add `assert_one` optional keyword parameter
* Add `move_category`, `get_child_categories`

Breaking changes

* `create_category` now returns the created category rather than a `Response` object

1.10.3

* fix `get_source_items` to accept an empty list of SKUs. In previous versions `skus=[]` (filter on an empty list) was
interpreted the same way as `skus=None` (don’t filter at all)
* fix `get_store_configs` to accept an empty list of `store_codes`
* `update_product_stock_item`: improve the docstring

1.10.2

* Implement more methods:
* `get_apple_pay_auth`
* `get_bulk_operations`, `get_bulk_detailed_status`, `get_bulk_operation_status_count`
* `update_product_stock_item`
* Add `update_product_stock_item_quantity` and deprecate `set_product_stock_item`
* Allow to override the `page_size` in `get_paginated` and all methods that use it

1.10.1

* Implement more methods:
* `get_cms_block`, `delete_cms_block`
* `create_coupon`, `update_coupon`, `get_coupon`, `delete_coupon`, `delete_coupons`, `delete_coupons_by_codes`
* `delete_customer_address`
* Add helpers `sku_exists`, `sku_was_bought`, `get_categories_under_root`
* `remove_product_from_category`: fix for SKUs that contain slashes
* Improve some type hints on attributes methods

1.10.0

* `save_product`: add `log_response` to be able to disable the log of the Magento response
* Add `delete_custom_attribute` and `delete_custom_attributes`
* Deprecate `VISIBILITY_BOTH` in favor of `VISIBILITY_IN_CATALOG_AND_SEARCH`
* Simplify some code using [`api-session`](https://github.com/bixoto/api-session) 1.3.6

Breaking changes

* `get_order` and `save_attribute`: remove the `throw` parameter; the default was `True` but even if one passed `False`
the method would still throw when trying to JSON-decode the error responses.

1.9.3

* Add `get_cart`
* `BatchSaver.send_batch` now returns the response from the Magento API

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.