Skip to main content

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

Release files for alienHTML 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alienHTML 0.0.7
File Size Uploaded
alienHTML-0.0.7.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for alienHTML 0.0.7
File Interpreter ABI Platform
alienHTML-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / alienHTML-0.0.7.tar.gz

Download URL alienHTML-0.0.7.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7fa0f3147f88bea34bbcdccdea39a6fd1e73ed4e519c5687a5146688c3b7475b
BLAKE2b-256 checksum
How to use checksums
e1b557ee8e870134ae365ee4809b1b9ceabfc2df4c4963a18767156e8be75f62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / alienHTML-0.0.7-py3-none-any.whl

Download URL alienHTML-0.0.7-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0030699fd173048cefecf3a32966af69b6af578320c71cefc512b63474706cf4
BLAKE2b-256 checksum
How to use checksums
994443a3bf4762ebb4f7dbc82d87c0deb182e7768ab8114470166cda0ddc4d1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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