A Python-based static HTML page generator similar to TKinter.
Project description
Pintes
HTML is too hard, let's write the website in Python!
Pintes is a tool made in Python that allows users to develop static HTML pages with ease.
Why?
- The tool itself can be pretty useful in some cases, such as for a prototype or a simple GUI for something like pywebview.
- At first, the name "Pintes" was a joke but now doubles as a play on the word "pint", a unit of liquid.
- In Pintes, a pint is what holds your elements.
How?
Pintes internally uses a list that the tag create functions append to. This list is then joined and written to a file after the necessary tags are added.
Usage
As of 0.1:PRERELEASE, Pintes is not on PyPI. And since I don't understand how to use setup.py, you'll have to clone the repository and use the pintes.py file as a module.
As of 0.2.alpha.1 (0.2a1), Pintes is now on PyPI. You can install it using pip install pintes and use it as a module.
Check out the demo folder for a demo on how to use Pintes.
What's available?
- Most HTML tags
- Divs support
- Classes support
- CSS support
- Image support
- Anchor/
atag support - JS support
-
<script>tag - Basic JS functionality from within Python
-
- Custom divs support (e.g.
ulandol) - Self-closing tags support (e.g.
br)
Am I missing something? Help Pintes and make an issue!
License
The license for Pintes is the GNU General Public License v3.0. You can view the license here in the LICENSE file or here.
Because of the license, Pintes is free to use, modify, and distribute. However, you must provide the source code and the license with the distribution if you modify it.
Contributing
If you want to contribute to Pintes, you can fork the repository and make a pull request. Don't know where to start? I recommend just reading through the code and adding features that haven't been added yet.
Nix users (and by extent, NixOS users) can take advantage of the shell.nix file. Just cd into the project and run nix-shell. It'll take care of everything; installing the required packages, setting up the venv if needed and activating it, all in a temporary environment that won't affect your system.
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 pintes-0.6b0.tar.gz.
File metadata
- Download URL: pintes-0.6b0.tar.gz
- Upload date:
- Size: 221.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d08fe2070801c13e5fddab4d2068185d90bf2bb7a59061e99f62972b299641
|
|
| MD5 |
42634d143785c391fced3540aa27671e
|
|
| BLAKE2b-256 |
a17a0df0e6fb812162c3477cd9e4ed2a6e0bbcdf34d64254676dcbeee35b34eb
|
Provenance
The following attestation bundles were made for pintes-0.6b0.tar.gz:
Publisher:
python-publish.yml on FormunaGit/Pintes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pintes-0.6b0.tar.gz -
Subject digest:
73d08fe2070801c13e5fddab4d2068185d90bf2bb7a59061e99f62972b299641 - Sigstore transparency entry: 763886374
- Sigstore integration time:
-
Permalink:
FormunaGit/Pintes@5806ec34e9424057a4c85d90a08d4b35d8237d21 -
Branch / Tag:
refs/tags/v0.6.beta - Owner: https://github.com/FormunaGit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5806ec34e9424057a4c85d90a08d4b35d8237d21 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pintes-0.6b0-py3-none-any.whl.
File metadata
- Download URL: pintes-0.6b0-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c12794858d61d62a8cf32afdcdda54feb6423650acf6b37007f0f6ed739d75fa
|
|
| MD5 |
e9375de4275edc6f8b373cc296262680
|
|
| BLAKE2b-256 |
fa82aeb15863e51f1ae36b1647f685897423c98dafe59137e1ac9b2e5fa2223a
|
Provenance
The following attestation bundles were made for pintes-0.6b0-py3-none-any.whl:
Publisher:
python-publish.yml on FormunaGit/Pintes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pintes-0.6b0-py3-none-any.whl -
Subject digest:
c12794858d61d62a8cf32afdcdda54feb6423650acf6b37007f0f6ed739d75fa - Sigstore transparency entry: 763886375
- Sigstore integration time:
-
Permalink:
FormunaGit/Pintes@5806ec34e9424057a4c85d90a08d4b35d8237d21 -
Branch / Tag:
refs/tags/v0.6.beta - Owner: https://github.com/FormunaGit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5806ec34e9424057a4c85d90a08d4b35d8237d21 -
Trigger Event:
push
-
Statement type: