Python package to help with HTML development.
Project description
alienHtml
- A Python package to help with HTML development.
Install:
pip install alienHTML
Latest Version:
pip install alienHTML==0.0.7
Features:
- Edit or create a HTML file.
- Open HTML files in your browser.
- Print the contents of the HTML file in the shell wth indentation.
- Add Headings, Images and Pragraphs.
Example:
from alienHTML import *
# "w" is the mode to open, in this case write.
mypage = WebPage("/path/to/file/to/create/or/edit", "w", tabhead="Hello World", bgcolour="powderblue",icon="path/to/icon.ico")
# If you put it as "a" it switches to edit mode
# For tabhead, bgcolour and icon, if not set it will automatically set itself to some defaults.
# This creates a heading of the largest size as the number is one.
# It will ask you where you want it in the <body> section of your code
mypage.Heading("Hello World",1)
# Similar for images, just with different parameters. The second is the alt text.
mypage.Image("/path/to/image.png", "Image!")
mypage.showfile() # Prints the contents of the file with line numbers and indentation.
mypage.openpage() # Opens the HTML file in web browser.
Outputs:
- Ask you where to put code for heading and image.
- Prints the file in shell.
- Opens the page in a web browser
To do:
- Add more web page features.
- Make the showfile function open the HTML file in web browser, so there is syntax highlighting.
Credits:
- Made by TomTheCodingGuy
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alienHTML-0.0.7.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file alienHTML-0.0.7.tar.gz
.
File metadata
- Download URL: alienHTML-0.0.7.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fa0f3147f88bea34bbcdccdea39a6fd1e73ed4e519c5687a5146688c3b7475b |
|
MD5 | f88240dddc644847474c17f0f4f05837 |
|
BLAKE2b-256 | e1b557ee8e870134ae365ee4809b1b9ceabfc2df4c4963a18767156e8be75f62 |
File details
Details for the file alienHTML-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: alienHTML-0.0.7-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0030699fd173048cefecf3a32966af69b6af578320c71cefc512b63474706cf4 |
|
MD5 | ba3289048f1f35c2fde3e320845ced00 |
|
BLAKE2b-256 | 994443a3bf4762ebb4f7dbc82d87c0deb182e7768ab8114470166cda0ddc4d1e |