cachier 2.2.0__py2.py3-none-any.whl → 2.2.1__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.
- cachier/_version.py +2 -2
- cachier/core.py +6 -4
- {cachier-2.2.0.dist-info → cachier-2.2.1.dist-info}/METADATA +1 -1
- {cachier-2.2.0.dist-info → cachier-2.2.1.dist-info}/RECORD +8 -8
- {cachier-2.2.0.dist-info → cachier-2.2.1.dist-info}/LICENSE +0 -0
- {cachier-2.2.0.dist-info → cachier-2.2.1.dist-info}/WHEEL +0 -0
- {cachier-2.2.0.dist-info → cachier-2.2.1.dist-info}/entry_points.txt +0 -0
- {cachier-2.2.0.dist-info → cachier-2.2.1.dist-info}/top_level.txt +0 -0
cachier/_version.py
CHANGED
@@ -11,8 +11,8 @@ version_json = '''
|
|
11
11
|
{
|
12
12
|
"dirty": false,
|
13
13
|
"error": null,
|
14
|
-
"full-revisionid": "
|
15
|
-
"version": "2.2.
|
14
|
+
"full-revisionid": "5776ee8d63c8a5719ccd3737f0f504bc1a7eb679",
|
15
|
+
"version": "2.2.1"
|
16
16
|
}
|
17
17
|
''' # END VERSION_JSON
|
18
18
|
|
cachier/core.py
CHANGED
@@ -17,16 +17,18 @@ import os
|
|
17
17
|
import pickle
|
18
18
|
from concurrent.futures import ThreadPoolExecutor
|
19
19
|
from functools import wraps
|
20
|
-
from typing import Callable, Literal, Optional, TypedDict, Union
|
20
|
+
from typing import TYPE_CHECKING, Callable, Literal, Optional, TypedDict, Union
|
21
21
|
from warnings import warn
|
22
22
|
|
23
|
-
from pymongo.collection import Collection
|
24
|
-
|
25
23
|
from .base_core import RecalculationNeeded, _BaseCore
|
26
24
|
from .memory_core import _MemoryCore
|
27
25
|
from .mongo_core import _MongoCore
|
28
26
|
from .pickle_core import _PickleCore
|
29
27
|
|
28
|
+
if TYPE_CHECKING:
|
29
|
+
import pymongo.collection
|
30
|
+
|
31
|
+
|
30
32
|
MAX_WORKERS_ENVAR_NAME = 'CACHIER_MAX_WORKERS'
|
31
33
|
DEFAULT_MAX_WORKERS = 8
|
32
34
|
|
@@ -92,7 +94,7 @@ class MissingMongetter(ValueError):
|
|
92
94
|
|
93
95
|
|
94
96
|
HashFunc = Callable[..., str]
|
95
|
-
Mongetter = Callable[[], Collection]
|
97
|
+
Mongetter = Callable[[], "pymongo.collection.Collection"]
|
96
98
|
Backend = Literal["pickle", "mongo", "memory"]
|
97
99
|
|
98
100
|
|
@@ -1,15 +1,15 @@
|
|
1
1
|
cachier/__init__.py,sha256=CQhNw1mPDRcR8x5E-rJX0shNQ_j-1MHkY4VdHI0PWSo,232
|
2
|
-
cachier/_version.py,sha256=
|
2
|
+
cachier/_version.py,sha256=53-w9yvhnJKzEivGwM-rvu3FtmFtPgfHpCpO_S55v2c,471
|
3
3
|
cachier/base_core.py,sha256=D0czuggU8oKUyTKx3R7dwhEDeOSlvnkojYfHPMpN_dI,3062
|
4
|
-
cachier/core.py,sha256=
|
4
|
+
cachier/core.py,sha256=m8F5GdgukhLDzmsZb-13cC-M_eadh_GkQ_doSHi8038,14548
|
5
5
|
cachier/memory_core.py,sha256=u19-9IIYL8Y_9bDZ9cC3k9bE_-QezzLA1qrd_abpIes,2846
|
6
6
|
cachier/mongo_core.py,sha256=eur37BnMg8aO_-UA26jDEj2VNSZl352B0U2IWIf72Hc,5022
|
7
7
|
cachier/pickle_core.py,sha256=pteQZ1IYaEL7tKagaxt3eeueGXy58weAi4hmMfmbM5A,10068
|
8
8
|
cachier/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
cachier/scripts/cli.py,sha256=tMwq1IaD_lxhcc8WMgWh4P0gpi5l6-twCS2YeAKAM98,429
|
10
|
-
cachier-2.2.
|
11
|
-
cachier-2.2.
|
12
|
-
cachier-2.2.
|
13
|
-
cachier-2.2.
|
14
|
-
cachier-2.2.
|
15
|
-
cachier-2.2.
|
10
|
+
cachier-2.2.1.dist-info/LICENSE,sha256=-2WrMJkIa0gVP6YQHXXDT7ws-S3M2NEVEF4XF3K8qrY,1069
|
11
|
+
cachier-2.2.1.dist-info/METADATA,sha256=aTiRMVMZ1L5YGl_6Lqwj1tyiDhl-v2TiPRs-YTQenJk,18293
|
12
|
+
cachier-2.2.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
13
|
+
cachier-2.2.1.dist-info/entry_points.txt,sha256=lX3uoizHLFaUndwv_d_B-feK3mI2Z3uejU9kufZLcW0,52
|
14
|
+
cachier-2.2.1.dist-info/top_level.txt,sha256=_rW_HiJumDCch67YT-WAgzcyvKg5RiYDMZq9d-0ZpaE,8
|
15
|
+
cachier-2.2.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|