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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
d33e7d31
Commit
d33e7d31
authored
6 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[enh] enhance Readme.rst and a doctring
parent
90a88964
No related branches found
No related tags found
No related merge requests found
Pipeline
#5034
passed
6 years ago
Stage: github-sync
Stage: build
Stage: test
Stage: release
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.rst
+4
-2
4 additions, 2 deletions
README.rst
duniterpy/key/ascii_armor.py
+10
-14
10 additions, 14 deletions
duniterpy/key/ascii_armor.py
with
14 additions
and
16 deletions
README.rst
+
4
−
2
View file @
d33e7d31
...
...
@@ -65,7 +65,7 @@ Development
make check
* Run all unit tests with::
* Run all unit tests
(builtin module unittest)
with::
make tests
...
...
@@ -76,6 +76,8 @@ Development
Documentation
-------------
When writing docstrings, use the rst format recommended by https://www.python.org/dev/peps/pep-0287/#docstring-significant-features
* Install Sphinx::
pip install -r requirements_dev.txt
...
...
@@ -85,7 +87,7 @@ Documentation
make docs
* HTML Documentation is generated in docs/_build/html folder.
* `Examples <https://git.duniter.org/clients/python/duniterpy/tree/master/examples>`_
* `Examples
are more fun than a TLTR doc
<https://git.duniter.org/clients/python/duniterpy/tree/master/examples>`_
Packaging and deploy
--------------------
...
...
This diff is collapsed.
Click to expand it.
duniterpy/key/ascii_armor.py
+
10
−
14
View file @
d33e7d31
...
...
@@ -235,21 +235,17 @@ class AsciiArmor:
def
parse
(
ascii_armor_message
:
str
,
signing_key
:
Optional
[
SigningKey
]
=
None
,
sender_pubkeys
:
Optional
[
List
[
str
]]
=
None
)
->
dict
:
"""
Return a dict with parsed content (decrypted message, signature validation)
Return a dict with parsed content (decrypted message, signature validation)
::
{
'
message
'
:
{
'
fields
'
: {},
'
content
'
: str,
},
'
signatures
'
: [
{
'
pubkey
'
: str,
'
valid
'
: bool, fields: {}}
]
}
:param ascii_armor_message: The Ascii Armor Message Block including BEGIN and END headers
...
...
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