Pymagento

Latest version: v2.3.0

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

Scan your dependencies

Page 4 of 7

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

1.9.2

* Add `remove_category`
* Limit the query made by `get_category_by_name` to a single result

1.9.1

* Add `get_category_products`, `add_product_to_category`, and `remove_product_from_category`

1.9.0

* `get_categories`: add optional `path_prefix` to filter categories by path
* Add `magento.parse_datetime`
* Add `magento.IMAGE_MIME_TYPES` and `magento.DATE_ISO_8601_FORMAT`

Breaking changes

* Remove `magento.DEFAULT_ROOT_CATEGORY_ID` as it can be confusing. Use `client.get_root_category_id()` instead.

1.8.0

* Add `get_store_configs`, `get_store_groups`, `get_store_views`, `get_websites`
* Add helpers `get_current_store_group_id`, `get_root_category_id`
* All path components are now properly escaped in API calls
* Fix calls when using scope `default`
* Add official support for Python 3.12

Breaking changes

* `get_product_media`: the second parameter is now called `media_id` instead of `entry_id` to be coherent with the API
* `magento.DEFAULT_CATEGORY_ID` is now named `magento.DEFAULT_ROOT_CATEGORY_ID`

Page 4 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.