Skip to main content

Ratan's fork of SDK for Commercetools

Project description

This is an unofficial Python SDK for the Commercetools platform. It only supports Python 3.6+ and uses type annotation for an improved development experience.

The API is mostly generated using the commercetools api RAML file and uses the attr library for the dataobjects and marshmallow for the serialization and deserialization steps.


pip install commercetools


from commercetools import Client

client = Client(

product = client.products.get_by_id("00633d11-c5bb-434e-b132-73f7e130b4e3")

The client can also be configured by setting the following environment variables:

export CTP_PROJECT_KEY="<project key>"
export CTP_CLIENT_SECRET="<client secret>"
export CTP_CLIENT_ID="<client id>"
export CTP_AUTH_URL=""
export CTP_API_URL=""
export CTP_SCOPES="<comma seperated list of scopes>"

And then constructing a client without arguments:

from commercetools import Client

client = Client()

product = client.products.get_by_id("00633d11-c5bb-434e-b132-73f7e130b4e3")

Project details

Download files

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

Files for commercetools-ratdev, version 1.5.1
Filename, size File type Python version Upload date Hashes
Filename, size commercetools_ratdev-1.5.1-py3-none-any.whl (177.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size commercetools-ratdev-1.5.1.tar.gz (161.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page