Skip to main content

Wagtail SB Blocks

Package with basic, adaptable and reusable blocks to build awesome sites with wagtail.

Community-Project

PyPI - Supported versions PyPI - Package version PyPI - Downloads PyPI - License Codacy Grade Badge Codacy Coverage Badge Gitlab Pipeline Status

Package to render Wagtail StructBlock with basic, adaptable and reusable blocks to build awesome sites with wagtail.

✨ Features

  • Standard Blocks: Out-of-the-box blocks like Headers, Paragraphs, Figures, Buttons, Embeds, and Lists.
  • Enhanced StreamBlock: Removes unnecessary wrapper divs.
  • Modern Stack: Built for modern Python (3.11+) and up to date Django/Wagtail versions.

📋 Requirements

  • Python 3.11 or higher
  • Wagtail 5.2 or higher
  • Django 4.2 or higher

📦 Installation

Using pip

pip install wagtail-sb-blocks

Using uv

uv add wagtail-sb-blocks

🚀 Usage

Add wagtail_sb_blocks to your INSTALLED_APPS settings:

INSTALLED_APPS = [
    # ...
    "wagtail_sb_blocks",
    # ...
]

In your stream blocks use blocks from this package to rapid development.

from wagtail.blocks import StreamBlock

from wagtail_sb_blocks.blocks.legacy import H1, Paragraph, Figure, Button


class EnhancedHTMLBlock(StreamBlock):
    title = H1()
    paragraph = Paragraph()
    figure = Figure()
    button = Button()

🛠️ Development

Check out our Contribution Guide for details on setting up your development environment, running tests, and submitting pull requests.

The project uses uv for dependency management, ruff for linting, and tox for multi-environment testing.

📜 Changelog

See the CHANGELOG.md for a history of changes.

👥 Contributors

See our list of contributors.

📄 License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Metadata

Release files for wagtail-sb-blocks 0.3.0

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

Source distribution (sdist)

Source distribution for wagtail-sb-blocks 0.3.0
File Size Uploaded Provenance
wagtail_sb_blocks-0.3.0.tar.gz 15.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wagtail-sb-blocks 0.3.0
File Interpreter ABI Platform
wagtail_sb_blocks-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.3 kB

Release files / wagtail_sb_blocks-0.3.0.tar.gz

Download URL wagtail_sb_blocks-0.3.0.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
94af57a6f96c7905e8080d3c7a4cf1922d5c274a47d4ac44de8f46744e20976d
BLAKE2b-256 checksum
How to use checksums
c7f04edaa7303878498948d0b2ca8d865eb981f604c3da3a3aca12d94fd31aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / wagtail_sb_blocks-0.3.0-py3-none-any.whl

Download URL wagtail_sb_blocks-0.3.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e29c834fb42e8aabad307a7671bae2a834830fe797a5dc7b9493d5a51cf92a30
BLAKE2b-256 checksum
How to use checksums
fbfc239fc4bdf0d661cec786474900166306badd1282d94ddd841a89deefe786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for wagtail-sb-blocks 0.3.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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