Saravanan666/pypi-org huggingface dataset:
Package: django-shopify-webhook
Django Shopify WebhookThis Django package aims to make it easy to add webhook-handling behaviour into
your Django app. It provides:AWebhookViewfor catching and verifying webhooks sent from Shopify, and
triggering the appropriate webhook signal.webhook,carrier_requestandapp_proxyview decorators that validate
these various types of request.A number ofWebhookSignals that can be listened to and handled by your
application.This packaged is maintained byJosef RousekfromDigismoothieand yes, we're hiring.
Package: django-shopit
ShopitA fully featured shop application built ondjangoSHOPframework.This project aims to provide aquick & easyway to set up a fully featured shop without much hassle.FeaturesShopit comes with the most useful features that a classic shops needs, out of the box.Here's what you can expect:Easily manageProductsand their variations with customAttributes.Attachimages, videos & files on products.SetUp-sell,Cross-selland other customizedRelationsbetween products.Create custom checkboxFlagsfor products and categorization.Group products inCategory,BrandandManufacturergroups.Create discounts and promotional codes withModifiers.Add customTaxesfor categories and products.Enable customerReviewson products.RequirementsDjango1.11django-shopas shop framework.django-cmsfor placeholders.django-parlerto translate everything.django-mpttfor tree management.django-admin-sortable2to sort stuff.django-measurementto add measurements.InstallationInstall usingpip:pipinstalldjango-shopitYou should followdjango-cms&django-shopinstallation guide first, and then add the following to your settings:INSTALLED_APPS=[...'adminsortable2','mptt','parler','shopit',]SHOP_APP_LABEL='shopit'SHOP_PRODUCT_SUMMARY_SERIALIZER='shopit.serializers.ProductSummarySerializer'SHOP_CART_MODIFIERS=('shop.modifiers.DefaultCartModifier','shopit.modifiers.ShopitCartModifier',...)UrlsThere are two ways to configure the urls. First would be to add to yoururls.py:urlpatterns=[url(r'^shop/',include('shopit.urls')),...]The second option is to usedjango-cmsapphooks.Shopitcomes with a couple of those for different application parts.ShopitApphookis the main one, and one that should always be attached to a page (if the urls are not already added). Then there are other optional apphooks foraccount,categorization&products. If you want to keep it simple, and not have to set every application part individually. You can add to your settings:SHOPIT_SINGLE_APPHOOK=TrueThis will load all the neccesary urls under theShopitApphook.DocumentationFull documentation is availiable onReadTheDocs.
Package: django-shop-multiplecurrencies
=================================django SHOP - Multiple Currencies=================================This app adds support for multiple currencies to django SHOP.Warning=======Do not use (yet)!This app is still under development and might not work at all.Installation============This requires django SHOP to work (https://github.com/chrisglass/django-shop)* Add `shop_multiplecurrencies` to your INSTALLED_APPS in your settings.py* Add `shop_multiplecurrencies.middleware.MultipleCurrenciesMiddleware` to your`MIDDLEWARE_CLASSES` setting* Add a list of currencies to the `SHOP_CURRENCIES` setting like so::SHOP_CURRENCIES=[ # lowercase codes, please['chf', 'swiss franc'],['eur', 'euro'],]Usage=====* Add a MultipleCurrenciesField to your product model::from django.db import modelsfrom shop_multiplecurrencies.fields import MultipleCurrenciesFieldfrom shop.util.fields import CurrencyFieldclass MyProduct(models.Model):# my fields ...price = MultipleCurrenciesField(CurrencyField)The model will in our example have two fields: `price_chf` and `price_eur`.* Extend BaseOrder with an additional field that tells us which currency the order was completed in::from django.conf import settingsfrom shop.models.defaults.bases import BaseOrderfrom shop.models.defaults.managers import OrderManagerclass MyOrder(BaseOrder):currency = models.CharField(max_length=6, choices=settings.SHOP_CURRENCIES)objects = OrderManager()def save(self, *args, **kwargs):self.currency = get_currency()super(MyOrder, self).save(*args, **kwargs)class Meta(object):abstract = False* Use the currency template filter in your templates to prefix the price with the correct currency::{% load currency %}<p>This product's price is {{ price|currency }}</p>
Package: django-shop-paypal
This applicaiton is a paypal backend for django-SHOP, or any other shop system
implementing its shop interface.
It uses django-paypal as a way to actually communicate with paypal.UsageAdd django-paypal and this project to your INSTALLED_APPS::INSTALLED_APPS = (
...
'paypal.standard.ipn',
'shop_paypal',
...
)Add ‘shop_paypal.offsite_paypal.OffsitePaypalBackend’ to django-SHOP’s SHOP_PAYMENT_BACKENDS
setting.Make sure you set following in settings.py:PAYPAL_RECEIVER_EMAILPAYPAL_CURRENCY_CODE(seehttps://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes)Optional settings:PAYPAL_LC- paypal language (see:https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_api_nvp_country_codes)TodoPlenty of stuff is left to do! If you feel like giving a hand, please pick a task
in the follwing list:Implement more functionalities from django-paypal in different backends
(one for direct payments, one for professional accounts…)Port the shop API to other shop systems, so they can also easily use this
project as a backend. Examples include but are not limited to: plata, satchmo,
lfsContributingFeel free to post any comment or suggestion for this project on the django-shop
mailing list or on #djanho-shop on freenode :)
Package: djangoshop-paypal
REST based PayPal Payment Provider Integration for django-shopThis integrates PayPal for django-shop version 1.0 and above.Installationfor django-shop version 1.2.x:pip install djangoshop-paypal<1.3ConfigurationInsettings.pyof the merchant's project:Add'shop_paypal'toINSTALLED_APPS.AtPayPalcreate a business account and apply for the vendor credentials.
For a testing account add them as:SHOP_PAYPAL = {
    'API_ENDPOINT': 'https://api.sandbox.paypal.com',
    'MODE': 'sandbox',
    'CLIENT_ID': '<client-id-as-provided-by-PayPal>',
    'CLIENT_SECRET': '<client-secret-as-provided-by-PayPal>',
    'PURCHASE_DESCRIPTION': "Thanks for purchasing at My Shop",
}and for production:SHOP_PAYPAL = {
    'API_ENDPOINT': 'https://api.paypal.com',
    'MODE': 'live',
    'CLIENT_ID': '<client-id-as-provided-by-PayPal>',
    'CLIENT_SECRET': '<client-secret-as-provided-by-PayPal>',
    'PURCHASE_DESCRIPTION': "Thanks for purchasing at My Shop",
}Add'shop_paypal.modifiers.PaymentModifier'to the list ofSHOP_CART_MODIFIERS.Add'shop_paypal.payment.OrderWorkflowMixin'to the list ofSHOP_ORDER_WORKFLOWS.When rendering the payment method form, "PayPal" shall appear in the list of possible payments.Successful payments are redirected onto the just created order detail page.If a payment was rejected by PayPal,djangoshop-paypalredirects onto the CMS page with the IDshop-cancel-payment, so make sure that such a page exists.
Package: django-shopping-cart
Django Shopping Cart is a Django app to store product in cart.Detailed documentation is in the “docs” directory.Quick startAdd “cart” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'cart',
]

Add below line to settings context_processor::
    'cart.context_processor.cart_total_amount'

CART_SESSION_ID = 'cart'You can use the urls in following way:from django.urls import path
from . import views

urlpatterns = [
    path('cart/add/<int:id>/', views.cart_add, name='cart_add'),
    path('cart/item_clear/<int:id>/', views.item_clear, name='item_clear'),
    path('cart/item_increment/<int:id>/',
         views.item_increment, name='item_increment'),
    path('cart/item_decrement/<int:id>/',
         views.item_decrement, name='item_decrement'),
    path('cart/cart_clear/', views.cart_clear, name='cart_clear'),
    path('cart/cart-detail/',views.cart_detail,name='cart_detail'),
]You should have a Product model & Below field is mandatoryname = models.CharField(max_length=255)
image = models.ImageField(upload_to=’products/’)
price = models.FloatField()Then views.py should like like this:from django.shortcuts import render, redirect
from store.models import Product
from django.contrib.auth.decorators import login_required
from cart.cart import Cart

@login_required(login_url="/users/login")
def cart_add(request, id):
    cart = Cart(request)
    product = Product.objects.get(id=id)
    cart.add(product=product)
    return redirect("home")


@login_required(login_url="/users/login")
def item_clear(request, id):
    cart = Cart(request)
    product = Product.objects.get(id=id)
    cart.remove(product)
    return redirect("cart_detail")


@login_required(login_url="/users/login")
def item_increment(request, id):
    cart = Cart(request)
    product = Product.objects.get(id=id)
    cart.add(product=product)
    return redirect("cart_detail")


@login_required(login_url="/users/login")
def item_decrement(request, id):
    cart = Cart(request)
    product = Product.objects.get(id=id)
    cart.decrement(product=product)
    return redirect("cart_detail")


@login_required(login_url="/users/login")
def cart_clear(request):
    cart = Cart(request)
    cart.clear()
    return redirect("cart_detail")


@login_required(login_url="/users/login")
def cart_detail(request):
    return render(request, 'cart/cart_detail.html')In the template you can use the url in folowing way:<a href="{% url 'cart_add' product.id %}">Add To Cart</a>
<a href="{% url 'cart_clear' %}">Clear Cart</a>
<a href="{% url 'item_increment' value.product_id %}">Increament</a>
<a href="{% url 'item_decrement' value.product_id %}">Decrement</a>To view the cart detail page use the below code{% load cart_tag %}Total Length :: {{request.session.cart|length}}Cart Detail:{% for key,value in request.session.cart.items %}{{value.name}}
{{value.price}}
{{value.quantity}}
{{value.image}}
Total {{ value.price|multiply:value.quantity }}{% endfor %}
Package: django-shop-postfinance
This application is a postfinance backend for django-SHOP, or any other shop
system implementing its shop interface.UsageAdd this project to your INSTALLED_APPS, and add
‘shop_postfinance.offsite_postfinance.OffsitePostfinanceBackend’ to django-SHOP’s
SHOP_PAYMENT_BACKENDS setting.TodoPlenty of stuff is left to do! If you feel like giving a hand, please pick a task
in the follwing list:Add a model to store IPN results in the database in full.Add a signal on_save() to this model, and only call shop.confirm_payment()
from there.Port the shop API to other shop systems, so they can also easily use this
project as a backend. Examples include but are not limited to: plata, satchmo,
lfsContributingFeel free to post any comment or suggestion for this project on the django-shop
mailing list or on #djanho-shop on freenode :)
Package: django-shop-richcatalog
A rich catalog plugin for django shop.[![Build Status](https://travis-ci.org/nimbis/django-shop-richcatalog.svg?branch=master)](https://travis-ci.org/nimbis/django-shop-richcatalog)[![Coverage](https://coveralls.io/repos/nimbis/django-shop-richcatalog/badge.png?branch=master)](https://coveralls.io/r/nimbis/django-shop-richcatalog?branch=master)Requirementsdjango-cms >= 3.3.1django-shopdjango-shop-richproductInstallationRunpip install django-shop-richcatalogor download this package and runpython setup.py installEnsure thatdjango_shop_richcatalogis in your INSTALLED APPSRunsyncdbormigrate django_shop_richcatalogif you have South installed.ContributingSee the [Contributing Guidelines](CONTRIBUTING.md).Historyv3.1.0:Adding migration required for Django CMS v3.3.1 and later, which is now
required for this app.v3.0.0:Adding “root_catalog” field to the Catalog model. This allows a catalog
plugin to display the contents of a catalog rather than displaying all
catalogs.v2.0.1:Adding placeholder fields to the Catalog model. This allows the
adding of CMS content below and above each catalog.v2.0.0:Now supports (requires) Django 1.8Adds catalog name as “page_sub_title” for use in templatesv1.1.0:Added missing migration.  New plugin for shop-richcatalog.v1.0.0:Django 1.7 is now supported.v0.4.3:Removing pip requirement from setup.py.v0.1.0:Initial version.
Package: django-shop-richproduct
Provides rich product functionality for the django shop application.[![Build Status](https://travis-ci.org/nimbis/django-shop-richproduct.svg?branch=master)](https://travis-ci.org/nimbis/django-shop-richproduct)[![Coverage](https://coveralls.io/repos/nimbis/django-shop-richproduct/badge.png?branch=master)](https://coveralls.io/r/nimbis/django-shop-richproduct?branch=master)Requirementsdjango < 1.8django-cmsdjango-shopInstallationRunpip install django-shop-richproductor download this package and runpython setup.py installEnsure thatdjango_shop_richproductis in your INSTALLED APPSRunsyncdbormigrate django_shop_richproductif you have South installed.Historyv1.1.0:Added purchase_button_label field to the RichProduct model to allow
products to customize this button text on an individual basis.v1.0.0:Django 1.7 is now supported.v0.2.5:Removing pip requirement from setup.py.v0.1.0:Initial version.
Package: django-shop-saferpay
This package provides a SaferPay backend for django SHOPInstallationAdd'saferpay_backend',to yourINSTALLED_APPSadd'saferpay_backend.saferpay.SaferPayBackend',toSHOP_PAYMENT_BACKENDSsetSAFERPAY_ACCOUNT_IDandSAFERPAY_ACCOUNT_PASSWORDto the values
corresponding to your SaferPay accountThere are a number of additional settings available. Please refer tosaferpay_backend/settings.py.
Package: djangoshop-sendcloud
SendCloud Shipping Provider Integration for django-SHOPThis integrates theSendCloudAPI fordjango-SHOPversion 1.0 and above.Installationfor django-SHOP version 1.0 and later:pip install djangoshop-sendcloud<1.1PreparationAtSendCloudcreate an account.In your personal account settings, click onSettings. There:Add aSender Address.InFinancial > Direct Debitadd your recurring payment settings. There your bank account is
charged with € 0.01, but this may take a few hours or even one day until everything is checked.InSelected ShopselectSendCloud APIwith a name of your choice. There, extract thePublic Keyand theSecret Key(see below).ConfigurationInsettings.pyof the merchant's project:Add'shop_sendcloud'toINSTALLED_APPS.Add'shop_sendcloud.modifiers.SendcloudShippingModifier'to the list ofSHOP_CART_MODIFIERS.Add'shop_sendcloud.shipping.OrderWorkflowMixin'to the list ofSHOP_ORDER_WORKFLOWS.If you rundjango-SHOPwith partial delivery, replace theOrderItemSerializerwith the one provided:SHOP_ORDER_ITEM_SERIALIZER = 'shop_sendcloud.serializers.OrderItemSerializer'and change the workflow to:SHOP_ORDER_WORKFLOWS=[...'shop_sendcloud.workflows.CommonOrderWorkflowMixin','shop.shipping.workflows.PartialDeliveryWorkflowMixin',]Otherwise, without partial delivery, change the workflow to:SHOP_ORDER_WORKFLOWS=[...'shop_sendcloud.workflows.SingularOrderWorkflowMixin','shop.shipping.workflows.CommissionGoodsWorkflowMixin',]Add thePublic Keyand theSecret Keyas provided by SendCloud (see above):SHOP_SENDCLOUD={'API_KEY':'<public-key-as-provided-by-SendCloud>','API_SECRET':'<secret-key-as-provided-by-SendCloud>',}Since SendClouds sets the Shipping ID for us, we disable that field in the
backend, usingSHOP_MANUAL_SHIPPING_ID = False.SendCloudrequires a specific address model, therefore ensure that you "materialize" the one
provided withdjangoshop-sendcloudand not the defaults fromshop/models/defaults/address.Typically, it's enough to import the alternative classes forBillingAddress,ShippingAddressandCustomerintomodels.pyof your merchant implementation:fromshop_sendcloud.models.addressimportBillingAddress,ShippingAddressfromshop_sendcloud.models.customerimportCustomerInitializationCreate two additional database tables as required bydjangoshop-sendcloud:pythonmanange.pymigratedjangoshop_sendcloudFinally, load all possible shipping options into your shop:pythonmanange.pysendcloud_importremember to run this job on a regular basis, say once a week, to update shipping prices.UsageWhendjango-SHOPrenders the formShipping Methodinside the checkout view, additional
options will be available. For each carrier configured in theSendCloudbackend, an extra radio
button appears. Whatever the customer selects, will be stored insidedjango-SHOP'sOrderModel.In the Django Admin backend, only after fulfilling the order, a new button apprears namedPRINT SHIPPING LABEL. Clicking on that button fetches a PDF document from the SendCloud API and
forwards it to the Django Admin interface, from where it can be printed out.
Package: djangoshop-shopit
ShopitA fully featured shop application built ondjangoSHOPframework.This project aims to provide aquick & easyway to set up a fully featured shop without much hassle.FeaturesShopit comes with the most useful features that a classic shops needs, out of the box.Here's what you can expect:Easily manageProductsand their variations with customAttributes.Attachimages, videos & files on products.SetUp-sell,Cross-selland other customizedRelationsbetween products.Create custom checkboxFlagsfor products and categorization.Group products inCategory,BrandandManufacturergroups.Create discounts and promotional codes withModifiers.Add customTaxesfor categories and products.Enable customerReviewson products.RequirementsDjango1.11, 1.10django-shopas shop framework.django-cmsfor placeholders.django-parlerto translate everything.django-mpttfor tree management.django-admin-sortable2to sort stuff.django-measurementto add measurements.django-phonenumber-fieldfor customer's phone number.InstallationInstall usingpip:pipinstalldjangoshop-shopitYou should followdjango-cms&django-shopinstallation guide first, and then add the following to your settings:INSTALLED_APPS=[...'adminsortable2','mptt','parler','shopit',]SHOP_APP_LABEL='shopit'SHOP_PRODUCT_SUMMARY_SERIALIZER='shopit.serializers.ProductSummarySerializer'SHOP_CART_MODIFIERS=('shop.modifiers.DefaultCartModifier','shopit.modifiers.ShopitCartModifier',...)UrlsThere are two ways to configure the urls. First would be to add to yoururls.py:urlpatterns=[url(r'^shop/',include('shopit.urls')),...]The second option is to usedjango-cmsapphooks.Shopitcomes with a couple of those for different application parts.ShopitApphookis the main one, and one that should always be attached to a page (if the urls are not already added). Then there are other optional apphooks foraccount,categorization&products. If you want to keep it simple, and not have to set every application part individually. You can add to your settings:SHOPIT_SINGLE_APPHOOK=TrueThis will load all the neccesary urls under theShopitApphook.DocumentationFull documentation is availiable onReadTheDocs.
Package: django-shop-simplecategories
This companion applicatoin to django SHOP provides an example of how shop implementors could implement a simple
category system.It is perfectly usable as a simple category system.In basic setup, you can select products on category admin page. If you want to set categories in product admin page,
subclassProductWithCategoryForm, setMetaoptionmodelto your product model, and set this form as your product
form:from shop_simplecategories.admin import ProductWithCategoryForm

class ProductForm(ProductWithCategoryForm):
    class Meta(object):
        model = Product

class ProductAdmin(admin.ModelAdmin):
    form = ProductFormFor your convenience we have added a templatetagshow_root_categoriesthat
outputs all root categories for you:{% load shop_simplecategories_tags %}

<ul>{% show_root_categories %}</ul>If you want to manipulate the output of that template tag, just override the templateshop_simplecategories/show_root_categories.html
Package: django-shop-simplenotifications
django-shop-simplenotifications================================Only use this, if you are brave!This is a dead simple approach on email notifications for django-shop. Thegoal of this app is to hook into django-shop's various signals in order tosend emails to the shop owner and to the buyer on certain events.Installation=============Install this package into your virtualenv::pip install django-shop-simplenotificationsAdd the app to your INSTALLED_APPS setting::INSTALLED_APPS = (...'shop_simplenotifications',)Configuration==============SN_FROM_EMAIL++++++++++++++Default: DEFAULT_FROM_EMAILThe from address for your automated emails. Example::SN_EMAIL_FROM = 'noreply@myshop.com'SN_OWNERS++++++++++Default: ADMINSA tuple that lists people who get notifications about new incoming orders andpayments. Each member of the tuple should be a tuple of(Full name, email address). Example::(('John', 'john@example.com'), ('Mary', 'mary@example.com'))Templates==========In order to easily provide notifications with the wording and formatting ofyour choice, there are templates for all email subjects and bodies. In orderto override the defaults, add the folowing templates to your``templates/shop_simplenotifications/`` folder:* confirmed_subject.txt* confirmed_body.txt* payment_instructions_subject.txt* payment_instructions_body.txtYou have the option of providing html versions of `confirmed_body.txt` and`payment_instructions_body.txt` (in addition to the .txt files), which will besent as an alternative content type for email clients that render html.All templates have a ``request`` and an ``order`` variable in their context.Please note that the sender in the PaymentBackend should pass the ``request`` as well.Example::confirmed.send(sender=self, order=order, request=request)Features=========* When a buyer completes his order, the shop owners get a notification mail* When a buyer requests prepayment, the shop owners get a notification mailand the buyer gets the payment instructions. The email address will be taken froma) the logged in User, if available and/orb) the billing address,if available and the address model has an ``email`` attribute. If both addressare equal, only one email will be sent. This works for guests and logged inUsers.* All notification emails can be easily templated.Testing========If you want to contribute to this project and quickly need to run thetest-suite, you need to do the following steps:* create a virtual environment* fork this repository* install this package into your virtual environment* manually install the django-shop dependency (this step will be gone soon)* execute ``runtests.py``Example::mkvirtualenv -p python2.7 yourenvnameworkon yourenvnamegit clone git://github.com/bitmazk/django-shop-simplenotifications.gitcd django-shop-simplenotificationspython setup.py installpip install -e git+git://github.com/divio/django-shop.git#egg=shopcd shop_simplenotifications/tests./runtests.py
Package: django-shop-sofortpayment
========================django-shop-sofortpayment========================This application is a Sofort Bank backend for django-SHOP.Usage======Add this project to your INSTALLED_APPS, and add``'shop_sofortpayment.gateway.SofortPaymentBackend',`` to django-SHOP's``SHOP_PAYMENT_BACKENDS`` setting.Other settings you might want to adapt::SHOP_SOFORT_PROJECT_ID = NoneSHOP_SOFORT_CUSTOMER_NUMBER = NoneSHOP_SOFORT_API_KEY = NoneSHOP_SOFORT_CURRENCY = 'EUR'SHOP_SOFORT_ENABLE_CUSTOMER_PROTECTION = True