summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2022-10-27 12:52:08 -0500
committerJordan Cook <jordan.cook.git@proton.me>2023-01-13 14:22:31 -0600
commita296d287100b26f12e1bb9da267d33332d41967b (patch)
tree4b57983285589bcfc57627e2799550d68201fd2d /docs
parent9393c570377701c8cc673b2da368cfdf84f3c3b8 (diff)
downloadrequests-cache-a296d287100b26f12e1bb9da267d33332d41967b.tar.gz
Add example with requests per second graph
Diffstat (limited to 'docs')
-rw-r--r--docs/examples.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/examples.md b/docs/examples.md
index 3beba85..d193680 100644
--- a/docs/examples.md
+++ b/docs/examples.md
@@ -175,6 +175,33 @@ The following scripts can also be found in the
```
:::
+
+### Requests per second graph
+```{include} ../examples/rps_graph.py
+:start-line: 2
+:end-line: 7
+```
+
+:::{dropdown} Example
+:animate: fade-in-slide-down
+:color: primary
+:icon: file-code
+
+[benchmark.py](https://github.com/requests-cache/requests-cache/blob/main/examples/rps_graph.py)
+```{literalinclude} ../examples/rps_graph.py
+:lines: 9-
+```
+:::
+
+:::{dropdown} Screenshot
+:animate: fade-in-slide-down
+:color: info
+:icon: image
+
+![](../examples/rps_graph.png)
+
+:::
+
### Using with GitHub Actions
This example shows how to use requests-cache with [GitHub Actions](https://docs.github.com/en/actions).
Key points: