Saravanan666/pypi-org huggingface dataset:
Package: django-oscar-iyzipay
Django Oscar Iyzipay IntegrationIntegration between Django Oscar and Iyzipay for seamless payment processing.OverviewThis package provides integration betweenDjango OscarandIyzipaypayment gateway, allowing Django Oscar-based e-commerce websites to process payments securely and efficiently using iyzico's payment services.FeaturesSeamless integration between Django Oscar and Iyzipay payment gateway.Support for processing payments securely using Iyzipay's services.Easy installation and setup process.InstallationYou can installdjango-oscar-iyzipayvia pip:pipinstalldjango-oscar-iyzipayUsageTo integrate Django Oscar with Iyzipay, follow these steps:Install the package using pip.Configure your Django project to use Iyzipay as the payment gateway.Add oscar_iyzipay to INSTALLED_APPS'oscar_iyzipay',Add your iyzipay credentials inside settings.pyIYZICO_API_KEY=<youriyzipayapikey>IYZICO_SECRET_KEY=<youriyzipaysecretkey>IYZICO_BASE_URL=<iyzipaybaseurl>Add oscar_iyzipay.urls to your url.pypath('',include('oscar_iyzipay.oscar_iyzipay.urls')),iyzipay expects an identification number (11 digits) and a phone number (not mandatory in Oscar). How to do this can be found in theadd_model_items.py.Finally override any Oscar template to direct to iyzipay gateway. An example is procided inmodify_template.htmlContributingContributions are welcome! Below are the main action points:Add sandboxTest for django-oscar 3.2Add testsFeature: Add enable installments option. (Default to 1)LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.CreditsThis package is maintained byBahadır ÖzkanSupportFor support, bug reports, or feature requests, please open an issue onGitHub.Disclaimer: This package is not maintained officially by Django Oscar or Iyzipay. It is maintained by individual contributors. Use at your own discretion.
Package: django-oscar-mpesa
Django-oscar M-PesaThis package provides integration between django-oscar and M-Pesa’s Instant
Payment Notification (IPN) service.SandboxYou can get a feel of how this module works by running the sandbox site:mkvirtualenv django-oscar-mpesa
make sandbox
sandbox/manage.py runserverDocumentationThe official documentation can be found athttp://django-oscar-mpesa.readthedocs.org.Running tests./runtests.py
Package: django-oscar-newsletter
Django app for managing multiple mass-mailing lists with both plaintext as
well as HTML templates with rich text widget integration, images, and a smart
queueing system all right from the admin interface.StatusWe are currently using this package in several large to medium-scale production
environments, but it should be considered a permanent work in progress.DocumentationExtended documentation is available onRead the Docs.TranslationsStrings have been fully translated into many languages, with many more on their way.
Contributions to translations are welcome throughTransifex.CompatibilityCurrently, django-newsletter officially supports Django 2.2.x LTS, 3.1.x, and 3.2.x, and Python 3.6 through 3.9.RequirementsPlease refer to therequirements.txtfor an updated list of required packages.TestsFairly extensive tests are available for internal frameworks, web
(un)subscription, and mail sending. Sending a newsletter to large groups of recipients
(+15k) has been confirmed to work in multiple production environments. Tests
for pull requests and the master branch are automatically run throughGitHub Actions.ContributingWant to contribute? Great!
Please refer to theissueson
GitHub and readCONTRIBUTING.rst.FeedbackIf you find any bugs or have a feature request for django-newsletter, don't hesitate to
open up an issue onGitHub(but please make sure your issue hasn't been noticed before, finding duplicates is a
waste of time). When modifying or adding features to django-newsletter in a fork, be
sure to let me know what you're building and how you're building it. That way we can
coordinate whether, when, and how it will end up in the main fork and (eventually) an
official release.LicenseThis application is released under the GNU Affero General Public License version 3.
Package: django-oscar-odin
Oscar OdinMapping of Oscar eCommerce models to Odin resources.InstallationTo install addoscar_odinto your installed appsUsagefromoscar.core.loadingimportget_modelfromoscar_odin.mappingsimportcatalogueProduct=get_model("catalogue","Product")# Map a product to a resource.product=Product.objects.get(id=1)product_resource=catalogue.product_to_resource(product)Developing odinUsing pip:make install
make testUsing poetry:poetry install --all-extras
poetry run ./manage.py test
Package: django-oscar-pagseguro
==================================Pagseguro package for django-oscar==================================This package provides integration between django-oscar_ and Pagseguro_.. _django-oscar: https://github.com/tangentlabs/django-oscar.. _Pagseguro: http://pagseguro.com.br/It's only on early developmentIt depends on django_pagseguro2_ library.. _django_pagseguro2: https://github.com/allisson/django-pagseguro2/It works by adding the Pagseguro_ API call to the handle_successful_ordermethod, so it finalizes the order before redirecting the user to Pagseguro_because it needs to use the order number as reference for the order.Pagseguro_ assumes that the order is completed when it's called, which isdifferent from django-oscar, where it's possible to use the success of thepayment as a confirmation for order placement.The payment status are sent afterwards and dealt with using a view provided bydjango_pagseguro2_ library, the signals are then used for order status changingin signals.pyUsage------ Add the pagseguro package to the INSTALLED_APPS::INSTALLED_APPS = [...pagseguro,]- Add the following url to the urls.py of the django-oscar project::url(r'^', include('oscar_pagseguro.urls')),- And have a oscar order status pipeline that matches Pagseguro one::OSCAR_ORDER_STATUS_PIPELINE = {'Aguardando pagamento': ('Paga', u'Em analíse', 'Cancelada'),u'Em analíse': ('Paga', 'Cancelada'),'Paga': ('Em disputa', 'Devolvida', u'Disponível', 'Cancelada'),u'Disponível': ('Devolvida', 'Em disputa'),'Em disputa': (u'Disponível', 'Devolvida', 'Paga'),'Devolvida': (),'Cancelada': (),}- Configure Pagseguro with fix redirection page (Página de redirecionamentofixa) para:/checkout/thank-you/- Configure Pagseguro with transaction notification (Notificação de transação),to the following URL:/retorno/pagseguro/TODO----Drop the status pipeline matching by making the status used by thedjango_pagseguro2_ configurable
Package: django-oscar-paypal-fork-b74153f
This package provides integration betweendjango-oscarand bothPayPal
ExpressandPayPal Payflow Pro.These payment options can be used individually or together.  Further, the
package is structured so that it can be used without Oscar if you so wish.Full documentationLicenseThe package is released under theNew BSD license.SupportHaving problems or got a question?Have a look at the sandbox site as this is a sample Oscar project
integrated with both PayPal options.  See thecontributing guidewithin the
docs for instructions on how to set up the sandbox locally.Ping@django_oscarwith quick queries.Ask more detailed questions on the Oscar mailing list:django-oscar@googlegroups.comUseGithubfor submitting issues and pull requests.TestsChangelog0.9.5Fix issue with missing templates in PyPI package.0.9.4Use Bankcard.number instead of the deprecated Bankcard.card_number attribute.Add support for Django 1.7 and Oscar 1.0.Drop support for Oscar 0.6 and Django 1.5.0.9.3Use the correct key to look up a previous transaction ID (for
refund/capture/void operations).#810.9.2Include templates in package (they were missing from 0.9.1)Dynamically load view classes in Express views module0.9.1Add support for Python 3.3 and 3.4Add preliminary support for (unreleased) Oscar 0.80.9Support Oscar 0.7 (note that this release only works with 0.7.1 onwards)Drop support for Oscar 0.5Fix bug around unicode handlingAllow scheme of callback URL to be specified in a setting0.8.1Ensure sandbox demo site works correctly with Oscar 0.6Fix a bug with Payflow Pro using wrong bankcard attribute for expiry dates.Remove Oscar version verification insetup.pyUse content-typetext/namevaluewhen submitting key-value pairs to
PayPal.0.8Support Oscar 0.6Fix bug with offers not being applied to basket on return from PayPal site.0.7Remove Oscar frominstall_requires0.6.1Persist shipping method name when using PayPal Express as a payment method
only.0.6Add support forNO_SHIPPINGoption with PayPal Express.0.5Addresses asecurity issuewhere baskets could be manipulated while the
customer was on the PayPal site.  This would cause the final order to contain
more items that were paid for.0.4.1Fixes a bug where the second line of a user’s address was not being used to
create the order shipping address.0.4We now require Oscar >= 0.5Full i18 supportNew dashboard views for PayPal Express0.3.3Restrict to Oscar < 0.50.3.2Pass shipping address name when using Express checkoutDocs update0.3.1Fix issue with currency formattingFix issue with i18n proxies being passed to PayPal0.3Order discounts are now passed correctly to PayPal as separate linesFix unicode issue when reading data back from PayPalUse Tox for testsuite0.2.5Fix silly bug with reference transactions0.2.4Fix bug with installing templates0.2.3Fix bug with amount formats not being validated properlyAdjust txn model to allow virtually everything to be nullable0.2.2Add support for specifying transaction currency0.2.1Fix packaging issuesRemove dead templatesWith API docs0.2Includes support for Payflow Pro.0.1Includes support for Express Checkout.
Package: django-oscar-payu
# django-oscar-payu #Following are the configurations required for setting up django-oscar-payu### Installation ###`pip install django-oscar-payu`### Getting Started ###Add the following to the `setting.py` file of your django-oscar setup`PAYU_INFO = {'INR': {'merchant_key': "gtKFFx",'merchant_salt': "eCwWELxi",# for production environment use 'https://secure.payu.in/_payment''payment_url': 'https://test.payu.in/_payment',}}`run `migrate.py` on  --> python manage.py migrateAdd following to the dashboard navigation`OSCAR_DASHBOARD_NAVIGATION.append({'label': _('Payments'),'icon': 'icon-globe','children': [{'label': _('Paypal Express transactions'),'url_name': 'paypal-express-list',},{'label': _('Payu transactions'),'url_name': 'payu-nonseamless-list',},{'label': _('COD Transaction Lists'),'url_name': 'cashondelivery-transaction-list',},]})`
Package: django-oscar-pg-search
Postgresql search handler for Django-OscarThis creates a search handler without the need of any search backend. It is designed for the e-commerce frameworkOscar.It is implemented a little bit expensive but uses 4 annotated search vectors: * upc * title * meta_description * meta_titleThis way the search can be manipulated through the meta fields. It is running productive in a heavily customized env for many months now. I think it should scale up to 5000 Products with 10 Attributes depending on how the products are loaded. We use it fully lazy with endless scrolling.To-DoProvide a generic way to use filter formsWriting TestsFeaturesDon't need to use some additional search backend like elasticCreates filters (facets) for:Data that is directly attached to the Product modelincluding foreign key choicesAttributeValues of the productsStockRecord entriesInstallationBasicInstall using pip:pipinstalldjango-oscar-pg-search# settings.py# replace 'oscar.apps.search.apps.SearchConfig' by 'oscar_pg_search.apps.PgSearchConfig'INSTALLED_APPS=[# 'oscar.apps.search.apps.SearchConfig','oscar_pg_search.apps.PgSearchConfig',]OSCAR_PRODUCT_SEARCH_HANDLER='oscar_pg_search.postgres_search_handler.PostgresSearchHandler'# To avoid exception, haystack is not used:HAYSTACK_CONNECTIONS={"default":{}}Trigram search is our search algorithm. Enable it at your database by executing the following sql:CREATE EXTENSION pg_trgm;Optional Search boxTo install the included Search box that passes the previous search term.
(eg. in 'oscar/partials/search.html'){%include'oscar_pg_search/partials/search.html'%}Optional Filter FormsTo use the included filter forms, include them in the template eg. in 'oscar/layout_2_col.html' after '{% block column_left_extra %}{% endblock %}'.{%include'oscar_pg_search/catalogue/partials/filter_forms.html'%}and include the mixin into the catalogue views.# apps/catalogue/views.pyfromoscar.apps.catalogueimportviewsfromoscar_pg_search.mixinsimportSearchViewMixinclassCatalogueView(SearchViewMixin,views.CatalogueView):passclassProductCategoryView(SearchViewMixin,views.ProductCategoryView):passOptional Use Chosen.jsTo empower multiple choice fields with chosen load it eg. in 'oscar/base.html'.# At the beginning:{%loadoscar_pg_search%}# After jQuery is loaded:{%oscar_pg_search_base%}SettingsIf you want to add some fields that are directly attached to the Product
model:# settings.pyOSCAR_ATTACHED_PRODUCT_FIELDS=['is_public','deposit','volume','weight',]
Package: django-oscar-product-tables
Product Table for Django-OscarThis implements a nice and useful table view to manage Products and its data in one big table.
It is designed for the e-commerce frameworkOscar.Product data that can be used:Data that is directly attached to the Product model including foreign key choicesAttributeValues of the productsStockRecord entriesWith this piece of code you give your Shop managers a perfect overview.FeaturesLoad table with AjaxLoad single form for every table cell that you want to changeSubmits the data with Ajax but shows validation errors to the frontendFilter the data by every column is possible (like you know from table calculation software)Manage all Data from all products without page reloadInstallationInstall using pip:pipinstalldjango-oscar-product-tables# settings.pyINSTALLED_APPS=[# ...'oscar_product_tables.apps.ProductTablesConfig','oscar_product_tables.dashboard.apps.ProductTablesDashboardConfig',# ...]Create urls:urlpatterns=[# ..path('dashboard/product_tables/',apps.get_app_config('product_tables_dashboard').urls),# ..]Add it as first button of catalogue in dashboard:# settings.pyOSCAR_DASHBOARD_NAVIGATION[1]['children']=[{'label':_('Producttable'),'url_name':'product_tables_dashboard:product-table',},*OSCAR_DASHBOARD_NAVIGATION[1]['children'],]SettingsIf you want to add some fields that are directly attached to the Product model:# settings.pyOSCAR_ATTACHED_PRODUCT_FIELDS=['is_public','deposit','volume','weight',]
Package: django-oscar-promotions
Django Oscar Promotions is an app for Dashboard-editable promotional content
in Oscar. It was formerly a part of Oscar core, but has now been separated into
a standalone app.InstallationAdd the following entries toINSTALLED_APPS:INSTALLED_APPS=[...,'oscar_promotions.apps.PromotionsConfig','oscar_promotions.dashboard.apps.PromotionsDashboardConfig',]And the following URL patterns to your project’s URL configuration:urlpatterns=[...,path("",apps.get_app_config("oscar_promotions").urls),path("dashboard/promotions/",apps.get_app_config("oscar_promotions_dashboard").urls),]You can, if you prefer, include the dashboard URLs inside the URL configuration
of your forked dashboard app.If you want the dashboard views to be accessible from the dashboard menu,
add them toOSCAR_DASHBOARD_NAVIGATION. The snippet below will add two
menu items to the Content menu.OSCAR_DASHBOARD_NAVIGATION[5]['children']+=[{'label':'Content blocks','url_name':'oscar_promotions_dashboard:promotion-list',},{'label':'Content blocks by page','url_name':'oscar_promotions_dashboard:promotion-list-by-page',},]Add the promotions context processor to yourTEMPLATESsetting:TEMPLATES={'context_processors':[...'oscar_promotions.context_processors.promotions',]}
Package: django-oscar-stores
This is an extension fordjango-oscarthat adds support for stores.  It
provides:A store locator page using Google maps for geocoding.  It also supports using
the browser’s location to show the nearest stores.Store detail pages including opening hoursStore groupsA dashboard for managing storesIt’s highly extensible and can be used as a foundation for building sophisticated
stores functionality within Oscar sites.ScreenshotsCustomer-facing pages:Dashboard pages:DependenciesGeoDjangois used so a spatial database is required.  We recommend PostGIS.
Django’s docs include someinstallation instructionsalthough it is renowned
for being tricky.Spatialite is another option although it can be tricky to set up.  On Ubuntu,
you can do the following:$sudoapt-getinstallspatialite-binlibspatialite3libgeos++-devlibgdal-devlibproj0Thepysqlitepython package is also required although it doesn’t support C
extensions by default.  To work-around this, there are two options:Download the package, editsetup.cfgto enable C extensions and install:$pipinstallpysqlite--no-install$vim$VIRTUAL_ENV/build/pysqlite/setup.cfg$pipinstallpysqliteUse a custom branch:$pipinstallgit+git://github.com/tinio/pysqlite.git@extension-enabled#egg=pysqliteInstallationFirst, ensure you are using a spatial database and have django-oscar installed.Install package:$pipinstalldjango-oscar-storesThen addstoresandstores.dashboardtoINSTALLED_APPS.Now update your rooturls.py:fromdjango.views.i18nimportJavaScriptCatalogurls=[# basic configuration for Oscarpath('',include(apps.get_app_config('oscar').urls[0])),# adds URLs for the dashboard store managerpath('dashboard/stores/',apps.get_app_config('stores_dashboard').urls),# adds URLs for overview and detail pagespath('stores/',apps.get_app_config('stores').urls),# adds internationalization URLspath('jsi18n/',JavaScriptCatalog.as_view(),name='javascript-catalog'),]SettingsGOOGLE_MAPS_API_KEY(default: not set).  Maps API key for use with Maps and Geocode APIs.
You must provide this key.STORES_GEOGRAPHIC_SRID(default:3577).  This is used for distance
calculations.  Seehttp://spatialreference.orgfor more details.STORES_GEODETIC_SRID(default:4326).STORES_MAX_SEARCH_DISTANCE(default: None). This filters stores
in queries by distance. Units can be set using distance object:fromdjango.contrib.gis.measureimportD# Maximal distance of 150 milesSTORES_MAX_SEARCH_DISTANCE=D(mi=150)# Maximal distance of 150 kilometersSTORES_MAX_SEARCH_DISTANCE=D(km=150)ContributingThere is sandbox site within the repo which is a sample Oscar project that uses
the stores extension.  Set this up with:$makesandboxThis loads a fixture which provides a superuser to test the dashboard with:email: superuser@example.com
username: superuser
password: testingRun tests with:$pytestLicensedjango-oscar-storesis released under the permissiveNew BSD license.
Package: django-oscar-stripe-sca
Stripe integration for django-oscarpip3 install django-oscar-stripe-scaThis is a framework for using Stripe Checkout with a view for being SCA compliant for payments
in Europe after September 2019.  Requires the Python Stripe API (2.27), django 2 and above, django-oscar 2 and above.
Based in part on django-oscar-stripe and django-oscar-paypal.Useful information:Stripe’s Python APIContributingPlease do.  Let me know.SettingsSettings are described in the settings.py file:STRIPE_SEND_RECEIPT: (True/False) - whether to send the payment receipt to the purchaser.STRIPE_PUBLISHABLE_KEY: Your key from Stripe.STRIPE_SECRET_KEY: Your secret key from Stripe.STRIPE_COMPRESS_TO_ONE_LINE_ITEM (default True): If True, send the order to stripe as one combined line item, instead of one for each product.STRIPE_USE_PRICES_API (default True): Use Stripe’s Prices API to send line items, rather than the defunct line_item object.
(Seehttps://stripe.com/docs/payments/checkout/migrating-prices).STRIPE_RETURN_URL_BASE: The common portion of the URL parts of the following two URLs.  Not used itself.STRIPE_PAYMENT_SUCCESS_URL: The URL to which Stripe should redirect upon payment success.STRIPE_PAYMENT_CANCEL_URL: The URL to which Stripe should redirect upon payment cancel.ViewsThree urls are provided in apps.py. Three views are provided in the views.py file.StripeSCAPaymentDetailsView:  This sets up the variables which will be sent to Stripe and renders a templates which injects those variables and redirects to Stripe. Payment will be taken by Stripe as a “Charge” step.StripeSCASuccessResponseView:  This is a form view that is loaded after a successful payment.  The “Place order” button is a form which ultimately tells Stripe to “capture” the payment.StripeSCACancelResponseView:  This is the view that will be shown if the user cancels the payment for any reason.The latter two views should be the views to which STRIPE_PAYMENT_SUCCESS_URL and STRIPE_PAYMENT_CANCEL_URL refer.If you want to extend these views you can.  Extend Oscar’s checkout app, add three new views to extend these ones, and overwrite the URLs in your checkout apps apps.py file.Sandbox for the Stripe SCA integration for django-oscarTo get started with the sandbox (on Windows):Create a venv.>python -m venv .\venvActivate the venv.>.\venv\Scripts\activateInstall the dependencies, then Oscar Stripe SCA>pip install -r requirements.txt
>pip install .Create a file called “settings_local.py” next to “settings.py” and add the following three keys to override the examples given in “settings.py”.  These will be the values for your shop and site integration.STRIPE_PUBLISHABLE_KEY = "XXX"
STRIPE_SECRET_KEY = "YYY"
STRIPE_RETURN_URL_BASE = "https://www.zzz.com"Run the migrations and start the server:>cd sandbox
>python manage.py migrate
>python manage.py runserverTODOThe tests have not been updated yet.The STRIPE_PAYMENT_SUCCESS_URL and STRIPE_PAYMENT_CANCEL_URL settings could probably be removed
Package: django-oscar-telegram-bot
CI:PyPI:Docs:Telegram Bot for Django-Oscar ecommerce.DocumentationThe full documentation is athttps://django-oscar-telegram-bot.readthedocs.org.This package uses django-telegram-bot, take a look tohttps://github.com/jlmadurga/django-telegram-botQuickstartInstall django-oscar-telegram-bot:pip install django-oscar-telegram-botAdd it to your INSTALLED_APPS:INSTALLED_APPS = [
        ...
        'oscar_telegrambot', # this app
        'telegrambot', #  django-telegram-bot
        'rest_framework', # django-telegram-bot uses django-rest-framework
        ...
]Configure in settings:TELEGRAM_BOT_COMMANDS_CONF = "oscar_telegrambot.commands"As other django-telegram-bot app set your Bots with admin panel.Add url to have webhook:url(r'^telegrambot/', include('telegrambot.urls', namespace="telegrambot")),To set the webhook for telegram you needdjango.contrib.sitesinstalled,SITE_IDconfigured in settings and
with it correct value in the DB.You can take a look to a demo repo using the sandbox inhttps://github.com/jlmadurga/django-oscar-telegram-bot-demo.
This demo is already installed inhttp://django-oscar-telegram-bot-demo.herokuapp.com/en-gb/and you can test the
bothttps://telegram.me/djangooscartelegrambotdemo_botFeaturesWellcome and help commandsUnknown command handlerCategories list commandProducts list commandProduct detail commandOrder list&detail command only when loggedRunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.pyHistory0.1.0 (2016-01-26)First release on PyPI.
Package: django-oscar-testsupport
===========================Testing utilities for Oscar===========================Warning-------As of Oscar 0.6, this package has been merged back into Oscar, within the``oscar/test`` package.  There will be no 0.5 release of this package.Description-----------A simple package to allow the test utils from Oscar to be used by otherpackages.Contents:* A ``@dataProvider`` decorator for feeding test methods with differentdatasets.  This is a port of a useful PHPUnit feature.* A ``ClientTestCase`` which provides useful boilerplate functionality for whenworking with Django's test client.  It can set-up users as part of the``setUp`` method.* A ``WebTestCase``, similar to the ``ClientTestCase`` but for working withWebTest.* Various factory methods for creating orders, products, offers and vouchers.Install------Install with::pip install django-oscar-testsupport