Shopify Requests
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.
Metadata
Release files for shopify-requests 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shopify-requests-0.4.0.tar.gz | 4.5 kB | Without provenance | Details for shopify-requests-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shopify_requests-0.4.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for shopify_requests-0.4.0-py2.py3-none-any.whl |
Total release size: 15.3 kB
Release files / shopify-requests-0.4.0.tar.gz
| Download URL | shopify-requests-0.4.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce7baaa9a8a535d2d787513595667cd4859d045b523fe58cdbe76b578d5b0c8d
|
|
BLAKE2b-256 checksum How to use checksums |
855ebb71a976901564976146ca9f50131a5aec18aa41884c39d6765eb0b513fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/2.7.15
|
Release files / shopify_requests-0.4.0-py2.py3-none-any.whl
| Download URL | shopify_requests-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cbe88eb58e08adb3c08a2d94508bf459d45befd41cebc25436173edafcd95a12
|
|
BLAKE2b-256 checksum How to use checksums |
b45c5c999b9ee6d3c9f71e611add4fa8a14331d7a10c80914dea0ec61fedd15b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/2.7.15
|
Security for shopify-requests 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.