Skip to main content
https://img.shields.io/badge/license-MIT-blue.svg https://travis-ci.org/ooz/epages-rest-python.svg?branch=master https://badge.fury.io/py/epages-rest-python.svg

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

Download files

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

Source Distribution

epages-rest-python-0.9.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file epages-rest-python-0.9.0.tar.gz.

File metadata

File hashes

Hashes for epages-rest-python-0.9.0.tar.gz
Algorithm Hash digest
SHA256 1d5d95cf7286302d946548f2cc537d7a087ff76d1434ca42476ca0809dbdc58d
MD5 aab566f6fcbf0ed7df1715ce3cd0ffe6
BLAKE2b-256 5b711b4bfc2ebb6d3987cdaa57d891e7d0dc3fd5e8bdaacee7dcbf35808276ad

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.0 This release

1 file

0.8.1

1 file

0.8.0

1 file

0.7.0

1 file

0.6.1

1 file

0.6.0

1 file

0.5.1

1 file

0.5.0

1 file

0.4.0

1 file

0.3.0

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page