Skip to main content

Wrapper around the Shopify API using requests.

Project description

Shopify Requests

pipeline status coverage report Documentation Status

ShopifyRequests is an API client for Shopify built on top of the requests library.

The main goals of this project are:

  • remove boiler plate code needed to do a single API call
  • work well with testing libraries like VCR and RequestsMock
  • easy to use

There are also future plans to support http2, asyncio, and GraphQL.

Usage

from shopify_requests import RestClient

client = RestClient('foo.myshopify.com', access_token='abc123')
response = client.get('shop.json')

The RestClient is the configuration point so that all requests made with it will have the same options. Some of the options you can configure are:

  • Oauth token vs private app token
  • API version
  • Safe retries
  • Rate limit backoff

For more configuration options check out the API Docs

An additional benefits of using the same client is that it will reuse the same TCP connection so the SSL handshake only has to happen once.

Did you find a bug or have a question?

The issue board will be the best place to reach out and get the problem sorted out.

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 shopify-requests, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size shopify_requests-0.4.0-py2.py3-none-any.whl (10.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size shopify-requests-0.4.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page