FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rspace-client-python/rspace_client/utils.py at master · emichr/rspace-client-python · GitHub
emichr
/
rspace-client-python
Public
forked from
rspace-os/rspace-client-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rspace-client-python
/
rspace_client
/
utils.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (29 loc) · 843 Bytes
Breadcrumbs
rspace-client-python
/
rspace_client
/
utils.py
Copy path
File metadata and controls
35 lines (29 loc) · 843 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import
argparse
import
rspace_client
.
eln
.
eln
as
eln
import
rspace_client
.
inv
.
inv
as
inv
def
_parse_args
():
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"server"
,
help
=
"RSpace server URL (for example, https://community.researchspace.com)"
,
type
=
str
,
)
parser
.
add_argument
(
"apiKey"
,
help
=
"RSpace API key can be found on 'My Profile'"
,
type
=
str
)
args
=
parser
.
parse_args
()
return
args
def
createELNClient
():
"""
Parses command line arguments: server, apiKey
"""
args
=
_parse_args
()
client
=
eln
.
ELNClient
(
args
.
server
,
args
.
apiKey
)
return
client
def
createInventoryClient
():
"""
Parses command line arguments: server, apiKey
"""
args
=
_parse_args
()
client
=
inv
.
InventoryClient
(
args
.
server
,
args
.
apiKey
)
return
client
Back
|
FazBrowse Home
|
New Git URL