bitcoinwatcher 2.7__tar.gz → 2.8__tar.gz
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.
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/PKG-INFO +1 -2
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/utils/context_aware_logging.py +5 -13
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoinwatcher.egg-info/PKG-INFO +1 -2
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoinwatcher.egg-info/requires.txt +0 -1
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/pyproject.toml +1 -2
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/LICENSE +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/README.md +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/__init__.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/address_listener/__init__.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/address_listener/address_listener.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/address_listener/simple_address_listener.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/models/__init__.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/models/address_tx_data.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tests/__init__.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tests/data/__init__.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tests/data/transactions.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tests/test_address_listener.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tests/test_bitcoin_rpc.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tests/test_bitcoin_utils.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tx_extractors/__init__.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tx_extractors/abstract_extractor.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tx_extractors/bitcoin_rpc.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tx_extractors/default.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tx_extractors/mempool.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tx_listener/__init__.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tx_listener/abstract_tx_listener.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/tx_listener/zmq_listener.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/utils/__init__.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/utils/benchmark.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/utils/bitcoin_rpc.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/utils/bitcoin_utils.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/utils/constants.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/utils/inscription_utils.py +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoinwatcher.egg-info/SOURCES.txt +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoinwatcher.egg-info/dependency_links.txt +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoinwatcher.egg-info/top_level.txt +0 -0
- {bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bitcoinwatcher
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.8
|
4
4
|
Summary: bitcoinwatcher is a Python library that implements a ZMQ subscriber and provides abstractions to build custom address watchers. This library is designed to make it easy for developers to monitor Bitcoin addresses and react to changes in their state.
|
5
5
|
Author: twosatsmaxi
|
6
6
|
License: Apache License
|
@@ -229,7 +229,6 @@ Requires-Dist: ordipool==1.2.0
|
|
229
229
|
Requires-Dist: pyzmq==25.1.2
|
230
230
|
Requires-Dist: python-bitcoinrpc==1.0
|
231
231
|
Requires-Dist: pytz~=2024.2
|
232
|
-
Requires-Dist: colorlog~=6.9.0
|
233
232
|
|
234
233
|
# bitcoinwatcher
|
235
234
|
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import logging
|
2
2
|
from contextvars import ContextVar
|
3
3
|
from datetime import datetime
|
4
|
-
import colorlog
|
5
4
|
|
6
5
|
import pytz
|
7
6
|
|
@@ -9,9 +8,9 @@ logger = logging.getLogger(__name__)
|
|
9
8
|
root = logging.getLogger()
|
10
9
|
root.setLevel(logging.INFO)
|
11
10
|
|
12
|
-
class TimezoneFormatter(
|
13
|
-
def __init__(self, fmt=None, datefmt=None, tz=None
|
14
|
-
super().__init__(fmt, datefmt
|
11
|
+
class TimezoneFormatter(logging.Formatter):
|
12
|
+
def __init__(self, fmt=None, datefmt=None, tz=None):
|
13
|
+
super().__init__(fmt, datefmt)
|
15
14
|
self.tz = tz
|
16
15
|
|
17
16
|
def formatTime(self, record, datefmt=None):
|
@@ -20,19 +19,12 @@ class TimezoneFormatter(colorlog.ColoredFormatter):
|
|
20
19
|
s = dt.strftime(datefmt)
|
21
20
|
else:
|
22
21
|
s = dt.isoformat()
|
23
|
-
return
|
22
|
+
return s # Adding blue color to the date
|
24
23
|
|
25
24
|
formatter = TimezoneFormatter(
|
26
|
-
' %(asctime)s %(
|
25
|
+
' %(asctime)s %(levelname)s txid= %(tx_id)s tx_status=%(tx_status)s [%(module)s:%(lineno)d] %(message)s',
|
27
26
|
datefmt='%Y-%m-%d %H:%M:%S',
|
28
27
|
tz=pytz.timezone('Asia/Kolkata'),
|
29
|
-
log_colors={
|
30
|
-
'DEBUG': 'cyan',
|
31
|
-
'INFO': 'green',
|
32
|
-
'WARNING': 'yellow',
|
33
|
-
'ERROR': 'red',
|
34
|
-
'CRITICAL': 'bold_red',
|
35
|
-
}
|
36
28
|
)
|
37
29
|
|
38
30
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bitcoinwatcher
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.8
|
4
4
|
Summary: bitcoinwatcher is a Python library that implements a ZMQ subscriber and provides abstractions to build custom address watchers. This library is designed to make it easy for developers to monitor Bitcoin addresses and react to changes in their state.
|
5
5
|
Author: twosatsmaxi
|
6
6
|
License: Apache License
|
@@ -229,7 +229,6 @@ Requires-Dist: ordipool==1.2.0
|
|
229
229
|
Requires-Dist: pyzmq==25.1.2
|
230
230
|
Requires-Dist: python-bitcoinrpc==1.0
|
231
231
|
Requires-Dist: pytz~=2024.2
|
232
|
-
Requires-Dist: colorlog~=6.9.0
|
233
232
|
|
234
233
|
# bitcoinwatcher
|
235
234
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
5
5
|
|
6
6
|
[project]
|
7
7
|
name = "bitcoinwatcher"
|
8
|
-
version = "2.
|
8
|
+
version = "2.8"
|
9
9
|
description = "bitcoinwatcher is a Python library that implements a ZMQ subscriber and provides abstractions to build custom address watchers. This library is designed to make it easy for developers to monitor Bitcoin addresses and react to changes in their state."
|
10
10
|
readme = "README.md"
|
11
11
|
authors = [{name = "twosatsmaxi"}]
|
@@ -35,7 +35,6 @@ dependencies = [
|
|
35
35
|
"pyzmq==25.1.2",
|
36
36
|
"python-bitcoinrpc==1.0",
|
37
37
|
"pytz~=2024.2",
|
38
|
-
"colorlog~=6.9.0"
|
39
38
|
]
|
40
39
|
requires-python = ">=3.10"
|
41
40
|
[project.urls]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bitcoinwatcher-2.7 → bitcoinwatcher-2.8}/bitcoin/address_listener/simple_address_listener.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|