Skip to main content

CLI for Akeneo API

Project description

Akeneo CLI

You'll need to get an app credentials for Akeneo as explain here

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

CLI

The CLI itself is a work in progress. Currently only the product can be retrieved with a command like.

source .env #Create your own .env from env.example
akeneo get product

Code

Examples of usage from code

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

akeneo_cli-1.0.10.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

akeneo_cli-1.0.10-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file akeneo_cli-1.0.10.tar.gz.

File metadata

  • Download URL: akeneo_cli-1.0.10.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for akeneo_cli-1.0.10.tar.gz
Algorithm Hash digest
SHA256 e9f335494e5692653dd763d83c65b7a3fe8b66dbb25b421e1a4fa896a7cbc97b
MD5 e6f3d52ff738ad86178ea4ba3bc168ce
BLAKE2b-256 4931b52c0da4446094a59c392b0d0669b8d0b970dce2cdb22361b2d84f6bd03e

See more details on using hashes here.

File details

Details for the file akeneo_cli-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: akeneo_cli-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for akeneo_cli-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 69bc91cf4f2662a18e1c05fce8a6f5f22886627bd6aae871a5641dfb9910e4b3
MD5 c48fe18816c86dffca6f542c53fc9eca
BLAKE2b-256 d49b2744909734ac82a95c39b121902d000c0388541f223d4d272561369c06a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page