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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prestashop_webservice-0.3.1.tar.gz.
File metadata
- Download URL: prestashop_webservice-0.3.1.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d06b280ca8c5c22238ed086f8020c0942eaac1d9bb5be35911833ebcc7efbae
|
|
| MD5 |
276acca6a2dffc8f78c249a90337dd61
|
|
| BLAKE2b-256 |
248c40a3223940a006a3fe7a8c7a5afecc774d91eaf9d6b59bb578502e095872
|
Provenance
The following attestation bundles were made for prestashop_webservice-0.3.1.tar.gz:
Publisher:
publish.yml on patitas-and-co/prestashop-webservice
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prestashop_webservice-0.3.1.tar.gz -
Subject digest:
8d06b280ca8c5c22238ed086f8020c0942eaac1d9bb5be35911833ebcc7efbae - Sigstore transparency entry: 855312515
- Sigstore integration time:
-
Permalink:
patitas-and-co/prestashop-webservice@87228be3b84be06c61316e04c16b10e4d9bafa9d -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/patitas-and-co
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@87228be3b84be06c61316e04c16b10e4d9bafa9d -
Trigger Event:
release
-
Statement type:
File details
Details for the file prestashop_webservice-0.3.1-py3-none-any.whl.
File metadata
- Download URL: prestashop_webservice-0.3.1-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74ce07349b2f11847c70dd0e31449d9e347e1a5ecc7bb00396d39be7ff636f3d
|
|
| MD5 |
69efeb1c8940218383c4833887975bba
|
|
| BLAKE2b-256 |
e37ad96c32c1da255983abc1ed9b34a14a61ca854b2600ee6c19cd4ccd69151e
|
Provenance
The following attestation bundles were made for prestashop_webservice-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on patitas-and-co/prestashop-webservice
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prestashop_webservice-0.3.1-py3-none-any.whl -
Subject digest:
74ce07349b2f11847c70dd0e31449d9e347e1a5ecc7bb00396d39be7ff636f3d - Sigstore transparency entry: 855312520
- Sigstore integration time:
-
Permalink:
patitas-and-co/prestashop-webservice@87228be3b84be06c61316e04c16b10e4d9bafa9d -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/patitas-and-co
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@87228be3b84be06c61316e04c16b10e4d9bafa9d -
Trigger Event:
release
-
Statement type: