Skip to content

Commit 8e819ee

Browse files
committed
update: change cache implementation and bump version to 1.2.2
1 parent 5c9cfab commit 8e819ee

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

bdshare/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
clear_cache,
5252
configure_proxy,
5353
)
54+
from bdshare.util.cache import _TTLCache
5455

5556
# ---------------------------------------------------------------------------
5657
# Type aliases
@@ -149,7 +150,7 @@ class BDShare:
149150

150151
def __init__(self, api_key: Optional[str] = None, cache_enabled: bool = True):
151152
self._session = get_session()
152-
self._store = Store() if cache_enabled else None
153+
self._store = _TTLCache() if cache_enabled else None
153154
self.cache_enabled = cache_enabled
154155
if api_key:
155156
set_token(api_key)

bdshare/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version_info = (1, 2, 0)
1+
version_info = (1, 2, 2)
22
__version__ = ".".join(map(str, version_info))

comprehensive_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
"""
3-
Comprehensive Test Suite for BDShare v1.2.1 using pytest
3+
Comprehensive Test Suite for BDShare v1.2.2 using pytest
44
"""
55

66
import os

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = bdshare
3-
version = 1.2.1
3+
version = 1.2.2
44
author= Raisul Islam
55
author_email= raisul.me@gmail.com
66
description = A utility for crawling historical and Real-time Quotes of DSE(Dhaka Stock Exchange)

0 commit comments

Comments
 (0)