Skip to main content

Unofficial client for the BigCommerce API

Project description

bigc

An unofficial Python client for the BigCommerce API.

This project is currently in an alpha state.

Installation

pip install bigc 

Usage

To authenticate, you'll need the BigCommerce store's hash and an access token.

from bigc import BigCommerceAPI


store_hash = '000000000'
access_token = '0000000000000000000000000000000'
bigcommerce = BigCommerceAPI(store_hash, access_token)

order: dict = bigcommerce.orders.get(101)
orders: list[dict] = list(bigcommerce.orders.all(customer_id=1))

The following resources are currently supported:

  • carts
  • categories
  • checkouts
  • customer_groups
  • customers
  • orders
  • products
  • product_variants
  • webhooks

Direct API Access

For resources or parameters that aren't officially supported yet, bigc also includes a flexible API client that can be used to make direct requests to the BigCommerce API.

bigcommerce = BigCommerceAPI(store_hash, access_token)

product = bigcommerce.api.v3.get('/products/77', params={'include': 'videos'})
order_messages = bigcommerce.api.v2.get_many('/orders/101/messages')

Utilities

Some extra utility functions that don't interact with the BigCommerce API are available in bigc.utils.

  • bigc.utils.parse_rfc2822_date: Convert an RFC-2822 date (used by some BigCommerce APIs) to a datetime

Constants

For convenience, some constants are made available in bigc.data.

  • bigc.data.BigCommerceOrderStatus: An Enum of order statuses and their IDs

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

bigc-0.2.14.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

bigc-0.2.14-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file bigc-0.2.14.tar.gz.

File metadata

  • Download URL: bigc-0.2.14.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1015-azure

File hashes

Hashes for bigc-0.2.14.tar.gz
Algorithm Hash digest
SHA256 ed73a517141fe149036754286483bae3bf11c55015c685a7189768183192ccb9
MD5 3a75df48b994094b24bb2d0a3219b46b
BLAKE2b-256 f992c705ca223622ece1ff2bf27c5eab15f7aed9722b0817e1d97b4bb7fbdf21

See more details on using hashes here.

File details

Details for the file bigc-0.2.14-py3-none-any.whl.

File metadata

  • Download URL: bigc-0.2.14-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1015-azure

File hashes

Hashes for bigc-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 5809f057abcc0c605ce97324fd68704c802d9ac24473a0c2692a939c458f4358
MD5 43d6086105e8be5f7f093cb1fe457a9c
BLAKE2b-256 3de0e8520146f144cb08720ddb89facd357551eb8c92d669d2a22f5de09ddd60

See more details on using hashes here.

Supported by

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