entirius-django-vault
A Django module for saved payment cards in Entirius, the open-source modular ecommerce platform. It keeps the tokenized PayU cards of a customer per sales channel and serves them over a key-protected REST API; card numbers never reach the database.
What it does
- Lists, adds and deletes the saved payment cards of a signed-in customer.
- Stores only the link between a customer and the payment provider's vault; the cards stay tokenized at PayU.
- Holds the payment provider configuration per sales channel.
- Guards every route with customer authentication and a key in the
X-API-KEYheader.
Installation
uv add entirius-django-vault
pip install entirius-django-vault
INSTALLED_APPS = [
...
"django_utils",
"django_accounts",
"django_vault",
]
# urls.py
urlpatterns = [
path("", include("django_vault.urls")),
]
Required settings: BI_ENVIRONMENT and BI_BUSINESS_UNIT (read when the module is imported). Reference:
https://github.com/entirius/entirius-django-vault/blob/develop/AGENTS.md (section Settings).
With django_access installed the key is an access token with the scope vault.api:
python manage.py access_token create --application <name> --create-application --scope vault.api --channel <idx>
Without django_access, create the key with python manage.py vault-generate-api-key [--file_path <path>]. The key
is printed once and cannot be read back; keys added by hand in the Django admin have a random value nobody sees, so
create them with the command. With django_access installed the command refuses: keys are access tokens there.
Quick start
from django_vault.models import CustomerPaymentVault
vaults = CustomerPaymentVault.objects.filter(customer=customer).select_related("channel_for_payment")
The REST routes mount under {API_BASE_URL}/vault/<version>/<channel_idx>/payment_card/; requests and responses are
in https://github.com/entirius/entirius-django-vault/blob/develop/docs/vault_docs.md.
Requirements
- Python 3.11 or newer, Django 5.0 or newer.
- Entirius packages pulled in:
entirius-django-accounts,entirius-django-utils,entirius-py-payu-sdk,entirius-py-bievents,entirius-py-process-logger.
Documentation
- Module docs: https://github.com/entirius/entirius-django-vault/tree/develop/docs
- Entirius documentation: https://docs.entirius.com/
- Changelog: https://github.com/entirius/entirius-django-vault/blob/develop/CHANGELOG.md
Part of Entirius
This module runs inside the Entirius backend service (Volkanos), where the checkout uses it for card-on-file payments.
- 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-accounts, https://github.com/entirius/entirius-django-checkout
- PayU SDK: https://github.com/entirius/entirius-py-payu-sdk
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-vault/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-vault/blob/develop/LICENSE.
Metadata
Release files for entirius-django-vault 3.0.1
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_vault-3.0.1.tar.gz | 98.4 kB | Without provenance | Details for entirius_django_vault-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_django_vault-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for entirius_django_vault-3.0.1-py3-none-any.whl |
Total release size: 121.4 kB
Release files / entirius_django_vault-3.0.1.tar.gz
| Download URL | entirius_django_vault-3.0.1.tar.gz |
|---|---|
| Size | 98.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8c74ec8901a6fc7f401ba818677164d0c974ad79b36fec6aa4510190db99d65
|
|
BLAKE2b-256 checksum How to use checksums |
78df017cdc5c3f9547e5f3d3d3f76e04fca0aa62b7adcc0816b4e518d08a14e2
|
| 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_vault-3.0.1-py3-none-any.whl
| Download URL | entirius_django_vault-3.0.1-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b734336173b832c2f6a6a3f46bd77ca15014ffb9ceb176df798323eb7ae6092
|
|
BLAKE2b-256 checksum How to use checksums |
b5aef8367bb9684e63445c193b70a5c26c3c159707d1a5406c0f6215f9f2847c
|
| 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-vault 3.0.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.
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.