Skip to main content

Transaction-based quotas for Django

Project description

dj-happy-quotas

Transaction-based quotas for Django.

Introduction

Believe it or not, but some users really don't enjoy signing up for monthly or annual subscription plans. And for some applications such subscriptions also don't really make much sense, like when they are best used ocassionally by means of single-fire transactions.

This package provides handling of transaction-like quotas that a user can fill up on demand.

Handling of pricing plans and payments are not subject of this package.

Use

Install:

poetry add dj-happy-quotas

(A mere pip install dj-happy-quotas might work as well.)

Add to INSTALLED_APPS in settings.py:

INSTALLED_APPS = [
    ...
    'dj-happy-quotas',
    ...
]

Run database migrations:

python manage.py migrate dj-happy-quotas

Publishing a new release

# Update version number in pyproject.toml and happy_quotas/__init__.py

# Check that everything looks ok
poetry config --list
poetry check

# Publish
poetry build
poetry publish

Related projects

  • django-billing for a very similar approach to this one here but being more generic in targetting recurring billing on top.
  • django-flexible-subscriptions for handling of subscriptions where authentication is plugged via Django's standard groups.
  • django-plans for subscription pricing plans including quotas and account expiration.
  • django-subscriptions A django package for managing the status and terms of a subscription.
  • django-paddle Django models and helpers for integrating paddle subscriptions.
  • dj-paddle for subscriptions-related paddle integration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dj-happy-quotas-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

dj_happy_quotas-0.1.0-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page