brk-client 0.1.0a6__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,56 @@
1
+ Metadata-Version: 2.4
2
+ Name: brk-client
3
+ Version: 0.1.0a6
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
+ # Has optional `, timeout=60.0` argument
41
+ client = BrkClient("https://bitview.space")
42
+
43
+ # Blockchain data (mempool.space compatible)
44
+ block = client.get_block_by_height(800000)
45
+ tx = client.get_tx("abc123...")
46
+ address = client.get_address("bc1q...")
47
+
48
+ # Metrics API - typed, chainable
49
+ prices = client.metrics.price.usd.split.close \
50
+ .by.dateindex() \
51
+ .tail(30) \
52
+ .fetch() # Last 30 items
53
+
54
+ # Generic metric fetching
55
+ data = client.get_metric("price_close", "dateindex", -30)
56
+ ```
@@ -0,0 +1,4 @@
1
+ brk_client/__init__.py,sha256=l_PZBNKhZzUfgZHsqXT11MWT4qsm5ES8knJd8HcGAKw,262908
2
+ brk_client-0.1.0a6.dist-info/METADATA,sha256=QrrLHR6-ser_hBS9Y2Pk1o7LaVro3eVqA048JUyHnQc,1655
3
+ brk_client-0.1.0a6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
+ brk_client-0.1.0a6.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any