semvec/pypi-packages huggingface dataset:
game-core-purchase 0.1.1
A reusable Django app for creating, logging and verifying purchases.
License: MIT
Requires Python: >=3.8,<4.0

Purchase Core
===============

A reusable Django app for creating, logging and verifying purchases.

Quick start
-----------
The following packages must be installed:
    * Django == 3.1
    * djangorestframework == 3.12.4
    * django_filter == 2.4.0
    * google == 3.0.0
    * google-auth-oauthlib == 0.4.6

1. Install Django Purchase Core & Dependancies:

    >>> pip install django_purchase_core


2. Add "purchase" and "rangefilter" to your INSTALLED_APPS setting like this:

.. code:: python

        INSTALLED_APPS = [
            ...,
            'purchase',
            'rangefilter',
            ...,
        ]

3. Add the following to app_config.urls:

.. code:: python

    from django.conf.urls import url, include

    urlpatterns = [
        ...,
        path("api/", include("purchase.urls")),
        ...,
    ]


4. Run Django Commands:

    >>> python manage.py makemigrations
    >>> python manage.py migrate

5. Add models in admin panel:

    >>> python manage.py makemigrations
    >>> python manage.py migrate

Setting
--------
1. Configure models for logging in the admin panel.

2. For launch tests in local:

.. code:: python

        from purchase.tests import PurchaseViewApplePlatformTestCase, PurchaseViewAndroidPlatformTestCase, LogConfigTestCase


        class LocalTestPurchaseViewApplePlatformTestCase(PurchaseViewApplePlatformTestCase):
            pass


        class LocalPurchaseViewAndroidPlatformTestCase(PurchaseViewAndroidPlatformTestCase):
            pass


        class LocalLogConfigTestCase(LogConfigTestCase):
            pass