ePages REST API for Python
See ePages API for detailed documentation.
Installation
Using pip:
pip install epages-rest-python
Usage
import epages
api_url = 'https://your.domain.com/rs/shops/yourShopName'
token = 'yOuRaPiKeYhErE'
client = epages.RESTClient(api_url,
token) # optional for public resources
# Get the shop information
shop = client.get('')
# or
shop = client.get('/')
# or
shop = client.get(api_url)
print(shop)
# Create a new product
payload = {
'productNumber': '1337'
}
new_product = client.post('/products', json=payload)
print(new_product)
Works with ePages Now v2 (beyond) shops, too:
import epages
client = epages.BYDClient('https://yourshop.beyondshop.cloud/api',
'client-id-of-your-app',
'client-secret-of-your-app')
shop = client.get('/shop')
print(shop['name'])
For more examples see the epages-rest-python-examples repository.
Testing
Executing the tests requires a developer shop.
cp run_tests.sh.template run_tests.sh # Edit run_tests.sh: enter your ePages API URL and access token make test
Metadata
Release files for epages-rest-python 0.9.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 |
|---|---|---|---|---|
| epages-rest-python-0.9.0.tar.gz | 4.3 kB | Without provenance | Details for epages-rest-python-0.9.0.tar.gz |
Release files / epages-rest-python-0.9.0.tar.gz
| Download URL | epages-rest-python-0.9.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d5d95cf7286302d946548f2cc537d7a087ff76d1434ca42476ca0809dbdc58d
|
|
BLAKE2b-256 checksum How to use checksums |
5b711b4bfc2ebb6d3987cdaa57d891e7d0dc3fd5e8bdaacee7dcbf35808276ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for epages-rest-python 0.9.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.