MCPcopy Create free account

hub / github.com/requests-cache/requests-cache / types & classes

Types & classes66 in github.com/requests-cache/requests-cache

↓ 36 callersClassCachedResponse
A class that emulates :py:class:`requests.Response`, optimized for serialization
requests_cache/models/response.py:69
↓ 36 callersClassCachedSession
Session class that extends :py:class:`requests.Session` with caching features. See individual :py:mod:`backend classes <requests_cache.backends>`
requests_cache/session.py:380
↓ 21 callersClassCacheSettings
Class used internally to store settings that affect caching behavior. This allows settings to be used across multiple modules, but exposed to the
requests_cache/policy/settings.py:28
↓ 15 callersClassSerializerPipeline
A pipeline of stages chained together to serialize and deserialize response objects. Note: Typically, the first stage should be a :py:class:`.Cat
requests_cache/serializers/pipeline.py:37
↓ 13 callersClassStage
A single stage in a serializer pipeline. This wraps serialization steps with consistent ``dumps()`` and ``loads()`` methods Args: obj
requests_cache/serializers/pipeline.py:13
↓ 9 callersClassCattrStage
Base serializer class that does pre/post-processing with ``cattrs``. This can be used either on its own, or as a stage within a :py:class:`.Seria
requests_cache/serializers/cattrs.py:50
↓ 7 callersClassCachedRequest
A serializable dataclass that emulates :py:class:`requests.PreparedResponse`
requests_cache/models/request.py:16
↓ 5 callersClassCachedHTTPResponse
A wrapper class that emulates :py:class:`~urllib3.response.HTTPResponse`. This enables consistent behavior for streaming requests and generator u
requests_cache/models/raw_response.py:23
↓ 4 callersClassMongoDict
A dictionary-like interface for a MongoDB collection Args: db_name: Database name collection_name: Collection name connec
requests_cache/backends/mongodb.py:73
↓ 3 callersClassDemoModel
tests/unit/models/test_base.py:9
↓ 3 callersClassDictStorage
A basic dict wrapper class for non-persistent, in-memory storage .. note:: This is mostly a placeholder for when no other backends are av
requests_cache/backends/base.py:381
↓ 3 callersClassDynamoDbDict
A dictionary-like interface for DynamoDB table Args: table_name: DynamoDB table name create_table: Whether or not to automaticall
requests_cache/backends/dynamodb.py:60
↓ 3 callersClassSQLiteDict
A dictionary-like interface for SQLite
requests_cache/backends/sqlite.py:193
↓ 2 callersClassGridFSCache
GridFS cache backend. Args: db_name: Database name connection: :py:class:`~pymongo.mongo_client.MongoClient` object to reuse inst
requests_cache/backends/gridfs.py:24
↓ 2 callersClassLRUDict
A SQLite db used to track LRU metadata for cached items: * ``key``: The cache key * ``access_time``: The last access time, as a UNIX timestam
requests_cache/backends/filesystem.py:317
↓ 1 callersClassBacktestCachedSession
examples/time_machine_backtesting.py:14
↓ 1 callersClassBadSerializer
tests/integration/test_sqlite.py:294
↓ 1 callersClassBadSerialzier
tests/unit/test_base_cache.py:146
↓ 1 callersClassBaseCache
Base class for cache backends. Can be used as a non-persistent, in-memory cache. This manages higher-level cache operations, including: * Sa
requests_cache/backends/base.py:33
↓ 1 callersClassBasicDataclass
tests/integration/base_storage_test.py:228
↓ 1 callersClassCacheActions
Translates cache settings and headers into specific actions to take for a given cache item. The resulting actions are then handled in :py:meth:`C
requests_cache/policy/actions.py:40
↓ 1 callersClassCacheRPSProgress
Track requests per second plus cache size in a single live view
examples/rps_graph.py:45
↓ 1 callersClassCustomBytesIO
tests/unit/test_cache_keys.py:213
↓ 1 callersClassFooSession
tests/unit/test_patcher.py:49
↓ 1 callersClassGridFSDict
A dictionary-like interface for a GridFS database Args: db_name: Database name collection_name: Ignored; GridFS internally uses c
requests_cache/backends/gridfs.py:60
↓ 1 callersClassMyCache
tests/unit/test_session.py:59
↓ 1 callersClassOriginalResponse
Wrapper class for non-cached responses returned by :py:class:`.CachedSession`
requests_cache/models/response.py:49
↓ 1 callersClassRPSProgress
Display a bar chart of requests per second
examples/rps_graph.py:21
↓ 1 callersClassRedisCache
Redis cache backend. Args: namespace: Redis namespace connection: Redis connection instance to use instead of creating a new one
requests_cache/backends/redis.py:22
↓ 1 callersClassRedisDict
A dictionary-like interface for Redis operations. **Notes:** * All keys will be encoded as bytes, and all values will be serialized
requests_cache/backends/redis.py:52
↓ 1 callersClassRedisHashDict
A dictionary-like interface for operations on a single Redis hash **Notes:** * All keys will be encoded as bytes * Items will be
requests_cache/backends/redis.py:136
↓ 1 callersClassSQLiteCache
SQLite cache backend. Args: db_path: Database file path use_cache_dir: Store database in a user cache directory (e.g., `~/.cache/
requests_cache/backends/sqlite.py:34
ClassBaseCacheTest
Base class for testing cache backend classes
tests/integration/base_cache_test.py:47
ClassBaseResponse
Wrapper class for responses returned by :py:class:`.CachedSession`. This mainly exists to provide type hints for extra cache-related attributes th
requests_cache/models/response.py:29
ClassBaseStorage
Base class for client-agnostic storage implementations. Notes: * This provides a common dictionary-like interface for the underlying storage oper
requests_cache/backends/base.py:303
ClassBaseStorageTest
Base class for testing cache storage dict-like interfaces
tests/integration/base_storage_test.py:15
ClassCacheDirectives
Parses Cache-Control directives and other relevant cache settings from either request or response headers
requests_cache/policy/directives.py:13
ClassCacheMixin
Mixin class that extends :py:class:`requests.Session` with caching features. See :py:class:`.CachedSession` for usage details.
requests_cache/session.py:39
ClassDynamoDbCache
DynamoDB cache backend. By default, responses are only partially serialized into a DynamoDB-compatible document format. Args: table_n
requests_cache/backends/dynamodb.py:22
ClassFileCache
Filesystem cache backend. Args: cache_name: Base directory for cache files use_cache_dir: Store database in a user cache director
requests_cache/backends/filesystem.py:25
ClassFileDict
A dictionary-like interface to files on the local filesystem. The cache directory will be created if it doesn't already exist.
requests_cache/backends/filesystem.py:95
ClassInvalidResponse
Class that will raise an error when unpickled
tests/unit/test_base_cache.py:34
ClassInvalidResponse
Response that will raise an exception when deserialized
examples/generate_test_db.py:38
ClassLRUFileDict
A size-restricted version of FileDict, using LRU eviction. Args: block_bytes: The size of a block of data on the file system.
requests_cache/backends/filesystem.py:181
ClassMongoCache
MongoDB cache backend. By default, responses are partially serialized into a MongoDB-compatible document format. Args: db_name: Datab
requests_cache/backends/mongodb.py:23
ClassPlaceholder
requests_cache/_utils.py:54
ClassRichMixin
Mixin that customizes output when pretty-printed with rich. Compared to default rich behavior for attrs classes, this does the following: * I
requests_cache/models/base.py:7
ClassTestDynamoDbCache
tests/integration/test_dynamodb.py:141
ClassTestDynamoDbDict
tests/integration/test_dynamodb.py:31
ClassTestFileCache
tests/integration/test_filesystem.py:476
ClassTestFileDict
tests/integration/test_filesystem.py:38
ClassTestGridFSCache
tests/integration/test_mongodb.py:140
ClassTestGridFSDict
tests/integration/test_mongodb.py:112
ClassTestLRUDict
tests/integration/test_filesystem.py:324
ClassTestLRUFileDict
Test the LRUFileDict with the same tests as the FileDict.
tests/integration/test_filesystem.py:83
ClassTestMemoryCache
tests/integration/test_memory.py:23
ClassTestMemoryDict
tests/integration/test_memory.py:10
ClassTestMongoCache
tests/integration/test_mongodb.py:56
ClassTestMongoDict
tests/integration/test_mongodb.py:37
ClassTestRedisCache
tests/integration/test_redis.py:43
ClassTestRedisDict
tests/integration/test_redis.py:25
ClassTestRedisHashDict
tests/integration/test_redis.py:36
ClassTestSQLiteCache
tests/integration/test_sqlite.py:330
ClassTestSQLiteDict
tests/integration/test_sqlite.py:22
Class_ConfiguredCachedSession
requests_cache/patcher.py:49
Class_Store
examples/convert_cache.py:12