htmpl-template
Starter project for htmpl, this is based off of copier but includes a UI to manage the installed options. The available options include:
- Auth (login and registration pages)
- Themes
- Database services
The components you copy in are yours to change, we have based the desgin of this component library on shadcn where you 'install' the components you want and they are copied into your project. That way if you want to change anything, you simply modify the code to your liking.
If and when the base template changes you will be able to upgrade to the new one. Copier handles applying changes to the templated files and gives options to overwrite or produce a diff and allow you to apply the changes via git conflict resolution.
Getting Started
First you will need to install uv go get it now if you don't have it: https://docs.astral.sh/uv/
[!NOTE] Make sure you are not in an existing project folder before running this command.
Find a good location to install your project:
$ uvx htmpl init .
Installed 24 packages in 11ms
🎤 What is your project name?
frank
🎤 What is your Python module name?
frank
🎤 What theme to use?
dark
Copying from template version 0.1.0
The above command will create the project in a folder called frank that includes a Makefile to initialize and run the application.
# display the available commands:
$ make
# Runs uv sync and generates .env file for storing secrets for local dev
$ make setup
# Run the application locally
$ make dev
Open your browser and go to http://localhost:8000/admin/ this will allow you to view documentation on the available components and install them. Some of the components have dependencies that will need to be installed for python deps we run uv add <package> otherwise we'll run copier copier upgrade --data <options.selected>
Metadata
Release files for htmpl-template 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| htmpl_template-0.0.1.tar.gz | 70.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| htmpl_template-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.3 kB
Release files / htmpl_template-0.0.1.tar.gz
| Download URL | htmpl_template-0.0.1.tar.gz |
|---|---|
| Size | 70.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
447732ffd5522fe5c644d03c24a20e572e156688f23e185e286d837d597135c4
|
|
BLAKE2b-256 checksum How to use checksums |
63bc23e92ae0428ab1a456847e4e41fe625cb4d08a1fd1062801bd115db0fe70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / htmpl_template-0.0.1-py3-none-any.whl
| Download URL | htmpl_template-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d6bbe695d801dd4c2b13381e9ecbf16f80138a578a9b973af9a75f4693894f9
|
|
BLAKE2b-256 checksum How to use checksums |
1555c476a7afa00b12dbba779868af3a18a5c9b33bc03ad970eb251198487829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|