summaryrefslogtreecommitdiff
path: root/requests_cache/__init__.py
blob: 829b09972ac8d8e5152e2542caa9f9ef0c810082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# flake8: noqa: E402,F401

# Version is defined in pyproject.toml.
# It's copied here to make it easier for client code to check the installed version.
__version__ = '1.0.0'

from .backends import *
from .cache_keys import *
from .models import *
from .patcher import *
from .policy import *
from .serializers import *
from .session import *

__all__ = [
    # Constants
    'ALL_METHODS',
    'BACKEND_CLASSES',
    'DO_NOT_CACHE',
    'NEVER_EXPIRE',
    'EXPIRE_IMMEDIATELY',
    'SERIALIZERS',
    # Main classes
    'CachedHTTPResponse',
    'CachedRequest',
    'CachedResponse',
    'CachedSession',
    'CacheMixin',
    # Backends
    'BaseCache',
    'DynamoCache',
    'FileCache',
    'GridFSCache',
    'MongoCache',
    'RedisCache',
    'SQLiteCache',
    # Serializers
    'SerializerPipeline',
    'Stage',
    'CattrStage',
    'init_serializer',
    'bson_serializer',
    'json_serializer',
    'pickle_serializer',
    'safe_pickle_serializer',
    'yaml_serializer',
    # Patching/wrapper functions
    'clear',
    'disabled',
    'enabled',
    'get_cache',
    'install_cache',
    'is_installed',
    'remove_expired_responses',
    # Types & utility functions
    'AnyRequest',
    'AnyResponse',
    'CacheActions',
    'create_key',
]