Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
2cce4efa
Commit
2cce4efa
authored
4 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[doc]
#160
: Document examples usage from Python interpreter
parent
3ec03df3
No related branches found
No related tags found
No related merge requests found
Pipeline
#12133
passed
4 years ago
Stage: checks
Stage: tests
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+19
-2
19 additions, 2 deletions
README.md
with
19 additions
and
2 deletions
README.md
+
19
−
2
View file @
2cce4efa
...
@@ -80,12 +80,29 @@ Black, the formatting tool, requires Python 3.6 or higher.
...
@@ -80,12 +80,29 @@ Black, the formatting tool, requires Python 3.6 or higher.
poetry
install
--no-dev
poetry
install
--no-dev
```
```
*
Have a look at the examples folder
### Examples
*
Run examples from parent folder
*
Have a look at the
`examples`
folder
*
Run examples from parent folder directly
```
bash
```
bash
poetry run python examples/request_data.py
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.
*
Before submitting a merge requests, please check the static typing and tests.
*
Install dev dependencies
*
Install dev dependencies
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment