Skip to content

Commit 1ec2b75

Browse files
committed
closes #26
1 parent 1624e65 commit 1ec2b75

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ All of the documentation is available directly as Jupyter Notebooks, for instanc
4141
To access the GitHub API, first create a `GhApi` object:
4242

4343
```python
44+
from ghapi.all import GhApi
4445
api = GhApi()
4546
```
4647

docs/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ <h2 id="How-to-use---Python">How to use - Python<a class="anchor-link" href="#Ho
127127

128128
<div class="inner_cell">
129129
<div class="input_area">
130-
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">api</span> <span class="o">=</span> <span class="n">GhApi</span><span class="p">()</span>
130+
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">ghapi.all</span> <span class="kn">import</span> <span class="n">GhApi</span>
131+
<span class="n">api</span> <span class="o">=</span> <span class="n">GhApi</span><span class="p">()</span>
131132
</pre></div>
132133

133134
</div>

index.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"metadata": {},
119119
"outputs": [],
120120
"source": [
121+
"from ghapi.all import GhApi\n",
121122
"api = GhApi()"
122123
]
123124
},
@@ -168,7 +169,7 @@
168169
"- [users](https://docs.github.com/en/free-pro-team@latest/rest/reference/users)"
169170
],
170171
"text/plain": [
171-
"<ghapi.core.GhApi at 0x7fe718ddbe50>"
172+
"<ghapi.core.GhApi at 0x7fb71858a3a0>"
172173
]
173174
},
174175
"execution_count": null,
@@ -210,7 +211,7 @@
210211
"- [git.get_tree](https://docs.github.com/rest/reference/git#get-a-tree)(owner, repo, tree_sha, recursive): *Get a tree*"
211212
],
212213
"text/plain": [
213-
"<ghapi.core._GhVerbGroup at 0x7fe718e68640>"
214+
"<ghapi.core._GhVerbGroup at 0x7fb6f804fa60>"
214215
]
215216
},
216217
"execution_count": null,

0 commit comments

Comments
 (0)