Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-python
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
perxis
perxis-python
Merge requests
!9
Исправлена аннотация класса OAuth2Plugin, обновлены proto, перегенерирован код, обновлены примеры
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Исправлена аннотация класса OAuth2Plugin, обновлены proto, перегенерирован код, обновлены примеры
feature/upgrade
into
master
Overview
3
Commits
5
Pipelines
0
Changes
37
Merged
Andrei Biriukov
requested to merge
feature/upgrade
into
master
3 years ago
Overview
3
Commits
5
Pipelines
0
Changes
37
Expand
Created by: goshik-e
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0d4a3eb1
5 commits,
3 years ago
37 files
+
1057
−
12475
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
37
Search (e.g. *.vue) (Ctrl+P)
examples/collections_auth_client.py
+
3
−
4
Options
@@ -4,8 +4,7 @@ import grpc
from
oauthlib.oauth2
import
BackendApplicationClient
from
perxis.auth
import
OAuth2Plugin
from
perxis.collections_perxis.collections_pb2
import
ListRequest
from
perxis.collections_perxis.collections_pb2_grpc
import
CollectionsStub
from
perxis.collections
import
collections_pb2
,
collections_pb2_grpc
def
main
():
@@ -27,8 +26,8 @@ def main():
channel_credentials
,
call_credentials
)
with
grpc
.
secure_channel
(
'
envoy.perxis.pt.perx.ru:443
'
,
composite_credentials
)
as
channel
:
stub
=
CollectionsStub
(
channel
)
collections
=
stub
.
List
(
ListRequest
(
space_id
=
"
c
1mrvup3e6litup7tf0g
"
,
env_id
=
"
master
"
))
stub
=
collections_pb2_grpc
.
CollectionsStub
(
channel
)
collections
=
stub
.
List
(
collections_pb2
.
ListRequest
(
space_id
=
"
c
2qcp9cuaccmpj8lmom0
"
,
env_id
=
"
master
"
))
print
(
collections
)
Loading