From 2cce4efa135892a72e78151fa7c5fa9d4df5969a 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 | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index f1e74b4b..2d0d326e 100644
--- a/README.md
+++ b/README.md
@@ -80,12 +80,29 @@ 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()
+```
+
+`request_data_async` requires [`aioconsole`](https://pypi.org/project/aioconsole/):
+```bash
+poetry add aioconsole --dev
+poetry run apython
+import examples
+await examples.request_data_async()
+```
+
 * Before submitting a merge requests, please check the static typing and tests.
 
 * Install dev dependencies
-- 
GitLab