semvec/pypi-packages huggingface dataset:
django-redis-counter 0.1.1
Django application that keeps content visit count in redis first, then dump to database via extra job.
License: MIT
Keywords: django-redis-counter

django-redis-counter
====================

Django application that keeps content visit count in redis first, then dump to database via extra job.


Install
-------

::

    pip install django-redis-counter

Dependencies
------------

- django
- redis

Usage
-----

1. Add drc in INSTALLED_APPS in django settings.py. drc is short for django-redis-counter.

::

    INSTALLED_APPS = [
        ...
        'drc',
        ...
    ]

2. Define counter models in app's models.py.

::

    from drc.models import Counter

    class Page(models.Model):
        title = models.CharField(max_length=32)
        ...

    class PageCounter(Counter):
        pass

3. Call incr in views.

::

    def display_page(request, page_id):
        page = Page.objects.get(pk=page_id)
        page_visit_number = PageCounter.incr(page)
        return render(request, "page.html", {
            "page": page,
            "page_visit_number": page_visit_number,
        })

4. Create a script to dump cached data to database. Name the script to page_counter_dump.sh or what ever you like.

::

    #!/bin/bash
    cd /your/project/path
    python manage.py drc-dump

5. Add dump task as schedule job, e.g. crontab job.

::

    * * * * * page_counter_dump.sh # dump the cached data every minutes
    1 * * * * page_counter_dump.sh # dump the cached data every hour.
white 0.1.2
Black, but White instead (PEP8 line–lengths).
License: MIT
Requires Python: >=3.6.0


White: Black, but brighter (PEP8–inspired)
==========================================

`Black <https://github.com/ambv/black>`_ is an amazing tool for auto–formatting
Python code in a style that I prefer. I use it in all my projects.

It has **one** configuration option — to change its default line–length of ``88``
chars to, say, ``79``, like `PEP8 <http://pep8.org>`_ recommends.

That is exactly what this tool does. It invokes ``$ black --line-length 79`` on your behalf.


Usage
=====

::

    $ white myapp.py
    reformatted myapp.py


.. image:: http://share.kennethreitz.org/2L2m1U1A3m0L/Screen%20Shot%202018-03-15%20at%206.21.04%20AM.png


Installation
============

::

	$ pipenv install white
	✨��✨
mongopatcher 0.3.2
Mongodb incremental migration tool
License: MIT
Keywords: mongoengine

mongopatcher
============

.. image:: https://img.shields.io/pypi/v/mongopatcher.svg
        :target: https://pypi.python.org/pypi/mongopatcher

.. image:: https://travis-ci.org/touilleMan/mongopatcher.svg?branch=master
    :target: https://travis-ci.org/touilleMan/mongopatcher

Mongodb Incremental migration tool