swh.fuse

A tool to interact with the Software Heritage Filesystem (SwhFS); you can see The Software Heritage Filesystem (SwhFS): Integrating Source Code Archival with Development paper for an introduction.

Some details about the tool itself...

When mounted, the directory should have the following structure:

swhfs
├── archive/
├── cache/
├── origin/
└── README

For up-to-date information, you can read the README file.

With the complete setup, you are now ready to interact with the filesystem. The point of interest here is the archive/ directory which holds all of the objects in the merkle tree. You can see the model data from their documentation.

You can interact with it by accessing one of the repo through their SWHID.

ls swhfs/archive/${SWHID}

The tool lazily loads the repo, saving bandwidth and disk space.

Backlinks