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 -
- an implementation of gov.uk design system in Python using FastHTML
- lightweight scaffolding for common service patterns e.g. forms
- 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 -
Resources
Project details
Release history Release notifications | RSS feed
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.7.0.tar.gz
(1.4 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fast_gov_uk-0.7.0-py3-none-any.whl
(498.1 kB
view details)
File details
Details for the file fast_gov_uk-0.7.0.tar.gz.
File metadata
- Download URL: fast_gov_uk-0.7.0.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cf8536ee2037d333165300228f481e70d5838a13f32d8b3d6805f6cba1eba20
|
|
| MD5 |
07cd6203a6159963c61c2fefa12da1eb
|
|
| BLAKE2b-256 |
9a1547a90e9886ffdf24e1ba93ddf1b93b5c5c2c6453eaff7dbacd1d40299db6
|
File details
Details for the file fast_gov_uk-0.7.0-py3-none-any.whl.
File metadata
- Download URL: fast_gov_uk-0.7.0-py3-none-any.whl
- Upload date:
- Size: 498.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29ef8e8e56ffbe2ff1a8143a3b5f082eb94a69dee8f0867b6e37dff7025ad06f
|
|
| MD5 |
544548e7a4488d9e725d49cea24c987c
|
|
| BLAKE2b-256 |
5689fbb82202546581e7eed89e6960fe0efc6e09ed4501249ac8f0c33a339fdd
|