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.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| d2lmf-0.0.6.tar.gz | 18.1 kB | Without provenance | Details for d2lmf-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| d2lmf-0.0.6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for d2lmf-0.0.6-py2.py3-none-any.whl |
Total release size: 27.2 kB
Release files / d2lmf-0.0.6.tar.gz
| Download URL | d2lmf-0.0.6.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca77e1db28e1d5a124dc24cae903c420edded2c6dd0e1a6362c6bbcfd02a554c
|
|
BLAKE2b-256 checksum How to use checksums |
3162bb5a7df55031fc0483eb4ad4dc53a2b981621c9f219efcb8a1a35ceeafc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / d2lmf-0.0.6-py2.py3-none-any.whl
| Download URL | d2lmf-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
57cb1965bacb0d44e6c40515ee5f6268543db612dc8c747861ad5b99928e0f92
|
|
BLAKE2b-256 checksum How to use checksums |
3d33d0a25eca7148c18ab347f23804475aef377b91ac5bb7c42402325a513565
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for d2lmf 0.0.6
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.