Skip to main content

Webservice client for PrestaShop API

Project description

PrestaShop Webservice

Python client for PrestaShop API with caching, logging, and type hints.

Installation

pip install prestashop-webservice

Quick Start

from prestashop_webservice import Client, Params, Sort, SortOrder

# Initialize client
client = Client(
    prestashop_base_url="https://your-store.com/api",
    prestashop_ws_key="YOUR_API_KEY"
)

# Simple queries
order = client.query_order(order_id="123")
customer = client.query_customer(customer_id="456")

# Advanced queries with parameters
params = Params(
    filter={"id_customer": "123"},
    sort=Sort(field="date_add", order=SortOrder.DESC),
    display=["id", "total_paid", "reference"],
    limit=10
)
orders = client.query_orders(params=params)

Features

  • 🚀 HTTP client with connection pooling
  • 💾 Automatic caching (24h TTL)
  • 📝 Logging with Loguru
  • 🎯 Full type hints
  • 🔒 Singleton pattern

Available Methods

  • query_order(), query_orders(), exists_order()
  • query_customer(), query_customers()
  • query_product(), query_address(), query_country()
  • query_order_carriers(), query_order_histories(), query_order_state()

License

MIT License - See LICENSE file for details.

Project details


Download files

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

Source Distribution

prestashop_webservice-0.2.2.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prestashop_webservice-0.2.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file prestashop_webservice-0.2.2.tar.gz.

File metadata

  • Download URL: prestashop_webservice-0.2.2.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prestashop_webservice-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ad992f9dff8509e4a276e367e18b10159578e3b623cd323af87fde2c1c4bba37
MD5 cd38e253c031c2d6ddc97ecf2b22d35d
BLAKE2b-256 1a8397d10891bf1d74a6bf34965512274b65fc7e8aaafe74b100b922590c4a4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for prestashop_webservice-0.2.2.tar.gz:

Publisher: publish.yml on patitas-and-co/prestashop-webservice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prestashop_webservice-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for prestashop_webservice-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d3af1ff94f26c2494a9994a8816d1f2cc698d14179e6f0a22a47afbf955eb09
MD5 cf11d11047d576c6e25f9e5db112b8b8
BLAKE2b-256 79cc22cdde012f0d946efb909d09751817fb458bb5f2e00b3f930a4ba531a337

See more details on using hashes here.

Provenance

The following attestation bundles were made for prestashop_webservice-0.2.2-py3-none-any.whl:

Publisher: publish.yml on patitas-and-co/prestashop-webservice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page