
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
.. image:: https://img.shields.io/badge/license-MIT-blue.svg :target: https://github.com/ooz/epages-rest-python
.. image:: https://travis-ci.org/ooz/epages-rest-python.svg?branch=master :target: https://travis-ci.org/ooz/epages-rest-python
.. image:: https://badge.fury.io/py/epages-rest-python.svg :target: https://badge.fury.io/py/epages-rest-python
See ePages API <https://developer.epages.com/apps>
_ for detailed documentation.
Using pip
::
pip install epages-rest-python
::
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 <https://signup.beyondshop.cloud/>
_, 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 <https://github.com/ooz/epages-rest-python-examples>
_ repository.
Executing the tests requires a developer shop <https://developer.epages.com/#modal-popup>
_.
::
cp run_tests.sh.template run_tests.sh
# Edit run_tests.sh: enter your ePages API URL and access token
make test
FAQs
The ePages online shop API for Python
We found that epages-rest-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.