You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

django-oscar-odin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-oscar-odin

Odin Resources and mappings to Oscar models

0.4.0
pipPyPI
Maintainers
1

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

Keywords

data-structure

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts