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.0.tar.gz (68.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_oscar_odin-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 28dec239c4baf9b034d8682637f3dd9e7f8f7cd8c43ff62de8b876f55100ed15
MD5 ef3df0b76452641366632ad24161d61b
BLAKE2b-256 4cf3767847ade5c65775ae13b50f3aba82fa8d659777840cc667e42aeb069299

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_oscar_odin-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 500030550372715ea637b04f1c2ca0eebceec76ac33bf97b10b69d89e7d6655f
MD5 7c571f9cf1e1b030faf3e586cd6d0552
BLAKE2b-256 cc1c500b8f00cdd1c6597ef69f3cd8f537f0f35fee72528d0893070070408474

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