Skip to main content

Simplifying good practice in statistical tables.

Project description

Actions build status PyPI release

gptables is an opinionated python package for spreadsheet production. It produces .xlsx files from your pandas dataframes or using reticulate in R. You define the mapping from your data to elements of the table. It does the rest.

gptables uses the official guidance on good practice spreadsheets. It advocates a strong adherence to the guidance by restricting the range of operations possible. The default theme gptheme should accommodate most use cases. However, the Theme object allows development of custom themes, where other formatting is required.

gptables is developed and maintained by the Best Practice and Impact division of the Office for National Statistics, UK.

4 Simple Steps

  1. You map your data to the elements of a GPTable.

  2. You can define the format of each element with a custom Theme, or simply use the default - gptheme.

  3. Optionally design a Cover page to provide information that relates to all of the tables in your Workbook.

  4. You write_workbook to win.

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

gptables-0.4.0.tar.gz (50.1 kB view details)

Uploaded Source

Built Distribution

gptables-0.4.0-py3-none-any.whl (57.7 kB view details)

Uploaded Python 3

File details

Details for the file gptables-0.4.0.tar.gz.

File metadata

  • Download URL: gptables-0.4.0.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for gptables-0.4.0.tar.gz
Algorithm Hash digest
SHA256 30adeb97caffbb9dc6841d4b316da9f3bc274d12509991430208746262b377c4
MD5 20d9398b9ac7869d65a357ad1cc33bbf
BLAKE2b-256 f1190d579c0b263c7a0618dab9e2ebfb6897b91c6ad202de80e8f6d490a272d2

See more details on using hashes here.

File details

Details for the file gptables-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: gptables-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 57.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for gptables-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50107475c9ed4e33067d9192c0d25482741056fc005a217288f2e01ff5c7808d
MD5 06a0049ffd1af944a9065e244fb3091b
BLAKE2b-256 1409512715339d946bb2a65dae9d4471be08344db37aa0a05145b833a72a1432

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page