Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Forms builder used for LITE

Project description

lite-forms

Maintainability GitHub license

An easy to use Python library for building GOV.UK forms.

Docs

Getting Started

Building a form

Form(title='Register an organisation',
     description='Part 1 of 3',
     questions=[
		 TextInput(title='What\'s the organisation\'s name?',
				  name='name'),
		 TextInput(title='European Union registration and identification number (EORI)',
				  name='eori_number'),
		 TextInput(title='Standard Industrial Classification Number (SIC)',
				  description='Classifies industries by a four-digit code.',
				  name='sic_number'),
		 TextInput(title='UK VAT number',
				  description='9 digits long, with the first two letters indicating the'
							  ' country code of the registered business.',
				  name='vat_number'),
		 TextInput(title='Company registration number (CRN)',
				  description='8 numbers, or 2 letters followed by 6 numbers.',
				  name='registration_number'),
	 ],
	 buttons=[
		 Button('Save and continue', '')
	 ],
),

Installing

pipenv install lite-forms

Requirements

  • GOV.UK Design System 3.0 >

Deploying to PyPI:

  • python setup.py sdist
  • twine upload dist/*

Project details


Download files

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

Files for lite-forms, version 0.24.4
Filename, size File type Python version Upload date Hashes
Filename, size lite_forms-0.24.4-py3-none-any.whl (34.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size lite-forms-0.24.4.tar.gz (15.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page