diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-06-17 12:54:32 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-06-17 13:57:59 -0500 |
commit | d9e246a2c8c25da0d7626df708cfcbf9725c5f8e (patch) | |
tree | c23dc948697990f61d7e4ce57eae27ff6d1752e4 /docs | |
parent | 6b464efd0aa273cd3450b3fe6895f04a4395f508 (diff) | |
download | requests-cache-d9e246a2c8c25da0d7626df708cfcbf9725c5f8e.tar.gz |
Add example of caching GitHub API requests with PyGitHub
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/examples.md b/docs/examples.md index 37e4dfc..d1ffba5 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -74,6 +74,19 @@ The following scripts can also be found in the ``` ::: +### PyGithub +```{include} ../examples/pygithub.py +:start-line: 2 +:end-line: 25 +``` + +:::{admonition} Example: [pygithub.py](https://github.com/requests-cache/requests-cache/blob/main/examples/pygithub.py) +:class: toggle +```{literalinclude} ../examples/pygithub.py +:lines: 27- +``` +::: + ### Multi-threaded requests ```{include} ../examples/threads.py :start-line: 2 |