Skip to main content

Simplifying good practice in statistical tables.

Project description

Actions build status Documentation 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 Analysis Function. It can be installed from PyPI or GitHub. The source code is maintained on GitHub. Users may also be interested in a11ytables, an R native equivalent to gptables, and csvcubed, a package for turning data and metadata into machine-readable CSV-W files.

5 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. Optionally upload a notes_table with information about any notes.

  5. You write_workbook to win.

Note: This package is not intending to create perfectly accessible spreadsheets but will help with the bulk of the work needed. Users of this packages should refer back to the main spreadsheet guidance or the spreadsheet accessibility checklist after using it to make sure nothing has been missed. Please email Analysis.Function@ons.gov.uk if you use the package so we can monitor use and the outputs produced.

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-1.2.0.tar.gz (62.4 kB view details)

Uploaded Source

Built Distribution

gptables-1.2.0-py3-none-any.whl (72.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gptables-1.2.0.tar.gz
  • Upload date:
  • Size: 62.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for gptables-1.2.0.tar.gz
Algorithm Hash digest
SHA256 314c987db978ae89b700b96c15466a1877d459450049f83a9f01298f6a5b8e52
MD5 540bf15eca728cb09a8d1be134685a4b
BLAKE2b-256 6ee49c211e084ddc8c19d420861c3f9714a208fa7213a8536e783171d2b6958e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gptables-1.2.0.tar.gz:

Publisher: ci.yml on best-practice-and-impact/gptables

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: gptables-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 72.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for gptables-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eecfc58e01ca40bcb8711c2130af7532803f365ebaa97358e6c9b20a07cbe843
MD5 e241f6ea868a390739c353edbb7e293b
BLAKE2b-256 313b3b9679c1a21cd4637664eb442e7396b5b212435ff40796431d9c449548c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for gptables-1.2.0-py3-none-any.whl:

Publisher: ci.yml on best-practice-and-impact/gptables

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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