Skip to main content

Odin Resources and mappings to Oscar models

Project description

Oscar Odin

Mapping of Oscar eCommerce models to Odin resources.

Installation

To install add oscar_odin to your installed apps

Usage

from oscar.core.loading import get_model
from oscar_odin.mappings import catalogue

Product = get_model("catalogue", "Product")

# Map a product to a resource.
product = Product.objects.get(id=1)
product_resource = catalogue.product_to_resource(product)

Developing odin

Using pip:

make install make test

Using poetry:

poetry install --all-extras poetry run ./manage.py test

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

django_oscar_odin-0.2.1.tar.gz (68.2 kB view details)

Uploaded Source

Built Distribution

django_oscar_odin-0.2.1-py3-none-any.whl (77.4 kB view details)

Uploaded Python 3

File details

Details for the file django_oscar_odin-0.2.1.tar.gz.

File metadata

  • Download URL: django_oscar_odin-0.2.1.tar.gz
  • Upload date:
  • Size: 68.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for django_oscar_odin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4e7d79b519b23cf16a5956cd9a1bd642a462d09a6f6833296c2dc24a33ed4bb0
MD5 d3c0003b3c86eccb2f41f893b5692131
BLAKE2b-256 3037171152574c325400b514989d189aa297f7eef3c9f07f20b48da81fbfacea

See more details on using hashes here.

File details

Details for the file django_oscar_odin-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_oscar_odin-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe06f728555dde6d247b52430d98cea9df82b7911c6f11e0b674dcc5a8818e4d
MD5 f7a8e22feb3c604764a862dc3f3011f4
BLAKE2b-256 81c0d22d65b395d2b6553e963275993783af433a3360da29562f2a51ee9f2b61

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page