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_hash_by_height(800000)
tx = client.get_tx(
    "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
)

# Typed, chainable series access.
prices = (
    client.series.price.close.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().

A value is None where it is missing (mostly a date period without blocks) or undefined (a NaN, or a ratio over zero). The type hints say exactly where: Optional at the indexes where a value can be missing, and everywhere for value types that can be undefined (floats, Cents, ratios, parts per million).

Metadata

Release files for bitview-client 0.13.0

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.13.0
File Size Uploaded Provenance Actions
bitview_client-0.13.0.tar.gz 58.5 kB Without provenance Details for bitview_client-0.13.0.tar.gz

Built distribution (wheel)

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

Total release size: 117.4 kB

Release files / bitview_client-0.13.0.tar.gz

Download URL bitview_client-0.13.0.tar.gz
Size 58.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7e2076a70496b92f862b1f0bca7a1affae22bf8b2551eec11c7f425b8cc1f382
BLAKE2b-256 checksum
How to use checksums
546a57587cd6b1269ed61407493495e2c5c9e00baef0e572600cd30d95e49fc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.13.0-py3-none-any.whl

Download URL bitview_client-0.13.0-py3-none-any.whl
Size 58.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0d4edf7fc62332856cab2351918ae81a20e1c40f25fb5a86d571216ca442d23
BLAKE2b-256 checksum
How to use checksums
19fc66d269c604e80adaa3fe45ab44429935a4755eb84b511f2d32672a71f23e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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}

Security for bitview-client 0.13.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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