Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

verystable

(Because it's not very stable.)

This project contains a number of useful Python bindings for interaction with bitcoin.

Eventually it will contain a gallery of examples for doing useful things like interacting with the P2P network and building interesting scripts.

[!WARNING] This project is not maintained with use of real (mainnet) funds in mind. The bulk of the code comes from a test framework that is intended for use with regtest only. You might lose money using this!

Notably, this project copies the Bitcoin Core functional test framework in its entirety for use, which contains a number of helpful utilities.

This gives us good utilities for interacting with the P2P layer (p2p.P2PInterface) as well as handling process-level bitcoind invocation (test_node.TestNode).

This module could help with a variety of tasks:

  • experimenting with script,
  • demonstrating proposals,
  • building a local relay which adapts the user's choice of protocol to bitcoin P2P messages,
  • monitoring via the P2P network,
  • programmatic management of bitcoind instances,
  • general utilities related to bitcoin,
  • and more.

Installation

pip install verystable

or from source:

$ git clone https://github.com/jamesob/verystable.git
$ cd verystable
$ pip install -e .

Bitcoin Core test utilities (among other things) are then importable:

$ python
>>> import verystable
>>> verystable.core.p2p.MAGIC_BYTES
{'mainnet': b'\xf9\xbe\xb4\xd9',
 'testnet3': b'\x0b\x11\t\x07',
 'regtest': b'\xfa\xbf\xb5\xda',
 'signet': b'\n\x03\xcf@'}

Examples

Examples are contained in examples/.

Running tests

# with docker
make docker-pull
make test

# without docker
pip installe -e .[tests]
pytest verystable
ruff verystable

Adding tests

Just add a function prefixed with pytest in any file and it will be collected by the py.test runner.

Pulling from upstream

To update the imported Bitcoin Core functional test framework code,

  • run ./pull-from-upstream.sh <bitcoin-core-repo-path>
  • examine/commit the diff
  • bump the pyproject.toml version number if needed

Metadata

Release files for verystable 28.1.0.dev0

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

Source distribution (sdist)

Source distribution for verystable 28.1.0.dev0
File Size Uploaded Provenance
verystable-28.1.0.dev0.tar.gz 132.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for verystable 28.1.0.dev0
File Interpreter ABI Platform
verystable-28.1.0.dev0-py3-none-any.whl Python 3 none any Details

Total release size: 281.1 kB

Release files / verystable-28.1.0.dev0.tar.gz

Download URL verystable-28.1.0.dev0.tar.gz
Size 132.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fc7a1508a387840d85544f5fbe7a0696adbccb0be81640e72921106e37696fa5
BLAKE2b-256 checksum
How to use checksums
125502a1ed1859ae97090a97aa8e867885f6adc96eaeb705bafde5b574cb44e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / verystable-28.1.0.dev0-py3-none-any.whl

Download URL verystable-28.1.0.dev0-py3-none-any.whl
Size 148.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3e8e3cd44bcc3b686fc74462a5b77e6bda344f8b94ef5fe805a9f8e243e6a6d
BLAKE2b-256 checksum
How to use checksums
0cd6fbba1192ce44f19c61f40eddfc00a4c1e77eebfc7c3b912852cdb9b05b1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for verystable 28.1.0.dev0

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