{ "info": { "author": "Anton Kuzmichev", "author_email": "assargin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "=================\nDjango Hitcounter\n=================\n\n.. image:: https://badge.fury.io/gh/DirectlineDev%2Fdjango-hitcounter.svg\n :target: http://badge.fury.io/gh/DirectlineDev%2Fdjango-hitcounter\n\n.. image:: https://travis-ci.org/DirectlineDev/django-hitcounter.svg?branch=master\n :target: https://travis-ci.org/DirectlineDev/django-hitcounter\n\n.. image:: https://badge.fury.io/py/djangohitcounter.svg\n :target: http://badge.fury.io/py/djangohitcounter\n\n.. image:: https://coveralls.io/repos/DirectlineDev/django-hitcounter/badge.svg?branch=master&service=github\n :target: https://coveralls.io/github/DirectlineDev/django-hitcounter?branch=master\n\n\n\nAbout\n-----\n\nPretty simple hit counter for Django ORM objects. It collects hits for any django model objects per date.\n\nRequirements\n------------\n\n* Python 2 & 3\n* Django 1.7+\n\nInstallation\n------------\n\n1. Install it using pip (coming soon):\n\n.. code:: sh\n\n pip install djangohitcounter\n\n\nor add ``django_hitcounter`` to your Python path\n\n2. Add the ``django_hitcounter`` app to your ``INSTALLED_APPS``:\n\n.. code:: python\n\n # settings.py\n INSTALLED_APPS = (\n ...,\n 'django_hitcounter',\n ...\n )\n\n\nUsage\n-----\n\nUsage is pretty simple too.\n\n.. code:: python\n\n from django_hitcounter.models import Counter\n from datetime import datetime, timedelta\n\n\n obj = SomeModel.objects.get(pk=1) # get some django object\n\n Counter.hit(obj) # register hit\n Counter.hit(obj, amount=2) # register 2 hits\n Counter.hit(obj, date=datetime.today().date() - timedelta(days=1)) # register hit on yesterday date\n\n Counter.objects.for_model(obj) # get all counter records for our object\n Counter.objects.for_model(obj, total=True) # get total hits count for object\n\n\nLicense\n-------\n\nThis software is distributed under the Apache License Version 2.0", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/DirectlineDev/django-hitcounter/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/DirectlineDev/django-hitcounter", "keywords": "django,hits,counter,hits counter,hitcounter", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "djangohitcounter", "package_url": "https://pypi.org/project/djangohitcounter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djangohitcounter/", "project_urls": { "Download": "https://github.com/DirectlineDev/django-hitcounter/archive/master.zip", "Homepage": "https://github.com/DirectlineDev/django-hitcounter" }, "release_url": "https://pypi.org/project/djangohitcounter/0.2/", "requires_dist": null, "requires_python": "", "summary": "Pretty simple hit counter for Django ORM objects", "version": "0.2" }, "last_serial": 1902338, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "497b90c3c5f75e3e9f9f8d79aa0486aa", "sha256": "72b08cc459c12c76c0187ff279e39254093fa198e5a9e13754f4472c2269adc0" }, "downloads": -1, "filename": "djangohitcounter-0.1.2.tar.gz", "has_sig": false, "md5_digest": "497b90c3c5f75e3e9f9f8d79aa0486aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3488, "upload_time": "2015-09-02T13:35:47", "url": "https://files.pythonhosted.org/packages/b6/55/95c8d5715af93edc07c408d6270cc63e0a562be9c49b8cc3503b3fa788af/djangohitcounter-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "98075ad6950254bff0db778c450ea531", "sha256": "fb09c62dc03e6ff8e092f0c585fba1eb1e17edb3f43a11ed9b06e8a2fd0f4cd9" }, "downloads": -1, "filename": "djangohitcounter-0.1.4.tar.gz", "has_sig": false, "md5_digest": "98075ad6950254bff0db778c450ea531", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3695, "upload_time": "2015-09-04T11:42:48", "url": "https://files.pythonhosted.org/packages/a4/5a/1bcc9250444b998129dc31212a698f712d3e3593040b3f0c2ded628b0deb/djangohitcounter-0.1.4.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "d6eb250ba5bd50499002b0a783e70ece", "sha256": "3a8182c9e2fcaa43570285db9fa28f9198f4911113d2d614efaf0c50637d0548" }, "downloads": -1, "filename": "djangohitcounter-0.1.6.tar.gz", "has_sig": false, "md5_digest": "d6eb250ba5bd50499002b0a783e70ece", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4192, "upload_time": "2016-01-13T06:52:12", "url": "https://files.pythonhosted.org/packages/22/b4/2ce1723adec19375e6d124da6eed731d65c1b3feb35595286cdbf73fb82a/djangohitcounter-0.1.6.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "5b7aaa943e1714f1d7d0470b9cbd1539", "sha256": "0b3b2d8f3ac0dcebaf06840790f2b51a5535c29c12e3937c02ab9eed7e2c95c9" }, "downloads": -1, "filename": "djangohitcounter-0.2.tar.gz", "has_sig": false, "md5_digest": "5b7aaa943e1714f1d7d0470b9cbd1539", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4172, "upload_time": "2016-01-13T09:31:42", "url": "https://files.pythonhosted.org/packages/4a/73/900b22548e7264a7ec31af12e869d4240e09604211eb1ceae8605dbe6e12/djangohitcounter-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5b7aaa943e1714f1d7d0470b9cbd1539", "sha256": "0b3b2d8f3ac0dcebaf06840790f2b51a5535c29c12e3937c02ab9eed7e2c95c9" }, "downloads": -1, "filename": "djangohitcounter-0.2.tar.gz", "has_sig": false, "md5_digest": "5b7aaa943e1714f1d7d0470b9cbd1539", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4172, "upload_time": "2016-01-13T09:31:42", "url": "https://files.pythonhosted.org/packages/4a/73/900b22548e7264a7ec31af12e869d4240e09604211eb1ceae8605dbe6e12/djangohitcounter-0.2.tar.gz" } ] }