Pymagento

Latest version: v2.3.0

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

Scan your dependencies

Page 6 of 7

1.6.0

* Remove `Magento.get_product_source_items` (deprecated since 1.3.3)
* Remove `pretty_custom_attributes` (deprecated since 1.3.4)
* Remove `log_progress` parameter to `Magento` (deprecated since 1.4.0)
* `get_custom_attribute`: add a more precise type hint on the return type

1.5.1

* Add `get_product_by_query`
* `set_custom_attributes`, `set_custom_attribute` and `serialize_attribute_value` now support an optional
`force_none=True` to prevent `None` values from being serialized as empty string. This can be useful to erase
attributes.
* `MagentoAssertionError` is now accessible from the `magento` module (`magento.MagentoAssertionError`)

1.5.0

Breaking changes

* `save_product`: `log_response` must now be passed as a keyword argument. Before, you could use
`.save_product(p, True)`; now you muse use `.save_product(p, log_response=True)`.
* `update_product`’s second argument is now called `product` instead of `product_data` to be consistent with
`save_product`.

Other changes

* Add `get_credit_memos` and `get_modules`
* Add `get_manufacturers` as a shortcut for `get_products_attribute_options("manufacturer")`
* `get_source_items` can now take a list of `skus` instead of a single one
* `save_product` and `update_product` now accept an optional `save_options` boolean
* Fix type hint of the `logger` parameter of the constructor of `Magento`

1.4.0

* `get_order_shipping_address` now return a reference to the shipping address instead of a modified copy. This is a
breaking change if you relied on this value to be a copy of the shipping address.
* Add `magento.format_datetime`
* Rename the parameter `log_progress` to `verbose`. Keep `log_progress` as an alias for backward compatibility.

1.3.4

* Fix a bug in `BatchSaver` where the `batch_size` constructor argument was ignored
* Deprecate `pretty_custom_attributes`; use your own function instead
* Add `set_custom_attributes` and `serialize_attribute_value` functions
* Add `sort_orders` optional argument to `make_field_value_query`
* The dictionary returned by `get_custom_attributes_dict` is now ordered

1.3.3

* Deprecate `get_product_source_items(sku)` in favor of `get_source_items(sku=sku)`, which returns exactly the same data
* Add `get_stock_source_links`, `get_product_stock_item` and `get_product_stock_status` methods
* Add `set_custom_attribute` function
* Document parameters of `unlink_child_product`

Page 6 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.