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.5

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.5
File Size Uploaded Provenance Actions
d2lmf-0.0.5.tar.gz 18.1 kB Without provenance Details for d2lmf-0.0.5.tar.gz

Built distribution (wheel)

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

Total release size: 27.1 kB

Release files / d2lmf-0.0.5.tar.gz

Download URL d2lmf-0.0.5.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d4d1279a1a17586de056397f86025f224d369210588cabdd7fd83805a3f55af5
BLAKE2b-256 checksum
How to use checksums
6b2e2d16451c70a490345f945c64992287dc36c02c3c898daba84540191f4de3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL d2lmf-0.0.5-py2.py3-none-any.whl
Size 9.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a7f065cd10686c1776acfdd125dc760dced789350cb140d1ac8263236277d948
BLAKE2b-256 checksum
How to use checksums
f48eda0177cafee1481389f47cd84a80f8c2dad9d43f9930b73ffc6de22260a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for d2lmf 0.0.5

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