Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

GitHub Actions Workflow Status GitHub License GitHub last commit

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/a tag support
  • JS support
    • <script> tag
    • Basic JS functionality from within Python
  • Custom divs support (e.g. ul and ol)
  • 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.

Metadata

Release files for pintes 0.6b0

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

Source distribution (sdist)

Source distribution for pintes 0.6b0
File Size Uploaded Provenance Actions
pintes-0.6b0.tar.gz 221.2 kB With provenance Details for pintes-0.6b0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pintes 0.6b0
File Interpreter ABI Platform Actions
pintes-0.6b0-py3-none-any.whl Python 3 none any Details for pintes-0.6b0-py3-none-any.whl

Total release size: 239.1 kB

Release files / pintes-0.6b0.tar.gz

Download URL pintes-0.6b0.tar.gz
Size 221.2 kB
Tags Source
SHA-256 checksum
How to use checksums
73d08fe2070801c13e5fddab4d2068185d90bf2bb7a59061e99f62972b299641
BLAKE2b-256 checksum
How to use checksums
a17a0df0e6fb812162c3477cd9e4ed2a6e0bbcdf34d64254676dcbeee35b34eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 14, 2025.

Transparency log

Release files / pintes-0.6b0-py3-none-any.whl

Download URL pintes-0.6b0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c12794858d61d62a8cf32afdcdda54feb6423650acf6b37007f0f6ed739d75fa
BLAKE2b-256 checksum
How to use checksums
fa82aeb15863e51f1ae36b1647f685897423c98dafe59137e1ac9b2e5fa2223a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 14, 2025.

Transparency log

Security for pintes 0.6b0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pintes-0.6b0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 14, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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