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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file dj-happy-quotas-0.1.0.tar.gz.

File metadata

  • Download URL: dj-happy-quotas-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Darwin/19.5.0

File hashes

Hashes for dj-happy-quotas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d6525e8a0efaa052f80afa0a89e16cceb7139d447dc895ce9a66f068b4dc636
MD5 565fc932cdae00ae0e661ca6cad7b40d
BLAKE2b-256 5a3c0e667d1fa45de438d20cf8f11d98752d41a895add49cad9bb9347a5cae28

See more details on using hashes here.

File details

Details for the file dj_happy_quotas-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dj_happy_quotas-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Darwin/19.5.0

File hashes

Hashes for dj_happy_quotas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c56b70d59f7f0dd4ece86d32dd09302b4502583338258de48ad3ddf46f6f485b
MD5 353a4fe21ae6bd3cb5ed991bc252df5e
BLAKE2b-256 8ca6c8d6121444cbbef030f0734f8d8a09d0a2f009567054c1a9d48ccf71959a

See more details on using hashes here.

Supported by

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