From 55d3cb6dbb7f662fee15ba6bd24879021cb74429 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Thu, 6 May 2021 23:16:57 +0200 Subject: [PATCH] [doc] #160: Document examples usage from Python interpreter --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1e74b4b..4a51a39d 100644 --- a/README.md +++ b/README.md @@ -80,12 +80,21 @@ Black, the formatting tool, requires Python 3.6 or higher. poetry install --no-dev ``` -* Have a look at the examples folder -* Run examples from parent folder +### Examples +* Have a look at the `examples` folder +* Run examples from parent folder directly ```bash poetry run python examples/request_data.py ``` +Or from Python interpreter: +```bash +poetry run python +>>> import examples +>>> help(examples) +>>> examples.create_public_key() +``` + * Before submitting a merge requests, please check the static typing and tests. * Install dev dependencies -- GitLab