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.5.tar.gz (25.0 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.5-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prestashop_webservice-0.2.5.tar.gz
  • Upload date:
  • Size: 25.0 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.5.tar.gz
Algorithm Hash digest
SHA256 f7840274791b0c2cc6ac04cc13d4fdabe29108bb89d37cde9fc0c91c3350f95f
MD5 d46b30da7ba10011a3be1a9bdfbc1063
BLAKE2b-256 57a7a8760309ee859be56213fabd8ece36659fabd65b5403a074f7e14b2f95fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for prestashop_webservice-0.2.5.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for prestashop_webservice-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8b7da389a8d3e131d0ef0b1ea29c3ed6418e14cd2a74d2abbe534dd210db23f8
MD5 0d137349aeb2c3954f21f34a6b8a2870
BLAKE2b-256 e1a5c0ed1094517699504aeffcac66a2ce04f2f1b8e032e6a6bfa7401835ff4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for prestashop_webservice-0.2.5-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