py-geth is a Python library for running Go-Ethereum (geth) as a subprocess. It provides a convenient interface to manage Ethereum nodes, including downloading, installing, and interacting with geth. The current version is 6.4.0, supporting Python 3.8+. The library is actively maintained and follows the Ethereum release cadence.
pip install py-gethVerified import paths — ran on the pinned version, not inferred.
Starts a Geth node in developer mode with a pre-funded account and mining enabled.
Use `from geth import install_geth; install_geth()` before starting a process.
Manually download and sign the binary, or run `xattr -dr com.apple.quarantine /path/to/geth`.
Replace `python_executable='/path/to/geth'` with `geth_executable='/path/to/geth'`.
Always provide an absolute path for the data directory, e.g., `DevGethProcess('/absolute/path')`.