Skip to main content

bitview-client

Zero-dependency Python client for the Bitview Bitcoin analytics API.

Requires Python 3.9+.

PyPI | API Reference | Source

AI clients can use the same API through the official stateless, read-only MCP endpoint at mcp.bitview.space. No authentication is required.

Installation

pip install bitview-client
# or
uv add bitview-client

You can also copy bitview_client/__init__.py into a project. The client has no runtime dependencies; Pandas and Polars are only needed for their optional conversion helpers.

Quick start

from bitview_client import BitviewClient

# Use the public API or point the client at a self-hosted Bitview server.
client = BitviewClient("https://bitview.space")

# Mempool.space-compatible blockchain endpoints.
block_hash = client.get_block_by_height(800000)
tx = client.get_tx(
    "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
)

# Typed, chainable series access.
prices = (
    client.series.price.split.close.usd.by.day1()
    .tail(30)
    .fetch()
)

# Programmatic access when the series name is only known at runtime.
same_prices = client.series_endpoint("price_close", "day1").tail(30).fetch()

Series endpoints support integer and date slices, head(n), tail(n), skip(n).take(m), fetch_csv(), len(), and version().

Metadata

Release files for bitview-client 0.12.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bitview-client 0.12.2
File Size Uploaded
bitview_client-0.12.2.tar.gz 226.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bitview-client 0.12.2
File Interpreter ABI Platform
bitview_client-0.12.2-py3-none-any.whl Python 3 none any Details

Total release size: 325.8 kB

Release files / bitview_client-0.12.2.tar.gz

Download URL bitview_client-0.12.2.tar.gz
Size 226.3 kB
Tags Source
SHA-256 checksum
How to use checksums
616cbcefbeb9dac25d498322afadf295e89daa6873e5c6442ea4499834da6d67
BLAKE2b-256 checksum
How to use checksums
720ce21d0173a7e9fa39b76cd470c0068d3d6e94489678162d009051ac293459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bitview_client-0.12.2-py3-none-any.whl

Download URL bitview_client-0.12.2-py3-none-any.whl
Size 99.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e27c0c4c32db1e6bc1b7a3dfae8a51fd416343755a4a9afa64a6313dd4870aa2
BLAKE2b-256 checksum
How to use checksums
1b56b1f5d2f6b4059912b3c543e7711ba6a5d34ce62aedce4dd433cbb6fb5cfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.12.2 This release

2 release files

0.12.1

2 release files

0.12.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page