brk-client 0.1.0a2__py3-none-any.whl → 0.1.0a3__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.
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.4
2
+ Name: brk-client
3
+ Version: 0.1.0a3
4
+ Summary: Python client for the Bitcoin Research Kit
5
+ Project-URL: Homepage, https://bitcoinresearchkit.org
6
+ Project-URL: Repository, https://github.com/bitcoinresearchkit/brk
7
+ License-Expression: MIT
8
+ Keywords: analytics,bitcoin,blockchain,on-chain
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Typing :: Typed
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+
20
+ # brk-client
21
+
22
+ Python client for the [Bitcoin Research Kit](https://github.com/bitcoinresearchkit/brk) API.
23
+
24
+ [PyPI](https://pypi.org/project/brk-client/) | [API Reference](https://github.com/bitcoinresearchkit/brk/blob/main/packages/brk_client/DOCS.md)
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install brk-client
30
+ # or
31
+ uv add brk-client
32
+ ```
33
+
34
+ ## Quick Start
35
+
36
+ ```python
37
+ from brk_client import BrkClient
38
+
39
+ # Use the free public API or your own instance
40
+ client = BrkClient("https://bitview.space")
41
+
42
+ # Blockchain data (mempool.space compatible)
43
+ block = client.get_block_by_height(800000)
44
+ tx = client.get_tx("abc123...")
45
+ address = client.get_address("bc1q...")
46
+
47
+ # Metrics API - typed, chainable
48
+ prices = client.metrics.price.usd.split.close \
49
+ .by.dateindex() \
50
+ .tail(30) \
51
+ .fetch() # Last 30 items
52
+
53
+ # Generic metric fetching
54
+ data = client.get_metric("price_close", "dateindex", -30)
55
+ ```
56
+
57
+ ## API
58
+
59
+ ```python
60
+ # Range methods
61
+ .head(n) # First n items
62
+ .tail(n) # Last n items
63
+ .fetch() # Execute the request
64
+ ```
65
+
66
+ ## Configuration
67
+
68
+ ```python
69
+ client = BrkClient("https://bitview.space", timeout=60.0)
70
+ ```
@@ -0,0 +1,4 @@
1
+ brk_client/__init__.py,sha256=uYQ0Ivow7X0B4wm0U81YrQsn9-HLG8PecBg1vzJX9A8,276368
2
+ brk_client-0.1.0a3.dist-info/METADATA,sha256=1msJ4SEU7S3-yiwR7TEmFPmzZg35PUDv4TxETzDwTCM,1830
3
+ brk_client-0.1.0a3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
+ brk_client-0.1.0a3.dist-info/RECORD,,
@@ -1,35 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: brk-client
3
- Version: 0.1.0a2
4
- Summary: Python client for the Bitcoin Research Kit
5
- Project-URL: Homepage, https://bitcoinresearchkit.org
6
- Project-URL: Repository, https://github.com/bitcoinresearchkit/brk
7
- License-Expression: MIT
8
- Keywords: analytics,bitcoin,blockchain,on-chain
9
- Classifier: Development Status :: 3 - Alpha
10
- Classifier: Intended Audience :: Developers
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Classifier: Programming Language :: Python :: 3.13
18
- Classifier: Typing :: Typed
19
- Requires-Python: >=3.12
20
- Requires-Dist: httpx>=0.25.0
21
- Description-Content-Type: text/markdown
22
-
23
- # brk_client
24
-
25
- Python client for the [Bitcoin Research Kit](https://bitcoinresearchkit.org) - a suite of tools to extract, compute and display data stored on a Bitcoin Core node.
26
-
27
- ## Installation
28
-
29
- ```bash
30
- pip install brk-client
31
- ```
32
-
33
- ## License
34
-
35
- MIT
@@ -1,4 +0,0 @@
1
- brk_client/__init__.py,sha256=osfeJKQeBYgJJa8lVTGyyaaLeo4l_3XdWkqhndmCYRs,268348
2
- brk_client-0.1.0a2.dist-info/METADATA,sha256=xLfYKDQMBXxAZbYGOQ8MU32VWMw4u2mSOCcq_bfRRt4,1112
3
- brk_client-0.1.0a2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
- brk_client-0.1.0a2.dist-info/RECORD,,