Skip to main content

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.

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.

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

pintes-0.6b0.tar.gz (221.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pintes-0.6b0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

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

Hashes for pintes-0.6b0.tar.gz
Algorithm Hash digest
SHA256 73d08fe2070801c13e5fddab4d2068185d90bf2bb7a59061e99f62972b299641
MD5 42634d143785c391fced3540aa27671e
BLAKE2b-256 a17a0df0e6fb812162c3477cd9e4ed2a6e0bbcdf34d64254676dcbeee35b34eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pintes-0.6b0.tar.gz:

Publisher: python-publish.yml on FormunaGit/Pintes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pintes-0.6b0-py3-none-any.whl
Algorithm Hash digest
SHA256 c12794858d61d62a8cf32afdcdda54feb6423650acf6b37007f0f6ed739d75fa
MD5 e9375de4275edc6f8b373cc296262680
BLAKE2b-256 fa82aeb15863e51f1ae36b1647f685897423c98dafe59137e1ac9b2e5fa2223a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pintes-0.6b0-py3-none-any.whl:

Publisher: python-publish.yml on FormunaGit/Pintes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page