django-oscar-odin


Namedjango-oscar-odin JSON
Version 0.1.0b2 PyPI version JSON
download
home_pagehttps://github.com/django-oscar/oscar-odin
SummaryOdin Resources and mappings to Oscar models
upload_time2024-05-02 15:09:02
maintainerViggo de Vries
docs_urlNone
authorTim Savage
requires_python<4.0,>=3.8
licenseBSD-3-Clause
keywords data-structure validation data-mapping
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Oscar Odin

Mapping of Oscar eCommerce models to Odin resources.

## Installation

To install add `oscar_odin` to your installed apps

## Usage

```python
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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/django-oscar/oscar-odin",
    "name": "django-oscar-odin",
    "maintainer": "Viggo de Vries",
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": "viggo@highbiza.nl",
    "keywords": "data-structure, validation, data-mapping",
    "author": "Tim Savage",
    "author_email": "tim@savage.company",
    "download_url": "https://files.pythonhosted.org/packages/06/67/d5d6a612f30c3340d16f759eaac25208fbd60298bd3a9a1886e5e3777165/django_oscar_odin-0.1.0b2.tar.gz",
    "platform": null,
    "description": "# Oscar Odin\n\nMapping of Oscar eCommerce models to Odin resources.\n\n## Installation\n\nTo install add `oscar_odin` to your installed apps\n\n## Usage\n\n```python\nfrom oscar.core.loading import get_model\nfrom oscar_odin.mappings import catalogue\n\nProduct = get_model(\"catalogue\", \"Product\")\n\n# Map a product to a resource.\nproduct = Product.objects.get(id=1)\nproduct_resource = catalogue.product_to_resource(product)\n```\n\n# Developing odin\n\n## Using pip:\n\nmake install\nmake test\n\n## Using poetry:\n\npoetry install --all-extras\npoetry run ./manage.py test\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Odin Resources and mappings to Oscar models",
    "version": "0.1.0b2",
    "project_urls": {
        "Homepage": "https://github.com/django-oscar/oscar-odin",
        "Repository": "https://github.com/django-oscar/oscar-odin"
    },
    "split_keywords": [
        "data-structure",
        " validation",
        " data-mapping"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "46b918660e5eec58f5e03989572cbf70911e51e20030bdf42aae6b5a327f379a",
                "md5": "265f9e175e6f844adeade3f14d1a7d7b",
                "sha256": "d7dcce29091113c06b3bb0b45c3a6781276b0cdba4cbd2e8d85700ba0f0a062e"
            },
            "downloads": -1,
            "filename": "django_oscar_odin-0.1.0b2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "265f9e175e6f844adeade3f14d1a7d7b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 72131,
            "upload_time": "2024-05-02T15:08:59",
            "upload_time_iso_8601": "2024-05-02T15:08:59.831404Z",
            "url": "https://files.pythonhosted.org/packages/46/b9/18660e5eec58f5e03989572cbf70911e51e20030bdf42aae6b5a327f379a/django_oscar_odin-0.1.0b2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0667d5d6a612f30c3340d16f759eaac25208fbd60298bd3a9a1886e5e3777165",
                "md5": "ab0fa8b49de9e57bda285ee68ef94bf4",
                "sha256": "85b1ff10ca8ed7c6df31b8b724005b3f8e560e6801c3d004956dfa1499b85756"
            },
            "downloads": -1,
            "filename": "django_oscar_odin-0.1.0b2.tar.gz",
            "has_sig": false,
            "md5_digest": "ab0fa8b49de9e57bda285ee68ef94bf4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 63994,
            "upload_time": "2024-05-02T15:09:02",
            "upload_time_iso_8601": "2024-05-02T15:09:02.087611Z",
            "url": "https://files.pythonhosted.org/packages/06/67/d5d6a612f30c3340d16f759eaac25208fbd60298bd3a9a1886e5e3777165/django_oscar_odin-0.1.0b2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-02 15:09:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "django-oscar",
    "github_project": "oscar-odin",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "django-oscar-odin"
}
        
Elapsed time: 0.35082s