Print bundled Web Development Lab experiment source files (exp.show(1), exp.show('5a'), ...).
Project description
jampm
Print bundled Web Development Lab experiment source files from a single
import. Call exp.show(<number>) (or a string key like '5a') and every file
inside that experiment folder is printed to stdout, each prefixed with a
header showing its filename.
Install
pip install jampm
Quick start
from jampm import exp
exp.show(1) # prints every file inside Experiment-1
exp.show(2) # Experiment-2: event.html, index.html, style.css
exp.show(3) # Experiment-3: bootstrap.html
exp.show(4) # Experiment-4: index.html, script.js, style.css
exp.show('5a') # Experiment-5 / 5a: index.html, script.js, style.css
exp.show('5b') # Experiment-5 / 5b
exp.show(6) # Experiment-6: events.html, registration.html
exp.list() # list available experiment keys
exp.files('5a') # list file names inside a given experiment
Output format
For every file, the output is:
==========================
===== <filename> =====
path: <relative path>
==========================
<file contents>
Available experiments
| Key | Files |
|---|---|
| 1 | event.html |
| 2 | event.html, index.html, style.css |
| 3 | bootstrap.html |
| 4 | index.html, script.js, style.css |
| 5a | index.html, script.js, style.css |
| 5b | index.html, script.js, style.css |
| 6 | events.html, registration.html |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jampm-0.1.0.tar.gz.
File metadata
- Download URL: jampm-0.1.0.tar.gz
- Upload date:
- Size: 30.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc1871cfdec34558c8af16dd64ed1e4ca577d09b1d16dc1a3ab0961bbe9477d8
|
|
| MD5 |
d0326a8dc27e52a5f4696098b1c017fc
|
|
| BLAKE2b-256 |
5ddc02dc4879c1f8846225bb10574a683f79533168d4cc4b8292a12ae3c27c4c
|
File details
Details for the file jampm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jampm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 40.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63627379bd679ebdf03f357a0d93fe54b52a4d75c3c211980b0226b4a93c6e17
|
|
| MD5 |
a882e19c681619b2578ffeb352ebefee
|
|
| BLAKE2b-256 |
0e899404a4de1516c2e23a9b97aa83a734251fad899410561ca88d7533684f30
|