Skip to main content

Motivation

It’s frustrating dealing with the zip files full of assignment submissions that you get from D2L.

  • Merging all of a student’s submissions into a single folder is tedious.

  • Navigating submissions on the command line sucks, because each directory name starts with a long number.

  • Extracting all the zip files, tar archives, and 7z archives that students submit adds a needless extra step to marking.

I’ve found this tool useful for eliminating those annoyances, and I hope you will too.

How to Use

This is the most common command I use:

d2lmf extract -xjcm "Assignment 1 Download Oct 11, 2015 803 PM.zip" A1/T01

This extracts the submissions from the zip folder into the directory A1/T01. The -x specifies that we want to extract any zip, rar, tar, or 7z archives that students submitted. The -j deletes ‘junk’ like .DS_Store. The -c collapses needlessly nested directories. Finally, the -m merges all submitted files into a single directory for each student. Cool!

On Windows, you may need to invoke d2lmf as a Python module, like so:

python -m d2lmf extract -xjcm "Assignment 1 Download Oct 11, 2015 803 PM.zip" A1/T01

How to Install

Ubuntu

sudo apt-get install python-pip
sudo pip install d2lmf

OSX

curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
sudo python get-pip.py
sudo pip install d2lmf

Windows

First, download and install Python 2.7 from https://www.python.org/downloads/

Then, install d2lmf with the command below:

python -m pip install d2lmf

Dependencies

The extraction of rar and 7z archives depends on external tools. If you do not have a rar or 7z utility installed, those archives will be skipped.

On Windows, I suggest installing 7-Zip. On Ubuntu, p7zip is the equivalent, and it can be installed with sudo apt-get install p7zip-full. p7zip is also available for OSX, and can be installed from homebrew with brew install p7zip.

Release Status

This software is in beta. There may be bugs, and the interface may undergo significant changes between releases.

Metadata

Release files for d2lmf 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for d2lmf 0.0.7
File Size Uploaded Provenance Actions
d2lmf-0.0.7.tar.gz 19.0 kB Without provenance Details for d2lmf-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for d2lmf 0.0.7
File Interpreter ABI Platform Actions
d2lmf-0.0.7-py2.py3-none-any.whl Python 3, Python 2 none any Details for d2lmf-0.0.7-py2.py3-none-any.whl

Total release size: 28.2 kB

Release files / d2lmf-0.0.7.tar.gz

Download URL d2lmf-0.0.7.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
44bfcb4f090be0d28fcbbcd96dcb4d14b4aa46dc92cb7ab83f7ef983ea6a42c1
BLAKE2b-256 checksum
How to use checksums
0f387cf1e8d343ad8a1390b82a6c27ed5057e5368556f6941d7c20517ce7a7b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / d2lmf-0.0.7-py2.py3-none-any.whl

Download URL d2lmf-0.0.7-py2.py3-none-any.whl
Size 9.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
069097f5605eafefad18f80a8bbfd5fc96c7a3183a03f3adebfc32ebcb401ace
BLAKE2b-256 checksum
How to use checksums
28ccb20466fc4f5f81e3ae37c6069154d6f45976ccf8e3bc2efbe19679fc0537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for d2lmf 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page