akeneo-cli-1.0.8
توضیحات
CLI for Akeneo API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | akeneo-cli-1.0.8 |
| نام | akeneo-cli |
| نسخه کتابخانه | 1.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Franck COUTOULY |
| ایمیل نویسنده | franck.coutouly@tms-software.ch |
| آدرس صفحه اصلی | https://github.com/tms-software/akeneo-cli |
| آدرس اینترنتی | https://pypi.org/project/akeneo-cli/ |
| مجوز | - |
Akeneo CLI
==========
You'll need to get an app credentials for Akeneo as explain [here](https://api.akeneo.com/documentation/authentication.html#client-idsecret-generation)
This package use generic calls to Akeneo api. To know the list of available endpoints and how the API work please refer to the official [documentation](https://api.akeneo.com/api-reference-index.html)
CLI
---
The CLI itself is a work in progress. Currently only the product can be retrieved with a command like.
```python
source .env #Create your own .env from env.example
akeneo get product
```
Code
----
Examples of usage from code
```python
from akeneo_cli.client import AkeneoClient
akeneo_client = AkeneoClient(
os.getenv(AKENEO_URL),
os.getenv(AKENEO_CLIENT_ID),
os.getenv(AKENEO_CLIENT_SECRET),
)
with akeneo_client.login(os.getenv(AKENEO_USERNAME), os.getenv(AKENEO_PASSWORD)) as session:
product_list = session.get("products")
product = session.get("products", code="my-product")
product-model = session.get("product-models", code="some-model")
response = session.patch("products", code="my-product", data=product_data)
response = session.post("products", code="my-product", data=product_data)
response = session.bulk("products", data=[product_data1, product_data2, product_data3])
response = session.put_product_file("my-product", "my-attribute", "my-filepath", is_model=False, locale=None, scope=None)
response = session.put_asset_file("my-asset-filepath")
response = session.delete("products", code="my-product")
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | python-magic |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6, <4 | Python |
نحوه نصب
نصب پکیج whl akeneo-cli-1.0.8:
pip install akeneo-cli-1.0.8.whl
نصب پکیج tar.gz akeneo-cli-1.0.8:
pip install akeneo-cli-1.0.8.tar.gz