Skip to main content

Python CLI for TPC-H data generator

Project description

TPC-H Data Generator CLI

See the main README.md for full documentation.

Installation

Install Using Python

Install this tool with Python:

pip install tpchgen-cli

Install Using Rust

Install Rust and this tool:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install tpchgen-cli

CLI Usage

We tried to make the tpchgen-cli experience as close to dbgen as possible for no other reason than maybe make it easier for you to have a drop-in replacement.

$ tpchgen-cli -h
TPC-H Data Generator

Usage: tpchgen-cli [OPTIONS]

Options:
  -s, --scale-factor <SCALE_FACTOR>
          Scale factor to address (default: 1) [default: 1]
  -o, --output-dir <OUTPUT_DIR>
          Output directory for generated files (default: current directory) [default: .]
  -T, --tables <TABLES>
          Which tables to generate (default: all) [possible values: region, nation, supplier, customer, part, partsupp, orders, lineitem]
  -p, --parts <PARTS>
          Number of parts to generate (manual parallel generation) [default: 1]
      --part <PART>
          Which part to generate (1-based, only relevant if parts > 1) [default: 1]
  -f, --format <FORMAT>
          Output format: tbl, csv, parquet (default: tbl) [default: tbl] [possible values: tbl, csv, parquet]
  -n, --num-threads <NUM_THREADS>
          The number of threads for parallel generation, defaults to the number of CPUs [default: 8]
  -c, --parquet-compression <PARQUET_COMPRESSION>
          Parquet block compression format. Default is SNAPPY [default: SNAPPY]
  -v, --verbose
          Verbose output (default: false)
      --stdout
          Write the output to stdout instead of a file
  -h, --help
          Print help (see more with '--help')

For example generating a dataset with a scale factor of 1 (1GB) can be done like this:

$ tpchgen-cli -s 1 --output-dir=/tmp/tpch

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

tpchgen_cli-1.1.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distributions

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

tpchgen_cli-1.1.0-py3-none-win_amd64.whl (4.8 MB view details)

Uploaded Python 3Windows x86-64

tpchgen_cli-1.1.0-py3-none-win32.whl (4.2 MB view details)

Uploaded Python 3Windows x86

tpchgen_cli-1.1.0-py3-none-musllinux_1_2_x86_64.whl (5.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

tpchgen_cli-1.1.0-py3-none-musllinux_1_2_i686.whl (5.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

tpchgen_cli-1.1.0-py3-none-musllinux_1_2_armv7l.whl (5.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

tpchgen_cli-1.1.0-py3-none-musllinux_1_2_aarch64.whl (5.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

tpchgen_cli-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

tpchgen_cli-1.1.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (5.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

tpchgen_cli-1.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (5.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

tpchgen_cli-1.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (5.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

tpchgen_cli-1.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (5.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

tpchgen_cli-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

tpchgen_cli-1.1.0-py3-none-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

tpchgen_cli-1.1.0-py3-none-macosx_10_12_x86_64.whl (5.0 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file tpchgen_cli-1.1.0.tar.gz.

File metadata

  • Download URL: tpchgen_cli-1.1.0.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for tpchgen_cli-1.1.0.tar.gz
Algorithm Hash digest
SHA256 594efffbef2dcb19569ad53a8b0f559cc67251d8b94ca5e862a3b10f856e2698
MD5 6d4a0c780f21b6c4fb9a79c7b44c70ba
BLAKE2b-256 1e709c56c0a28d1d2b60a43527c3f6534d32fffa1af014fa0b821638d6f85fb6

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f505d870621e7bb9f8b90cd40ad4e267f57154e085ce4cc6c410abd27581fd02
MD5 16ca432306a323f170d3553782324ad5
BLAKE2b-256 dc21c1c7923007a6c79d850641c577aba59c452633cfa7c0711e973d42524d82

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-win32.whl.

File metadata

  • Download URL: tpchgen_cli-1.1.0-py3-none-win32.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 943966ec8ff3c9414ef12a8991dfd0ed2383ef37aadfc061487bb8c5048acfac
MD5 b1c6af90e469833016446aa57a36ac46
BLAKE2b-256 5136f60ee8894f712a57d8201dd3bd1e7e78e116e850ad9ef62f612cecdd7e3e

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d4cc1f8ab33984ccdf0d73db30508376fca3a1abf1aac9bae85435c1dae93f6d
MD5 38c408e17e3c6d2ee767d1a8299c322d
BLAKE2b-256 0a6efaeba9dbbdb978b829e041234a8535351ba05d965e9d78cee494bfc95510

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 2193bddd2a11e848dc74f53ea8aff61b7cfa7ba1cb4b01b0f0b4dbdb6b2cf622
MD5 448c9a02f5e877e9d02e5b5dd0dd377b
BLAKE2b-256 8826bf72401b2ff7672b3cad1fa24f091325e5d694bb63d623785bb6edcfd608

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 e40c93279858c8703cf7f67a922b2c4332ccb13d8e639c8f54895420106d94db
MD5 72235927fc08401c463c63fb5c096c76
BLAKE2b-256 cc87821e49be17f225e29c7e6051b027de71e380f2ef19d33e990ca3edfefe6d

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0411ff8a7fd03d3c5a07aaf599964185d7c2c5fcf9fe9fea760848dd9c7282e2
MD5 23be95203b30c49d112e8fc664a59ea0
BLAKE2b-256 69bbe593fca51307397d1654c4f95b87cf335fb8aff4d147ce53f09fe257a020

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42bf699f9630217769b6c975cbf75166c12bef5c7cdf0757ce85b82806d448b5
MD5 12eb9b21b840630c952011cf39e5ab89
BLAKE2b-256 b4e48fee1d28ff386d3be781d42cb2b7b63cde894d518d4998bbdb37eb193187

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 b22244d7d1b3833cbc370d4dff838985e1f1cd6c29a0ed93f7fa7b1cadbe195a
MD5 3e057460a77a336ae9a1ba364d227848
BLAKE2b-256 37200c881f9f9f4e4185f360c8bba2dc14691149c2660b875e6f347173c76f68

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 41d122c2fe59cc4ea7bfe9c85feae456031e224deb8df0aab560e7fece30a77f
MD5 5681dd98ffefed028109305b5a808c9a
BLAKE2b-256 ebf758f44b684426c5ddb9c147aa83a7a52c2635db3439ad49a754197b76967f

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 faa23c543319a888d797ff252af61f378501393e52e3dbacdd5028029c1cee0a
MD5 10363af69efaa6d16e157b417bba7df6
BLAKE2b-256 6d283aaef88cc04974fd9209e570500d7ee326a28f73244d86f2bda9d2323f9b

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 a968fd1e48b818a8e3e470f13c9a950fab5c3e2638b51d2825e1a8afd34dc1c5
MD5 7fda4b0183c60ba83560275ea171b695
BLAKE2b-256 dcc852af3cfcdc13feb4053e4008503716abc3b8b02d12b72b0aacab7403b39c

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d7503615e8e0b4bb384ab6bee3acc5cbda05d0d7862e9dd24f27267e1f4f1f46
MD5 5c6d64fe124494ff1c963cf2e659f5f3
BLAKE2b-256 7b1bc34189ae6415f61cff8fcff51b6c8245621abc8408a3d25fb8f86f86bdd3

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f22e1ca8e535295f87c8ae9183b87a2ff47f350ccd2e0a172002901954beacd
MD5 93105c7f12bfe52b8c854abf3f79bce3
BLAKE2b-256 821f4ca5af58674598b0aecafc79cfb7d09420cb8dfaf83f5fb0e58200bcaa75

See more details on using hashes here.

File details

Details for the file tpchgen_cli-1.1.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for tpchgen_cli-1.1.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d452c667253480367b49ee70abba298571487ff9e549bf33a67926db837501e7
MD5 304a34fe4529d96f3ed60e03b4077682
BLAKE2b-256 89288da98a71e1a6ab987fe15b6bcb34965617e9e9985451e0455c3b58c54550

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