***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VRE-Repository-Connector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Center for Research Data Management
VRE-Repository-Connector
Commits
77084d17
Commit
77084d17
authored
1 year ago
by
Moser, Maximilian
Browse files
Options
Downloads
Patches
Plain Diff
Provide `download_all()` shorthand function
parent
86aa7a13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
v0.2.2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vre_repository_connector/__init__.py
+2
-1
2 additions, 1 deletion
vre_repository_connector/__init__.py
vre_repository_connector/auto.py
+5
-0
5 additions, 0 deletions
vre_repository_connector/auto.py
with
7 additions
and
1 deletion
vre_repository_connector/__init__.py
+
2
−
1
View file @
77084d17
"""
Library for connecting VRE of TU Wien with the research data repositories.
"""
from
.api
import
DBRepo
,
InvenioRDM
from
.auto
import
download
,
suggest_repository
,
upload
from
.auto
import
download
,
download_all
,
suggest_repository
,
upload
__all__
=
[
DBRepo
,
InvenioRDM
,
download
,
download_all
,
suggest_repository
,
upload
,
]
This diff is collapsed.
Click to expand it.
vre_repository_connector/auto.py
+
5
−
0
View file @
77084d17
...
...
@@ -149,6 +149,11 @@ def download(
service
.
clear_auth
()
def
download_all
(
url
:
str
)
->
List
[
str
]
|
str
|
None
:
"""
Download all files from a URL.
"""
return
download
(
url
,
all
=
True
,
interactive
=
False
)
def
upload
(
file_path
:
str
,
url
:
Optional
[
str
]
=
None
)
->
Tuple
[
Optional
[
str
],
Optional
[
str
],
Optional
[
str
]]:
...
...
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