Skip to main content

An excel generator that takes as input a JSON file. The format of the file is list of dictionaries.

Project description

Description

Excel export from json library used to support standardized testing.

Programmatic example

from excel_generator.generator import Generator

json_file = "results.json"
excel_file = "Results.xls"
generator = Generator(json_file=json_file, excel_file=excel_file)
generator.generate()

Package call pypi

python -m excel_generator --infile results.json --outfile results.xls

Set details

There are 3 ways to set the input variables for the CLI:

  • Add an 'environment.properties' file containing: IN_FILE=results.json\nOUT_FILE=output.xls
  • Set infile and outfile using an ENV VARs. E.g. export IN_FILE=results.json && export OUT_FILE=results.xls
  • Set infile and outfile using CLI options '--infile' & '--outfile'

Supported formats

List of Dict(s) - Multiple messages (example)

[
  {
    "testName": "exampleTest1",
    "Db": "Mysql57",
    "OS": "Centos7",
    "logLocation": "http://logdatabase.com/exampleTest1",
    "startedat": "Sun Nov  1 10:16:52 EET 2020",
    "endedat": "Sun Nov  1 10:22:52 EET 2020"
  },
  {
    "testName": "exampleTest2",
    "Db": "Mysql57",
    "OS": "Centos7",
    "logLocation": "http://logdatabase.com/exampleTest2",
    "startedat": "Sun Nov  1 10:22:52 EET 2020",
    "endedat": "Sun Nov  1 10:30:52 EET 2020"
  }
]

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

excel_generator-1.0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

excel_generator-1.0.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file excel_generator-1.0.2.tar.gz.

File metadata

  • Download URL: excel_generator-1.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for excel_generator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 279b6a950319a3957712e9acca7a75378f569ac04ed28608296a4f70b49a9586
MD5 3fea3a3b2fd0f6558d5d00659e3878ae
BLAKE2b-256 942d3a4d84a66720045380e852b7681513f6af6449dfaf9918a9b88fc065e4d4

See more details on using hashes here.

File details

Details for the file excel_generator-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: excel_generator-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for excel_generator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb604b5ec3e91d3b7f91bf840d004223192f552570899161a306449e051b8069
MD5 8b0e5f698e654fbb9655322872bbbf9d
BLAKE2b-256 9f73b8d28e5820030e0fb9d942cee6c761706605ce7918362475a9700a8047c1

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