Skip to main content

django-db-counter

Obtain continuous count.

Install

pip install django-db-counter

Use a shared table to count

from django_db_counter.models import DjangoDBCounter


some_id = DjangoDBCounter.get_next("some_keyword")

Use a dedicated table to count

app/models.py

from django_db_counter.models import DjangoDBCounterBase

class MyCounter(DjangoDBCounterBase):
    default_key = "my_counter_keyword" # default to "default"

app/views.py

from app.models import MyCounter

some_id = MyCounter.get_next()

Releases

v0.1.0

  • First release.

Release files for django-db-counter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-db-counter 0.1.0
File Size Uploaded
django-db-counter-0.1.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-db-counter 0.1.0
File Interpreter ABI Platform
django_db_counter-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / django-db-counter-0.1.0.tar.gz

Download URL django-db-counter-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c860790e87dd00e0256b5305439d643f0c7bab4b3351455939cb6b857557acf9
BLAKE2b-256 checksum
How to use checksums
710217d3a900b23475a18e16d80f1e8189c5fcd09fcf732ceed80e756d53496e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / django_db_counter-0.1.0-py3-none-any.whl

Download URL django_db_counter-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c1dd8437e619800299223e67a661dfcec9f5ffba4f6675dc4279b206aefb3ef
BLAKE2b-256 checksum
How to use checksums
50f58b1a2d52bf4d9e5c0b622dc700b4e1edcdf80def58a0a57240c75bb33078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page