# 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:
```python
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
Raw data
{
"_id": null,
"home_page": "https://github.com/TomTheCodingGuy/alienHTML",
"name": "alienHTML",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "python,html,alien,alienHTML",
"author": "TomTheCodingGuy",
"author_email": "<tomb80940@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/e1/b5/57ee8e870134ae365ee4809b1b9ceabfc2df4c4963a18767156e8be75f62/alienHTML-0.0.7.tar.gz",
"platform": null,
"description": "# alienHtml\n- A Python package to help with HTML development.\n\n## Install:\n```\npip install alienHTML\n```\nLatest Version:\n```\npip install alienHTML==0.0.7\n```\n\n## Features:\n- Edit or create a HTML file.\n- Open HTML files in your browser.\n- Print the contents of the HTML file in the shell wth indentation. \n- Add Headings, Images and Pragraphs.\n\n## Example:\n```python\nfrom alienHTML import *\n\n# \"w\" is the mode to open, in this case write. \nmypage = WebPage(\"/path/to/file/to/create/or/edit\", \"w\", tabhead=\"Hello World\", bgcolour=\"powderblue\",icon=\"path/to/icon.ico\")\n# If you put it as \"a\" it switches to edit mode\n# For tabhead, bgcolour and icon, if not set it will automatically set itself to some defaults.\n\n# This creates a heading of the largest size as the number is one.\n# It will ask you where you want it in the <body> section of your code\nmypage.Heading(\"Hello World\",1)\n# Similar for images, just with different parameters. The second is the alt text.\nmypage.Image(\"/path/to/image.png\", \"Image!\")\n\nmypage.showfile() # Prints the contents of the file with line numbers and indentation.\nmypage.openpage() # Opens the HTML file in web browser.\t\t\t\t\t\t \n```\nOutputs:\n\n- Ask you where to put code for heading and image.\n- Prints the file in shell.\n- Opens the page in a web browser\n\n## To do:\n\n- Add more web page features.\n- Make the showfile function open the HTML file in web browser, so there is syntax highlighting.\n\n## Credits:\n\n- Made by TomTheCodingGuy\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Python package to help with HTML development.",
"version": "0.0.7",
"split_keywords": [
"python",
"html",
"alien",
"alienhtml"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "994443a3bf4762ebb4f7dbc82d87c0deb182e7768ab8114470166cda0ddc4d1e",
"md5": "ba3289048f1f35c2fde3e320845ced00",
"sha256": "0030699fd173048cefecf3a32966af69b6af578320c71cefc512b63474706cf4"
},
"downloads": -1,
"filename": "alienHTML-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ba3289048f1f35c2fde3e320845ced00",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5403,
"upload_time": "2023-03-12T16:50:59",
"upload_time_iso_8601": "2023-03-12T16:50:59.462393Z",
"url": "https://files.pythonhosted.org/packages/99/44/43a3bf4762ebb4f7dbc82d87c0deb182e7768ab8114470166cda0ddc4d1e/alienHTML-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e1b557ee8e870134ae365ee4809b1b9ceabfc2df4c4963a18767156e8be75f62",
"md5": "f88240dddc644847474c17f0f4f05837",
"sha256": "7fa0f3147f88bea34bbcdccdea39a6fd1e73ed4e519c5687a5146688c3b7475b"
},
"downloads": -1,
"filename": "alienHTML-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "f88240dddc644847474c17f0f4f05837",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3966,
"upload_time": "2023-03-12T16:51:01",
"upload_time_iso_8601": "2023-03-12T16:51:01.598076Z",
"url": "https://files.pythonhosted.org/packages/e1/b5/57ee8e870134ae365ee4809b1b9ceabfc2df4c4963a18767156e8be75f62/alienHTML-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-12 16:51:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "TomTheCodingGuy",
"github_project": "alienHTML",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "alienhtml"
}