Skip to main content

Create HTML files with embedded source code & images

Project description

Python tool for creating HTML specific layouts with source code files. Uses CSU images as the default. The source code is formatted with a javasript library to be ‘pretty’

Here are some examples (Im on OSX):

  • Create a 6 part assignment (very basic no source)

essahtmlgen –destination ~/Desktop –name bayleaf –id 2631542 –parts 6 –assignment 1

This will create ‘Assignment1’ on the desktop with 6 basic parts.

  • Create a the 3 part assignment 1 with a source

A source directory contains folders which will become named parts (as well as the .html versions). The files in each directory will be used to compose the specfic parts html file. Java code will turn into pretty embedded source code. Text code will turn into paragraph tags. Pictures will be copied, linked and embedded (.png / .jpg). There is no order right now so you may have to play around with it after but generally it follows the directory structure.

Create a source directory structured like this:

Assignment0Files ->

FirstPart ->

data.txt

JavaCode.java

screenshot.png

SecondPart ->

file.txt

essahtmlgen –destination ~/Desktop –name bayleaf –id 2631542 –parts 2 –assignment 1 –source /path/to/Assignment0Files

This will create ‘Assignment1’ on the desktop with two parts: FirstPart and SecondPart.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for essahtmlgen, version 4.3
Filename, size File type Python version Upload date Hashes
Filename, size essahtmlgen-4.3-py3-none-any.whl (730.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size essahtmlgen-4.3.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page