Skip to main content

cebeo-client

Python client for Cebeo's B2B XML API.

Installation

pip install cebeo-client

Usage

from cebeo_client import CebeoClient

client = CebeoClient(
    customer_number="123456",
    username="your_username",
    password="your_password",
)

# Lookup articles by Cebeo article IDs
articles = client.article_get(["169509", "171418"])
for article in articles:
    print(f"{article.supplier_item_id}: {article.description}")
    print(f"  Price: {article.net_price} EUR")
    print(f"  Stock: {article.stock} ({article.stock_code})")
    print(f"  Available: {article.is_available}")

# Search for articles
result = client.article_search(keywords=["XVB"], brand_keywords=["Niko"])
print(f"Found {result.total_count} articles")
for article in result.articles:
    print(f"  {article.reference}: {article.description}")

Configuration

client = CebeoClient(
    customer_number="123456",
    username="user",
    password="pass",
    base_url="https://b2b.cebeo.be/webservices/xml",  # default
    timeout=30,      # request timeout in seconds
    batch_size=50,   # max articles per API request
)

Error Handling

from cebeo_client import (
    CebeoAPIError,
    CebeoArticleNotFoundError,
    CebeoAuthError,
    CebeoConnectionError,
)

try:
    articles = client.article_get(["123"])
except CebeoArticleNotFoundError as e:
    # The article does not exist in the Cebeo catalog. This is a normal
    # miss (e.g. during a bulk sweep), not a credential failure.
    print(f"Article not found (code {e.code}): {e.message}")
except CebeoAuthError as e:
    print(f"Authentication failed: {e}")
except CebeoAPIError as e:
    print(f"API error {e.code}: {e.message}")
except CebeoConnectionError as e:
    print(f"Connection failed: {e}")

CebeoArticleNotFoundError is a subclass of CebeoAPIError (but not of CebeoAuthError), so a caller can tell a routine miss apart from a broken credentials failure by exception type, without string-matching error messages. This matters for bulk sweeps that ask about thousands of articles: a missing article is routine and should be skipped, while an auth error must abort the entire run.

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run linter
ruff check src tests

License

MIT

Metadata

Release files for cebeo-client 0.5.1

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

Source distribution (sdist)

Source distribution for cebeo-client 0.5.1
File Size Uploaded Provenance Actions
cebeo_client-0.5.1.tar.gz 13.5 kB With provenance Details for cebeo_client-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cebeo-client 0.5.1
File Interpreter ABI Platform Actions
cebeo_client-0.5.1-py3-none-any.whl Python 3 none any Details for cebeo_client-0.5.1-py3-none-any.whl

Total release size: 24.3 kB

Release files / cebeo_client-0.5.1.tar.gz

Download URL cebeo_client-0.5.1.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
05fdf4818b80ca66837da8766b299f42374378c6d46a56762a7f65b7cc9c6563
BLAKE2b-256 checksum
How to use checksums
a0cf58295e39132682efbd320883e1f00f94ee93012b10df5c7272cb11093ba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / cebeo_client-0.5.1-py3-none-any.whl

Download URL cebeo_client-0.5.1-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00209579d6bd7416c8bdc1f9df8ac96afb1b01fdb18b2694074901dc279a6361
BLAKE2b-256 checksum
How to use checksums
41678a73d84391e45f8a829273395599d14317d5c7cea14f87b659850ce297c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for cebeo-client 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cebeo_client-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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