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().

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitview_client-0.12.0.tar.gz (226.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitview_client-0.12.0-py3-none-any.whl (99.3 kB view details)

Uploaded Python 3

File details

Details for the file bitview_client-0.12.0.tar.gz.

File metadata

  • Download URL: bitview_client-0.12.0.tar.gz
  • Upload date:
  • Size: 226.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for bitview_client-0.12.0.tar.gz
Algorithm Hash digest
SHA256 05f5b573b04916c2b7b928258dd4d9f76cde77e62b7eeb61a8f3807cc606ff09
MD5 3571212f8e29d694e7aafc98c86e5242
BLAKE2b-256 2998ebd52309cb26e0aae2bd6521e7a515ff238d9480c3c7ab4d3f0ffa7bd56a

See more details on using hashes here.

File details

Details for the file bitview_client-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: bitview_client-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 99.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for bitview_client-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c16bf02c1b2bf97f353147e74fa3875c3b2a65c82c459b43a53d1772e7442491
MD5 3f1268a3a52e67cd0fcb330bfbe0a422
BLAKE2b-256 223595be0877c13cf5f1f186acf7ab5da424fb97e45650f9f25340ae5338f4e3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.12.0 This release

2 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