Skip to main content

fast-gov-uk

Fast-gov-uk is a new toolkit for rapid development of simple gov.uk services.

Fast-gov-uk is three things -

  1. an implementation of gov.uk design system in Python using FastHTML
  2. lightweight scaffolding for common service patterns e.g. forms
  3. designed from the ground-up for AI agents to help with rapid development

Installation

$ pip install fast-gov-uk

A Simple Example

# save this as app.py
from fast_gov_uk import Fast, serve
from fast_gov_uk import design_system as ds

fast = Fast()

@fast.page("/")
def get_started():
    return ds.Page(
        ds.Warning("This is a demo and not a real service"),
        ds.H1("Welcome to the service"),
        ds.P("You will need the following information handy:"),
        ds.Ul(
            ds.Li("NI Number"),
            ds.Li("Date of birth"),
            ds.Li("Email"),
            bullet=True,
        ),
        ds.StartButton("I am ready", "/forms/"),
    )

serve(app="fast")
$ python app.py

Point your browser to: http://localhost:5001 -

Screenshot of the simple example

Resources

Metadata

Release files for fast-gov-uk 0.9.1

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

Source distribution (sdist)

Source distribution for fast-gov-uk 0.9.1
File Size Uploaded Provenance
fast_gov_uk-0.9.1.tar.gz 1.4 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fast-gov-uk 0.9.1
File Interpreter ABI Platform
fast_gov_uk-0.9.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / fast_gov_uk-0.9.1.tar.gz

Download URL fast_gov_uk-0.9.1.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
dac8fe939f795cc0fc6ac0374e5a1f608caa462b599cf43bae6e4e1e6bad0e94
BLAKE2b-256 checksum
How to use checksums
74d6c9a7e0ad67c79675525b07d03c54a4edc7b5f45eabfafa2e86bc1a48f5c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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":true}

Release files / fast_gov_uk-0.9.1-py3-none-any.whl

Download URL fast_gov_uk-0.9.1-py3-none-any.whl
Size 498.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3130509fbe32eb619d700d79c8c8c2c60f6d3e45e6f249cd59304b800cce6dab
BLAKE2b-256 checksum
How to use checksums
d7d770a5b4d6feb58db53f61ee4ec1b9f6682fd915530eb7850ca57f356c194a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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":true}

Security for fast-gov-uk 0.9.1

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