Skip to main content

Flask scaffold engine

Project description

Lombik

A scaffold engine for Flask — because starting from scratch is overrated.

Lombik exists to remove the boring parts of starting a Flask project. It gives you a ready-to-use structure so you can focus on building, not wiring things together.

It leans heavily into a hypermedia-first approach, using Jinja2, template filters, HTMX, and Tailwind to keep logic close to the UI and reduce frontend complexity.


What you get out of the box

  • Flask project structure pre-wired and ready to run
  • Simple authentication system
  • MySQL integration
  • Tailwind + HTMX setup
  • Error handling
  • CSRF protection + session expiry
  • Pre-imported common utilities
  • Base templates for desktop and mobile

Template filters (the fun part)

Lombik ships with a set of Jinja filters designed to keep your templates clean and expressive.

Dates & time handling

Instead of formatting timestamps in Python, you do it directly in the template:

{{ created_at | localtime }} → 2026-05-19 05:15
{{ created_at | onlydate }} → 2026-05-19
{{ created_at | onlytime }} → 05:15
{{ created_at | shortdatetime }} → May 19 05:15

Everything defaults to localtime, meaning UTC from the backend is automatically shown in the user’s timezone.

Lombik expects the user’s timezone to be available via g.


String helpers

Make frontend display logic less painful:

{{ g.user.full_name | proper }}

john_doe → John Doe

{{ g.user.first_name | possessive }}

john → john's
lucas → lucas'

You can chain them:

{{ g.user.full_name | proper | possessive }}

john_doe → John Doe's


Installation

pip install lombik


Create a project

lombik createapp myapp cd myapp flask run --debug

This generates a full application structure so you can start immediately.


Database setup

Lombik uses MySQL by default.

  1. Update your .env with your database credentials
  2. Initialize the database:

flask initdb

  1. Create your admin user:

flask superuser

After that, you can log in and start building.

Note: the auth system is intentionally simple. It’s meant for development scaffolding, not production security.


Models

When adding new models, don’t forget to register them:

models/__init__.py

Otherwise they won’t be picked up.

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

lombik-0.1.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

lombik-0.1.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file lombik-0.1.1.tar.gz.

File metadata

  • Download URL: lombik-0.1.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for lombik-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1b2ba8a75bd44eb989a9989241f19cf9de0e86ee57d2669cc360708295cd72e0
MD5 7761163186775ea41ed941d70aae8d7c
BLAKE2b-256 5a8b4e8741f91b4c625362650d42dcfed15360405526a9d47fee4b53b459122c

See more details on using hashes here.

File details

Details for the file lombik-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lombik-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for lombik-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f41e03730f4d8f91e1bba2c272bf81f06637c0d95f5b859f7ab75974641523f3
MD5 b732efacbf52474e225b9d825b367ef7
BLAKE2b-256 15301b6ecae2366720c230582c269464a4c1328d4326a86ccf1e53c52f4350cd

See more details on using hashes here.

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