Skip to content

Examples

Examples are meant to illustrate usage of flow-py-sdk. They can be found here

Running The examples

In case you want to debug the examples, or you just want to see them in action you can use the following steps.

1. Prerequisites

The first step is to install the dependencies of flow-py-sdk with poetry. To do this run the following command on the root of the checkout.

poetry install

After that start the flow emulator in ./example directory (because that is where the flow.json the emulator configuration is), using:

flow emulator

2. Runing examples

To run all the examples use:

poetry run examples

To run specific examples you can use the tag of the examples:

poetry run examples [ExampleTag]

e.g.:

poetry run examples T.1. T.2. S.4.