Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9343385
__init__.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
653 B
Subscribers
None
__init__.py
View Options
# Copyright (C) 2019-2020 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
typing
import
Any
,
Dict
def
register
()
->
Dict
[
str
,
Any
]:
from
swh.loader.git.loader
import
GitLoader
return
{
"task_modules"
:
[
"
%s
.tasks"
%
__name__
],
"loader"
:
GitLoader
,
}
def
register_from_disk
()
->
Dict
[
str
,
Any
]:
from
swh.loader.git.from_disk
import
GitLoaderFromDisk
return
{
"task_modules"
:
[],
"loader"
:
GitLoaderFromDisk
,
}
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jul 4, 1:29 PM (5 d, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3238285
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment