Skip to main content

A toolkit for rapid development of simple gov.uk services

Project description

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

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

fast_gov_uk-0.5.1.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

fast_gov_uk-0.5.1-py3-none-any.whl (72.5 kB view details)

Uploaded Python 3

File details

Details for the file fast_gov_uk-0.5.1.tar.gz.

File metadata

  • Download URL: fast_gov_uk-0.5.1.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","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}

File hashes

Hashes for fast_gov_uk-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b64ad1384337902074dedfbfa6156b58307bba87f2123dab4b2c87fd3bdef470
MD5 e7c447e997145247458eedf5e7b14bba
BLAKE2b-256 1a020759160d9e36f678262db0a3ffd0f181941cbb26bcab0e79fff383009fea

See more details on using hashes here.

File details

Details for the file fast_gov_uk-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: fast_gov_uk-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 72.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","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}

File hashes

Hashes for fast_gov_uk-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a26cc9548dc7ff50e565f7e6ab474f2153ecee8b71971bf083ec2ccd51b09de0
MD5 3c29d3a5be010ada8de8a3a996eb9f3c
BLAKE2b-256 19d99f43a95e69314cd859640860cde0a264c3ab3923407596dd4a0bd257aeeb

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