Skip to main content
Pre-release

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

Lektor

CI/CD Badge PyPI version PyPI - Python Version Code Style: Black Join the chat at https://gitter.im/lektor/lektor

Lektor is a static website generator. It builds out an entire project from static files into many individual HTML pages and has a built-in admin UI and minimal desktop app.

To see how it works look at the top-level example/ folder, which contains a showcase of the wide variety of Lektor's features.

For a more complete example look at the lektor/lektor-website repository, which contains the source code for the official Lektor website.

How do I use this?

For installation instructions head to the official documentation:

Want to develop on Lektor?

This gets you started (assuming you have Python >= 3.10, npm, and uv installed):

$ git clone https://github.com/lektor/lektor
$ cd lektor
$ python -m venv _venv
$ . _venv/bin/activate

# pip>=25.1 is required for PEP 735 support
$ pip install -U "pip>=25.1"

# NB: this step requires that npm is installed (see below)
$ pip install --group dev --editable .

# If you plan on committing:
$ uv run prek install

# Run the Lektor server
$ export LEKTOR_DEV=1
$ cp -r example example-project
$ lektor --project example-project server

If you want to run the whole test suite, under various versions of python, etc. (you'll need tox installed):

$ tox

Or run the tests directly in your dev environment

$ pytest [...]

[!NOTE] The admin front-end resources (e.g. .js and .css files) in lektor/admin/static get built as part of the python distribution build process. This happens, e.g., when running pip install -e .

That magic may be disabled (you might want to do this if, e.g., npm is not available in your dev environment) by setting the HATCH_BUILD_NO_HOOKS environment variable during the build. E.g.

HATCH_BUILD_NO_HOOKS=true pip install --group dev --editable .

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lektor-3.4.0b15.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

lektor-3.4.0b15-py3-none-any.whl (813.1 kB view details)

Uploaded Python 3

File details

Details for the file lektor-3.4.0b15.tar.gz.

File metadata

  • Download URL: lektor-3.4.0b15.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for lektor-3.4.0b15.tar.gz
Algorithm Hash digest
SHA256 7407adcbc80734c563d033ed160129f7c961d2a1cbd3b0ae37bb18782c147027
MD5 c6588fa733806aea65e5603e828962b6
BLAKE2b-256 8f4ff358a7b218b0b039d1ef7676f5a91ad70a997c7a8f4ba8f85b2b0cb4d9c9

See more details on using hashes here.

File details

Details for the file lektor-3.4.0b15-py3-none-any.whl.

File metadata

  • Download URL: lektor-3.4.0b15-py3-none-any.whl
  • Upload date:
  • Size: 813.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for lektor-3.4.0b15-py3-none-any.whl
Algorithm Hash digest
SHA256 3dbfb68cd9a3adc39073e2ace07b066a60278da87c4e59cece76794fbeff924f
MD5 ac2aa5321b9f931d10baeac2898835c2
BLAKE2b-256 325f7963180d33e83730d2af75f9d0987d9f877d670d8113e21b07bbf5eab653

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 Sentry Error logging StatusPage Status page