Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8322605
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
README.md
View Options
swh
-
loader
-
git
==============
The
Software
Heritage
Git
Loader
is
a
tool
and
a
library
to
walk
a
local
Git
repository
and
inject
into
the
SWH
dataset
all
contained
files
that
weren
'
t
known
before
.
License
-------
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
.
See
top
-
level
LICENSE
file
for
the
full
text
of
the
GNU
General
Public
License
along
with
this
program
.
Dependencies
------------
###
Runtime
-
python3
-
python3
-
dulwich
-
python3
-
retrying
-
python3
-
swh
.
core
-
python3
-
swh
.
model
-
python3
-
swh
.
storage
-
python3
-
swh
.
scheduler
###
Test
-
python3
-
nose
Requirements
------------
-
implementation
language
,
Python3
-
coding
guidelines
:
conform
to
PEP8
-
Git
access
:
via
dulwich
Configuration
-------------
You
can
run
the
loader
from
a
remote
origin
(*
loader
*)
or
from
an
origin
on
disk
(*
from_disk
*)
directly
by
calling
:
```
python3
-
m
swh
.
loader
.
git
.{
loader
,
from_disk
}
```
###
Location
Both
tools
expect
a
configuration
file
.
Either
one
of
the
following
location
:
-
/
etc
/
softwareheritage
/
-
~/.
config
/
swh
/
-
~/.
swh
/
Note
:
Will
call
that
location
$
SWH_CONFIG_PATH
###
Configuration
sample
Respectively
the
loader
from
a
remote
(
`
git
.
yml
`
)
and
the
loader
from
a
disk
(
`
git
-
disk
.
yml
`
),
$
SWH_CONFIG_PATH
/
loader
/
git
{-
disk
}.
yml
:
```
storage
:
cls
:
remote
args
:
url
:
http
:
//localhost:5002/
```
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 3, 7:39 AM (1 w, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3277824
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment