You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-9Lines changed: 35 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,23 +23,49 @@ pip install ethereum-hive
23
23
24
24
## Quick Start
25
25
26
-
Here's a basic example of how to use the Hive Python API:
26
+
### Start a Hive Development Server
27
+
28
+
```console
29
+
./hive --dev --client go-ethereum
30
+
```
31
+
32
+
### Basic Example
33
+
34
+
Here's a basic example of how to use the Hive Python API with Hive running in developer mode. It requires a [genesis file](https://github.com/ethereum/hive-python-api/blob/e4a1108f3a8feab4c0d638f1393a94319733ae89/src/hive/tests/genesis.json); please modify the path as required.
27
35
28
36
```python
29
-
from hive import Hive
30
-
from hive.client import Client
37
+
from pathlib import Path
38
+
39
+
from hive.simulation import Simulation
40
+
from hive.testing import HiveTestResult
41
+
42
+
# Create a simulation on a development hive server
For more detailed examples, check out the [unit tests](src/hive/tests/test_sanity.py) or explore the simulators in the [execution-spec-tests](https://github.com/ethereum/execution-spec-tests) repository.
0 commit comments