brk-client 0.1.0__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.
@@ -1,30 +1,26 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: brk-client
3
- Version: 0.1.0
3
+ Version: 0.1.0a3
4
4
  Summary: Python client for the Bitcoin Research Kit
5
5
  Project-URL: Homepage, https://bitcoinresearchkit.org
6
6
  Project-URL: Repository, https://github.com/bitcoinresearchkit/brk
7
7
  License-Expression: MIT
8
8
  Keywords: analytics,bitcoin,blockchain,on-chain
9
- Classifier: Development Status :: 4 - Beta
9
+ Classifier: Development Status :: 3 - Alpha
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
13
  Classifier: Programming Language :: Python :: 3.11
16
14
  Classifier: Programming Language :: Python :: 3.12
17
15
  Classifier: Programming Language :: Python :: 3.13
18
16
  Classifier: Typing :: Typed
19
- Requires-Python: >=3.9
17
+ Requires-Python: >=3.11
20
18
  Description-Content-Type: text/markdown
21
19
 
22
20
  # brk-client
23
21
 
24
22
  Python client for the [Bitcoin Research Kit](https://github.com/bitcoinresearchkit/brk) API.
25
23
 
26
- Requires Python 3.9+. Zero dependencies.
27
-
28
24
  [PyPI](https://pypi.org/project/brk-client/) | [API Reference](https://github.com/bitcoinresearchkit/brk/blob/main/packages/brk_client/DOCS.md)
29
25
 
30
26
  ## Installation
@@ -35,15 +31,12 @@ pip install brk-client
35
31
  uv add brk-client
36
32
  ```
37
33
 
38
- Or just copy [`brk_client/__init__.py`](./brk_client/__init__.py) into your project - it's a single file with no dependencies.
39
-
40
34
  ## Quick Start
41
35
 
42
36
  ```python
43
37
  from brk_client import BrkClient
44
38
 
45
39
  # Use the free public API or your own instance
46
- # Has optional `, timeout=60.0` argument
47
40
  client = BrkClient("https://bitview.space")
48
41
 
49
42
  # Blockchain data (mempool.space compatible)
@@ -60,3 +53,18 @@ prices = client.metrics.price.usd.split.close \
60
53
  # Generic metric fetching
61
54
  data = client.get_metric("price_close", "dateindex", -30)
62
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,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,4 +0,0 @@
1
- brk_client/__init__.py,sha256=9sNJMFFJTPuznadNAjeu8ovXPTTaJjQ4U8OmXp7qG90,289834
2
- brk_client-0.1.0.dist-info/METADATA,sha256=LyIfnDsRcD-mePEml9jvKGadibhIxajKUm-FgPbvMi4,1922
3
- brk_client-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4
- brk_client-0.1.0.dist-info/RECORD,,