entirius-django-baselinker
A Django module that connects Entirius, the open-source modular ecommerce platform, to the Baselinker order manager. It stores Baselinker accounts, mirrors order statuses, order sources and journal events, and wraps the Baselinker API (https://api.baselinker.com/) in a client that reports rate-limit and blocked-token errors.
What it does
- Stores Baselinker accounts (email, token, base URL) as Django models.
- Mirrors order statuses and order sources of an account from the Baselinker API.
- Keeps Baselinker orders and journal events with typed journal log types.
- Wraps the Baselinker API methods (inventories, orders, invoices, packages) in
BaselinkerClient. - Raises dedicated errors for failed responses and blocked tokens.
Installation
uv add entirius-django-baselinker
pip install entirius-django-baselinker
INSTALLED_APPS = [
...
"django_baselinker",
]
# urls.py
urlpatterns = [
path("", include("django_baselinker.urls")),
]
The module has no required settings; accounts and their tokens live in the BaselinkerAccount model.
BASELINKER_TIMEOUT_S (default 30) is the request timeout of the API client in seconds.
Quick start
from django_baselinker.models import BaselinkerAccount
from django_baselinker.utils import BaselinkerClient
client = BaselinkerClient.from_account(BaselinkerAccount.objects.get(email="shop@example.com"))
inventories = client.getInventories()
Requirements
- Python 3.11 or newer, Django 4.0 or newer.
- Entirius packages pulled in:
entirius-py-int-enum-choices.
Documentation
- Module docs: https://github.com/entirius/entirius-django-baselinker/tree/develop/docs
- Entirius documentation: https://docs.entirius.com/
- Releases: https://github.com/entirius/entirius-django-baselinker/releases
Part of Entirius
This module is an integration for the Entirius backend service (Volkanos); it has no sibling Django apps to install.
- Backend service: https://github.com/entirius/entirius-service-volkanos
- Docker harness: https://github.com/entirius/entirius-zeno
- Sibling modules: https://github.com/entirius/entirius-django-getresponse, https://github.com/entirius/entirius-django-utils
Development
make install # sync dependencies (uv)
make check # lint + format check (ruff)
make test # test suite (pytest + pytest-django)
Development and agent instructions: https://github.com/entirius/entirius-django-baselinker/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-baselinker/blob/develop/LICENSE.
Metadata
Release files for entirius-django-baselinker 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| entirius_django_baselinker-2.0.2.tar.gz | 41.1 kB | Without provenance | Details for entirius_django_baselinker-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_django_baselinker-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for entirius_django_baselinker-2.0.2-py3-none-any.whl |
Total release size: 59.2 kB
Release files / entirius_django_baselinker-2.0.2.tar.gz
| Download URL | entirius_django_baselinker-2.0.2.tar.gz |
|---|---|
| Size | 41.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bcaf758967f4934326891a85b91095ff6f6a7f0a8f0c0f55ba38cb0273d3402
|
|
BLAKE2b-256 checksum How to use checksums |
2de9ee3a56702262e8a47820354b8719ad5b2f6c7d568539a5e26583a23eafc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / entirius_django_baselinker-2.0.2-py3-none-any.whl
| Download URL | entirius_django_baselinker-2.0.2-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8baab900febbcc8bd22b2b84e260637d49295d8adf15d90f014e03aeeab30c17
|
|
BLAKE2b-256 checksum How to use checksums |
e9540257e874784996aa5eb82ef7bf1271c226a4e26e3c9f20f3ad1a059e74a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for entirius-django-baselinker 2.0.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.