Skip to main content

# MP-Shop | Comparison

### Installation:

1) Install using PIP: ` pip install django-mp-shop-comparison `

  1. Add ‘comparison’ to INSTALLED_APPS.

  2. Add ‘comparison.middleware.ComparisonMiddleware’ to MIDDLEWARE.

  3. Add path(‘comparison/’, include(‘comparison.urls’)) to urlpatterns.

### Public methods:

Products count: ` len(request.comparison) `

Add to comparison: ` request.comparison.add(product) `

Remove from comparison: ` request.comparison.remove(product_id) `

Clear comparison list: ` request.comparison.clear() `

Check is comparison list empty: ` request.comparison.is_empty() `

Get products from comparison: ` request.comparison.get_products(category_id) `

Check is product in comparison: ` request.comparison.has_product(product_id) `

Get categories of compare products ` request.comparison.get_categories() `

### Requirements: * django >= 2.0.6 * python >= 3.5.2

Metadata

Release files for django-mp-shop-comparison 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-mp-shop-comparison 2.0
File Size Uploaded Provenance
django-mp-shop-comparison-2.0.tar.gz 7.7 kB Without provenance Details

Release files / django-mp-shop-comparison-2.0.tar.gz

Download URL django-mp-shop-comparison-2.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
70e52f726a7b4253fe82cf4c9b2c9116fd9d7d32d14a10ffeaab14ed24b125c8
BLAKE2b-256 checksum
How to use checksums
5a7fd24fdc5f1d8cd7d54a126b3d89a6d915f3210a39d44fce45b3e066e6b7ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for django-mp-shop-comparison 2.0

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.

Release history Release notifications | RSS feed

This release

2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page