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
1a2726c7
Commit
1a2726c7
authored
5 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[fix]
#58
fix package api.ws2p after rebase
parent
4805d0b6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
duniterpy/api/ws2p/__init__.py
+25
-0
25 additions, 0 deletions
duniterpy/api/ws2p/__init__.py
duniterpy/api/ws2p/requests.py
+2
-5
2 additions, 5 deletions
duniterpy/api/ws2p/requests.py
with
27 additions
and
5 deletions
duniterpy/api/ws2p/__init__.py
0 → 100644
+
25
−
0
View file @
1a2726c7
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Authors:
# Caner Candan <caner@candan.fr>, http://caner.candan.fr
# Inso <insomniak.fr at gmail.com>
import
logging
from
.
import
network
,
requests
__all__
=
[
"
network
"
,
"
requests
"
]
PROTOCOL_VERSION
=
1
logger
=
logging
.
getLogger
(
"
duniter
"
)
This diff is collapsed.
Click to expand it.
duniterpy/api/ws2p/requests.py
+
2
−
5
View file @
1a2726c7
import
json
import
json
import
re
import
re
from
typing
import
Optional
from
duniterpy.helpers
import
get_ws2p_challenge
from
duniterpy.api.bma.blockchain
import
BLOCK_SCHEMA
,
BLOCKS_SCHEMA
from
duniterpy.api.bma.blockchain
import
BLOCK_SCHEMA
,
BLOCKS_SCHEMA
ERROR_RESPONSE_SCHEMA
=
{
ERROR_RESPONSE_SCHEMA
=
{
...
@@ -96,7 +93,7 @@ REQUIREMENTS_SCHEMA = {
...
@@ -96,7 +93,7 @@ REQUIREMENTS_SCHEMA = {
},
},
"
pendingCerts
"
:
{
"
pendingCerts
"
:
{
"
type
"
:
"
array
"
,
"
type
"
:
"
array
"
,
"
items
"
:
{
"
items
"
:
{
"
type
"
:
"
object
"
,
"
type
"
:
"
object
"
,
"
properties
"
:
{
"
properties
"
:
{
"
block
"
:
{
"
type
"
:
"
number
"
},
"
block
"
:
{
"
type
"
:
"
number
"
},
...
@@ -118,7 +115,7 @@ REQUIREMENTS_SCHEMA = {
...
@@ -118,7 +115,7 @@ REQUIREMENTS_SCHEMA = {
},
},
"
pendingMemberships
"
:
{
"
pendingMemberships
"
:
{
"
type
"
:
"
array
"
,
"
type
"
:
"
array
"
,
"
items
"
:
{
"
items
"
:
{
"
type
"
:
"
object
"
,
"
type
"
:
"
object
"
,
"
properties
"
:
{
"
properties
"
:
{
"
block
"
:
{
"
type
"
:
"
string
"
},
"
block
"
:
{
"
type
"
:
"
string
"
},
...
...
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