Pymagento

Latest version: v1.11.0

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

Scan your dependencies

Page 4 of 5

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`

1.3.2

* Improve docstrings of `magento.batches`
* Add missing search endpoints: `get_carts`, `get_cms_blocks`, `get_cms_pages`, `get_coupons`, `get_customer_groups`,
`get_sales_rules`, `get_tax_rates`, `get_tax_rules`

1.3.1

* Fix `get_products_attribute_options` that wasn’t throwing if it received an error response from Magento.
* Improve some docstrings

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.