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.
Files changed (80) hide show
  1. {bitview_client-0.12.2 → bitview_client-0.13.0}/.gitignore +2 -1
  2. {bitview_client-0.12.2 → bitview_client-0.13.0}/PKG-INFO +11 -6
  3. {bitview_client-0.12.2 → bitview_client-0.13.0}/README.md +8 -3
  4. bitview_client-0.13.0/bitview_client/__init__.py +6883 -0
  5. bitview_client-0.13.0/bitview_client/py.typed +0 -0
  6. {bitview_client-0.12.2 → bitview_client-0.13.0}/pyproject.toml +2 -15
  7. bitview_client-0.12.2/.python-version +0 -1
  8. bitview_client-0.12.2/bitview_client/__init__.py +0 -16491
  9. bitview_client-0.12.2/tests/mempool_compat/.gitignore +0 -1
  10. bitview_client-0.12.2/tests/mempool_compat/AUDIT.md +0 -120
  11. bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_info.py +0 -131
  12. bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_txs.py +0 -99
  13. bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_txs_chain.py +0 -132
  14. bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_txs_mempool.py +0 -55
  15. bitview_client-0.12.2/tests/mempool_compat/addresses/test_address_utxo.py +0 -71
  16. bitview_client-0.12.2/tests/mempool_compat/addresses/test_validate_address.py +0 -83
  17. bitview_client-0.12.2/tests/mempool_compat/audit_prompt.md +0 -106
  18. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block.py +0 -52
  19. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_header.py +0 -52
  20. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_height.py +0 -62
  21. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_raw.py +0 -49
  22. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_status.py +0 -61
  23. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_txid_index.py +0 -71
  24. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_txids.py +0 -55
  25. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_txs.py +0 -73
  26. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_txs_start.py +0 -98
  27. bitview_client-0.12.2/tests/mempool_compat/blocks/test_block_v1.py +0 -80
  28. bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_height.py +0 -75
  29. bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_recent.py +0 -60
  30. bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_tip_hash.py +0 -48
  31. bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_tip_height.py +0 -47
  32. bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_v1_height.py +0 -87
  33. bitview_client-0.12.2/tests/mempool_compat/blocks/test_blocks_v1_recent.py +0 -63
  34. bitview_client-0.12.2/tests/mempool_compat/check_endpoints.py +0 -158
  35. bitview_client-0.12.2/tests/mempool_compat/conftest.py +0 -227
  36. bitview_client-0.12.2/tests/mempool_compat/fees/test_mempool_blocks.py +0 -45
  37. bitview_client-0.12.2/tests/mempool_compat/fees/test_precise.py +0 -39
  38. bitview_client-0.12.2/tests/mempool_compat/fees/test_recommended.py +0 -39
  39. bitview_client-0.12.2/tests/mempool_compat/general/test_difficulty_adjustment.py +0 -103
  40. bitview_client-0.12.2/tests/mempool_compat/general/test_historical_price.py +0 -106
  41. bitview_client-0.12.2/tests/mempool_compat/general/test_prices.py +0 -43
  42. bitview_client-0.12.2/tests/mempool_compat/mempool/test_fullrbf_replacements.py +0 -55
  43. bitview_client-0.12.2/tests/mempool_compat/mempool/test_mempool.py +0 -44
  44. bitview_client-0.12.2/tests/mempool_compat/mempool/test_recent.py +0 -36
  45. bitview_client-0.12.2/tests/mempool_compat/mempool/test_replacements.py +0 -53
  46. bitview_client-0.12.2/tests/mempool_compat/mempool/test_txids.py +0 -50
  47. bitview_client-0.12.2/tests/mempool_compat/mining/conftest.py +0 -17
  48. bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_fee_rates.py +0 -58
  49. bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_fees.py +0 -74
  50. bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_rewards.py +0 -73
  51. bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_sizes_weights.py +0 -92
  52. bitview_client-0.12.2/tests/mempool_compat/mining/test_blocks_timestamp.py +0 -52
  53. bitview_client-0.12.2/tests/mempool_compat/mining/test_difficulty_adjustments.py +0 -81
  54. bitview_client-0.12.2/tests/mempool_compat/mining/test_hashrate.py +0 -53
  55. bitview_client-0.12.2/tests/mempool_compat/mining/test_hashrate_pools.py +0 -49
  56. bitview_client-0.12.2/tests/mempool_compat/mining/test_pool.py +0 -73
  57. bitview_client-0.12.2/tests/mempool_compat/mining/test_pool_blocks.py +0 -47
  58. bitview_client-0.12.2/tests/mempool_compat/mining/test_pool_blocks_height.py +0 -61
  59. bitview_client-0.12.2/tests/mempool_compat/mining/test_pool_hashrate.py +0 -43
  60. bitview_client-0.12.2/tests/mempool_compat/mining/test_pools.py +0 -80
  61. bitview_client-0.12.2/tests/mempool_compat/mining/test_pools_period.py +0 -54
  62. bitview_client-0.12.2/tests/mempool_compat/mining/test_reward_stats.py +0 -58
  63. bitview_client-0.12.2/tests/mempool_compat/transactions/test_cpfp.py +0 -80
  64. bitview_client-0.12.2/tests/mempool_compat/transactions/test_post_tx.py +0 -55
  65. bitview_client-0.12.2/tests/mempool_compat/transactions/test_transaction_times.py +0 -105
  66. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx.py +0 -71
  67. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_hex.py +0 -53
  68. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_merkle_proof.py +0 -70
  69. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_merkleblock_proof.py +0 -58
  70. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_outspend.py +0 -79
  71. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_outspends.py +0 -59
  72. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_raw.py +0 -50
  73. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_rbf.py +0 -82
  74. bitview_client-0.12.2/tests/mempool_compat/transactions/test_tx_status.py +0 -77
  75. bitview_client-0.12.2/tests/test_basic.py +0 -73
  76. bitview_client-0.12.2/tests/test_hash_prefix.py +0 -63
  77. bitview_client-0.12.2/tests/test_metric_data.py +0 -496
  78. bitview_client-0.12.2/tests/test_tree.py +0 -89
  79. bitview_client-0.12.2/uv.lock +0 -1471
  80. {bitview_client-0.12.2 → bitview_client-0.13.0}/pydoc-markdown.yml +0 -0
@@ -3,7 +3,6 @@
3
3
 
4
4
  # Builds
5
5
  target
6
- websites/dist
7
6
  bridge/
8
7
  /ids.txt
9
8
  rust_out
@@ -13,8 +12,10 @@ rust_out
13
12
 
14
13
  # Ignored
15
14
  _*
15
+ !showcases/_*
16
16
  !__*.py
17
17
  /*.md
18
+ !/TODO.md
18
19
  /*.py
19
20
  /*.json
20
21
  /*.html
@@ -1,9 +1,9 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: bitview-client
3
- Version: 0.12.2
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/brk
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/brk/blob/main/packages/bitview_client/DOCS.md) | [Source](https://github.com/bitcoinresearchkit/brk/tree/main/packages/bitview_client)
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.get_block_by_height(800000)
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.split.close.usd.by.day1()
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/brk/blob/main/packages/bitview_client/DOCS.md) | [Source](https://github.com/bitcoinresearchkit/brk/tree/main/packages/bitview_client)
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.get_block_by_height(800000)
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.split.close.usd.by.day1()
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).