bitview-client 0.12.2__tar.gz → 0.13.0__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.
- {bitview_client-0.12.2 → bitview_client-0.13.0}/.gitignore +2 -1
- {bitview_client-0.12.2 → bitview_client-0.13.0}/PKG-INFO +11 -6
- {bitview_client-0.12.2 → bitview_client-0.13.0}/README.md +8 -3
- bitview_client-0.13.0/bitview_client/__init__.py +6883 -0
- bitview_client-0.13.0/bitview_client/py.typed +0 -0
- {bitview_client-0.12.2 → bitview_client-0.13.0}/pyproject.toml +2 -15
- bitview_client-0.12.2/.python-version +0 -1
- bitview_client-0.12.2/bitview_client/__init__.py +0 -16491
- bitview_client-0.12.2/tests/mempool_compat/.gitignore +0 -1
- bitview_client-0.12.2/tests/mempool_compat/AUDIT.md +0 -120
- bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_info.py +0 -131
- bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_txs.py +0 -99
- bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_txs_chain.py +0 -132
- bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_txs_mempool.py +0 -55
- bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_utxo.py +0 -71
- bitview_client-0.12.2/tests/mempool_compat/addresses/test_validate_address.py +0 -83
- bitview_client-0.12.2/tests/mempool_compat/audit_prompt.md +0 -106
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block.py +0 -52
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_header.py +0 -52
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_height.py +0 -62
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_raw.py +0 -49
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_status.py +0 -61
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_txid_index.py +0 -71
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_txids.py +0 -55
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_txs.py +0 -73
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_txs_start.py +0 -98
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_v1.py +0 -80
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_height.py +0 -75
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_recent.py +0 -60
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_tip_hash.py +0 -48
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_tip_height.py +0 -47
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_v1_height.py +0 -87
- bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_v1_recent.py +0 -63
- bitview_client-0.12.2/tests/mempool_compat/check_endpoints.py +0 -158
- bitview_client-0.12.2/tests/mempool_compat/conftest.py +0 -227
- bitview_client-0.12.2/tests/mempool_compat/fees/test_mempool_blocks.py +0 -45
- bitview_client-0.12.2/tests/mempool_compat/fees/test_precise.py +0 -39
- bitview_client-0.12.2/tests/mempool_compat/fees/test_recommended.py +0 -39
- bitview_client-0.12.2/tests/mempool_compat/general/test_difficulty_adjustment.py +0 -103
- bitview_client-0.12.2/tests/mempool_compat/general/test_historical_price.py +0 -106
- bitview_client-0.12.2/tests/mempool_compat/general/test_prices.py +0 -43
- bitview_client-0.12.2/tests/mempool_compat/mempool/test_fullrbf_replacements.py +0 -55
- bitview_client-0.12.2/tests/mempool_compat/mempool/test_mempool.py +0 -44
- bitview_client-0.12.2/tests/mempool_compat/mempool/test_recent.py +0 -36
- bitview_client-0.12.2/tests/mempool_compat/mempool/test_replacements.py +0 -53
- bitview_client-0.12.2/tests/mempool_compat/mempool/test_txids.py +0 -50
- bitview_client-0.12.2/tests/mempool_compat/mining/conftest.py +0 -17
- bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_fee_rates.py +0 -58
- bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_fees.py +0 -74
- bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_rewards.py +0 -73
- bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_sizes_weights.py +0 -92
- bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_timestamp.py +0 -52
- bitview_client-0.12.2/tests/mempool_compat/mining/test_difficulty_adjustments.py +0 -81
- bitview_client-0.12.2/tests/mempool_compat/mining/test_hashrate.py +0 -53
- bitview_client-0.12.2/tests/mempool_compat/mining/test_hashrate_pools.py +0 -49
- bitview_client-0.12.2/tests/mempool_compat/mining/test_pool.py +0 -73
- bitview_client-0.12.2/tests/mempool_compat/mining/test_pool_blocks.py +0 -47
- bitview_client-0.12.2/tests/mempool_compat/mining/test_pool_blocks_height.py +0 -61
- bitview_client-0.12.2/tests/mempool_compat/mining/test_pool_hashrate.py +0 -43
- bitview_client-0.12.2/tests/mempool_compat/mining/test_pools.py +0 -80
- bitview_client-0.12.2/tests/mempool_compat/mining/test_pools_period.py +0 -54
- bitview_client-0.12.2/tests/mempool_compat/mining/test_reward_stats.py +0 -58
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_cpfp.py +0 -80
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_post_tx.py +0 -55
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_transaction_times.py +0 -105
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx.py +0 -71
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_hex.py +0 -53
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_merkle_proof.py +0 -70
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_merkleblock_proof.py +0 -58
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_outspend.py +0 -79
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_outspends.py +0 -59
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_raw.py +0 -50
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_rbf.py +0 -82
- bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_status.py +0 -77
- bitview_client-0.12.2/tests/test_basic.py +0 -73
- bitview_client-0.12.2/tests/test_hash_prefix.py +0 -63
- bitview_client-0.12.2/tests/test_metric_data.py +0 -496
- bitview_client-0.12.2/tests/test_tree.py +0 -89
- bitview_client-0.12.2/uv.lock +0 -1471
- {bitview_client-0.12.2 → bitview_client-0.13.0}/pydoc-markdown.yml +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: bitview-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.0
|
|
4
4
|
Summary: Bitcoin on-chain analytics client — thousands of metrics, block explorer, and address index
|
|
5
5
|
Project-URL: Homepage, https://bitcoinresearchkit.org
|
|
6
|
-
Project-URL: Repository, https://github.com/bitcoinresearchkit/
|
|
6
|
+
Project-URL: Repository, https://github.com/bitcoinresearchkit/mono
|
|
7
7
|
License-Expression: MIT
|
|
8
8
|
Keywords: analytics,api,bitcoin,blockchain,brk,cryptocurrency,data,metrics,on-chain
|
|
9
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -25,7 +25,7 @@ Zero-dependency Python client for the [Bitview](https://bitview.space) Bitcoin a
|
|
|
25
25
|
|
|
26
26
|
Requires Python 3.9+.
|
|
27
27
|
|
|
28
|
-
[PyPI](https://pypi.org/project/bitview-client/) | [API Reference](https://github.com/bitcoinresearchkit/
|
|
28
|
+
[PyPI](https://pypi.org/project/bitview-client/) | [API Reference](https://github.com/bitcoinresearchkit/mono/blob/main/packages/bitview_client/DOCS.md) | [Source](https://github.com/bitcoinresearchkit/mono/tree/main/packages/bitview_client)
|
|
29
29
|
|
|
30
30
|
AI clients can use the same API through the official stateless, read-only MCP
|
|
31
31
|
endpoint at [mcp.bitview.space](https://mcp.bitview.space/). No authentication
|
|
@@ -52,14 +52,14 @@ from bitview_client import BitviewClient
|
|
|
52
52
|
client = BitviewClient("https://bitview.space")
|
|
53
53
|
|
|
54
54
|
# Mempool.space-compatible blockchain endpoints.
|
|
55
|
-
block_hash = client.
|
|
55
|
+
block_hash = client.get_block_hash_by_height(800000)
|
|
56
56
|
tx = client.get_tx(
|
|
57
57
|
"a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
58
58
|
)
|
|
59
59
|
|
|
60
60
|
# Typed, chainable series access.
|
|
61
61
|
prices = (
|
|
62
|
-
client.series.price.
|
|
62
|
+
client.series.price.close.by.day1()
|
|
63
63
|
.tail(30)
|
|
64
64
|
.fetch()
|
|
65
65
|
)
|
|
@@ -70,3 +70,8 @@ same_prices = client.series_endpoint("price_close", "day1").tail(30).fetch()
|
|
|
70
70
|
|
|
71
71
|
Series endpoints support integer and date slices, `head(n)`, `tail(n)`,
|
|
72
72
|
`skip(n).take(m)`, `fetch_csv()`, `len()`, and `version()`.
|
|
73
|
+
|
|
74
|
+
A value is `None` where it is missing (mostly a date period without blocks) or
|
|
75
|
+
undefined (a NaN, or a ratio over zero). The type hints say exactly where:
|
|
76
|
+
`Optional` at the indexes where a value can be missing, and everywhere for value
|
|
77
|
+
types that can be undefined (floats, `Cents`, ratios, parts per million).
|
|
@@ -4,7 +4,7 @@ Zero-dependency Python client for the [Bitview](https://bitview.space) Bitcoin a
|
|
|
4
4
|
|
|
5
5
|
Requires Python 3.9+.
|
|
6
6
|
|
|
7
|
-
[PyPI](https://pypi.org/project/bitview-client/) | [API Reference](https://github.com/bitcoinresearchkit/
|
|
7
|
+
[PyPI](https://pypi.org/project/bitview-client/) | [API Reference](https://github.com/bitcoinresearchkit/mono/blob/main/packages/bitview_client/DOCS.md) | [Source](https://github.com/bitcoinresearchkit/mono/tree/main/packages/bitview_client)
|
|
8
8
|
|
|
9
9
|
AI clients can use the same API through the official stateless, read-only MCP
|
|
10
10
|
endpoint at [mcp.bitview.space](https://mcp.bitview.space/). No authentication
|
|
@@ -31,14 +31,14 @@ from bitview_client import BitviewClient
|
|
|
31
31
|
client = BitviewClient("https://bitview.space")
|
|
32
32
|
|
|
33
33
|
# Mempool.space-compatible blockchain endpoints.
|
|
34
|
-
block_hash = client.
|
|
34
|
+
block_hash = client.get_block_hash_by_height(800000)
|
|
35
35
|
tx = client.get_tx(
|
|
36
36
|
"a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
# Typed, chainable series access.
|
|
40
40
|
prices = (
|
|
41
|
-
client.series.price.
|
|
41
|
+
client.series.price.close.by.day1()
|
|
42
42
|
.tail(30)
|
|
43
43
|
.fetch()
|
|
44
44
|
)
|
|
@@ -49,3 +49,8 @@ same_prices = client.series_endpoint("price_close", "day1").tail(30).fetch()
|
|
|
49
49
|
|
|
50
50
|
Series endpoints support integer and date slices, `head(n)`, `tail(n)`,
|
|
51
51
|
`skip(n).take(m)`, `fetch_csv()`, `len()`, and `version()`.
|
|
52
|
+
|
|
53
|
+
A value is `None` where it is missing (mostly a date period without blocks) or
|
|
54
|
+
undefined (a NaN, or a ratio over zero). The type hints say exactly where:
|
|
55
|
+
`Optional` at the indexes where a value can be missing, and everywhere for value
|
|
56
|
+
types that can be undefined (floats, `Cents`, ratios, parts per million).
|