django-ormcache 1.2.2__py2.py3-none-any.whl → 1.3.2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- django_ormcache-1.3.2.dist-info/METADATA +54 -0
- {django_ormcache-1.2.2.dist-info → django_ormcache-1.3.2.dist-info}/RECORD +6 -6
- {django_ormcache-1.2.2.dist-info → django_ormcache-1.3.2.dist-info}/WHEEL +1 -1
- ormcache/queryset.py +2 -1
- django_ormcache-1.2.2.dist-info/METADATA +0 -57
- {django_ormcache-1.2.2.dist-info → django_ormcache-1.3.2.dist-info}/LICENSE +0 -0
- {django_ormcache-1.2.2.dist-info → django_ormcache-1.3.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: django-ormcache
|
|
3
|
+
Version: 1.3.2
|
|
4
|
+
Summary: ORM cache for Django
|
|
5
|
+
Home-page: https://github.com/educreations/django-ormcache
|
|
6
|
+
Author: Corey Farwell
|
|
7
|
+
Author-email: coreyf@rwell.org
|
|
8
|
+
Maintainer: Educreations Engineering
|
|
9
|
+
Maintainer-email: engineering@educreations.com
|
|
10
|
+
License: MIT
|
|
11
|
+
Project-URL: Homepage, https://github.com/educreations/django-ormcache
|
|
12
|
+
Project-URL: Issues, https://github.com/educreations/django-ormcache/issues
|
|
13
|
+
Project-URL: Changelog, https://github.com/educreations/django-ormcache/blob/master/CHANGES.md
|
|
14
|
+
Keywords: cache django
|
|
15
|
+
Classifier: Framework :: Django
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Topic :: Software Development
|
|
22
|
+
Requires-Python: >=3.7, <4
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: Django <5.0,>=2.0
|
|
26
|
+
Requires-Dist: six
|
|
27
|
+
Provides-Extra: test
|
|
28
|
+
Requires-Dist: tox ; extra == 'test'
|
|
29
|
+
Requires-Dist: pytest ; extra == 'test'
|
|
30
|
+
Requires-Dist: pytest-django ; extra == 'test'
|
|
31
|
+
Requires-Dist: flake8 ; extra == 'test'
|
|
32
|
+
|
|
33
|
+
# Django ORMCache
|
|
34
|
+
|
|
35
|
+
A cache manager mixin that provides some caching of objects for the ORM.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# Installation / Setup / Usage
|
|
39
|
+
|
|
40
|
+
TODO
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Testing
|
|
44
|
+
|
|
45
|
+
Run the tests with:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
pip install -e .[tests]
|
|
49
|
+
tox
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
# License
|
|
53
|
+
|
|
54
|
+
Copyright © 2024, Educreations, Inc under the [MIT](LICENSE).
|
|
@@ -2,11 +2,11 @@ ormcache/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
ormcache/decorators.py,sha256=2ZMqQTIJlK0uLCf4Egk5rZhp4WrBzeGyaIScWpT3yp4,1822
|
|
3
3
|
ormcache/managers.py,sha256=s1r9FxqN6pyxxM22aUqdI9IK22a37tTPbtB-gLBlNrQ,2034
|
|
4
4
|
ormcache/models.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
ormcache/queryset.py,sha256=
|
|
5
|
+
ormcache/queryset.py,sha256=uTFu2IUk16_R9hIZrXjuZQAEllrK-xOr1oVtkOh7cI4,5438
|
|
6
6
|
ormcache/signals.py,sha256=4v7Awa3QIH9pGd-VbEk9jcjQvwBABq-29fmn9p6z1lg,147
|
|
7
7
|
ormcache/utils.py,sha256=RSI___JrEEDEzwb-MjhqtDojYvsoX0qD-6gAObNbkBc,1792
|
|
8
|
-
django_ormcache-1.
|
|
9
|
-
django_ormcache-1.
|
|
10
|
-
django_ormcache-1.
|
|
11
|
-
django_ormcache-1.
|
|
12
|
-
django_ormcache-1.
|
|
8
|
+
django_ormcache-1.3.2.dist-info/LICENSE,sha256=RVUF4JTQmXwGoB2iQ_ywDydZlJ0ILqbUgdN7DxvayiA,1085
|
|
9
|
+
django_ormcache-1.3.2.dist-info/METADATA,sha256=N0EzG3dt12aIc4MyCj878a-3a8X7vmSXxQQBTuPEDN8,1473
|
|
10
|
+
django_ormcache-1.3.2.dist-info/WHEEL,sha256=pWvVuNuBTVmNV7Lp2jMAgt1NplTICeFdl1SW8U3MWN4,109
|
|
11
|
+
django_ormcache-1.3.2.dist-info/top_level.txt,sha256=aOHDwDLnkCYseV7Vm27Flc3fKlms_YQQnElZh0fSgR8,9
|
|
12
|
+
django_ormcache-1.3.2.dist-info/RECORD,,
|
ormcache/queryset.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from __future__ import unicode_literals
|
|
2
|
+
|
|
1
3
|
try:
|
|
2
4
|
from collections.abc import Iterable
|
|
3
5
|
except ImportError:
|
|
@@ -22,7 +24,6 @@ log = logging.getLogger(__name__)
|
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class CachedQuerySet(QuerySet):
|
|
25
|
-
|
|
26
27
|
__MAXIMUM_CACHE_KEY_LENGTH = 250
|
|
27
28
|
__CACHE_FOREVER = 2592000 # http://ur1.ca/egyvu
|
|
28
29
|
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: django-ormcache
|
|
3
|
-
Version: 1.2.2
|
|
4
|
-
Summary: ORM cache for Django
|
|
5
|
-
Home-page: https://github.com/educreations/django-ormcache
|
|
6
|
-
Author: Corey Farwell
|
|
7
|
-
Author-email: coreyf@rwell.org
|
|
8
|
-
Maintainer: Educreations Engineering
|
|
9
|
-
Maintainer-email: engineering@educreations.com
|
|
10
|
-
License: MIT
|
|
11
|
-
Keywords: cache django
|
|
12
|
-
Platform: UNKNOWN
|
|
13
|
-
Classifier: Framework :: Django
|
|
14
|
-
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python
|
|
18
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
19
|
-
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Topic :: Software Development
|
|
21
|
-
Requires-Dist: Django (<4.2,>=1.9)
|
|
22
|
-
|
|
23
|
-
Django ORMCache
|
|
24
|
-
===============
|
|
25
|
-
|
|
26
|
-
.. image:: https://travis-ci.org/educreations/django-ormcache.svg?branch=master
|
|
27
|
-
:target: https://travis-ci.org/educreations/django-ormcache
|
|
28
|
-
|
|
29
|
-
.. image:: https://coveralls.io/repos/github/educreations/django-ormcache/badge.svg?branch=master
|
|
30
|
-
:target: https://coveralls.io/github/educreations/django-ormcache?branch=master
|
|
31
|
-
|
|
32
|
-
A cache manager mixin that provides some caching of objects for the ORM.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Installation / Setup / Usage
|
|
36
|
-
----------------------------
|
|
37
|
-
|
|
38
|
-
TODO
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Testing
|
|
42
|
-
-------
|
|
43
|
-
|
|
44
|
-
Run the tests with:
|
|
45
|
-
|
|
46
|
-
.. code:: bash
|
|
47
|
-
|
|
48
|
-
pip install -r requirements.txt
|
|
49
|
-
python runtests.py
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
License
|
|
53
|
-
-------
|
|
54
|
-
|
|
55
|
-
Copyright © 2017, Educreations, Inc under the `MIT <LICENSE>`_.
|
|
56
|
-
|
|
57
|
-
|
|
File without changes
|
|
File without changes
|