Skip to main content

pyshoper - Python client to shoper.pl REST api

Summary

Exampler of use

Basic usage of pyshoper:

from pyshoper.client import ShoperClient

base_url = "https://example.com"
api = ShoperClient('login', 'password', base_url=base_url)

print(api.products_list(filters={'stock.stock': 0}))

and expected result should something alike:

{
    'count': '49',
    'list': [
        {'code': 'prod-0001', ...},
        {'code': 'prod-0002', ...},
        {'code': 'prod-0003', ...},
        {'code': 'prod-0004', ...},
        ...
    ],
    'page': 1,
    'pages': 5,
}

to iterate through all products using client's generator:

for i, prod in enumerate(api.products_generator(limit=100)):
    print(prod)
    if i > 200:
        break

More

Exceptions

Release files for pyshoper 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyshoper 0.1.2
File Size Uploaded
pyshoper-0.1.2.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyshoper 0.1.2
File Interpreter ABI Platform
pyshoper-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 27.6 kB

Release files / pyshoper-0.1.2.tar.gz

Download URL pyshoper-0.1.2.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3157d4ac9889be7a095547d46522f2ef17ae6a780e7fa5d76e0424f1668f6e4e
BLAKE2b-256 checksum
How to use checksums
a8925fb67bb5fbabab7108d675988bf58c9908b8ddda8008f3a2cbb520f4ed5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.20.0

Release files / pyshoper-0.1.2-py3-none-any.whl

Download URL pyshoper-0.1.2-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a10a8259ce6dbfbb53172bcd5964e612bbae368a512e444f8335f9934a46ede
BLAKE2b-256 checksum
How to use checksums
c4d95e823a0d11791b8febb26cf66f548103ad48c0c88a576af47b69cb796a53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.20.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1

3 release files

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