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.1.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.1-py3-none-win_amd64.whl (4.7 MB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3Windows x86

tpchgen_cli-1.1.1-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.1-py3-none-musllinux_1_2_i686.whl (5.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

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

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

tpchgen_cli-1.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

tpchgen_cli-1.1.1-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.1-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.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (5.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

tpchgen_cli-1.1.1-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.1-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.1-py3-none-macosx_11_0_arm64.whl (4.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

tpchgen_cli-1.1.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for tpchgen_cli-1.1.1.tar.gz
Algorithm Hash digest
SHA256 2f2c5be86f8e9e17b45f8fbbf7df9855e247b2b2055ede9420ad9217ef656afe
MD5 69d28e32b6ecec298f0197b5ba9f0db0
BLAKE2b-256 7fd85bbcad4fcae81934a3688cf078032537ae9239b5f961b1fad0f9d9e86935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 21398e0e5de034d152200a39c14630aeb6537efecc65bdeda8552a1e6a3b8a67
MD5 ce722325f9b116e040e81a90b7616c0f
BLAKE2b-256 ab7f89334e524ae9c392389e48f75a64d2e1352d9178aa5d16314d54bd889996

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tpchgen_cli-1.1.1-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.6

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 db3b3a1855818f1a3fb7b88432d70e6411e5ceca42d7e88a3776d802f3b8691b
MD5 5d17819013f54bddddd30783655d7bbe
BLAKE2b-256 77aa3ff35e3d7fc133a6c51162bb177615272c8594e560ea0aa06a35fa2f7935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fe74eecd95cba15b98228b7305dd2c4cf80c1d300255ed25a2d93f07edb5782b
MD5 788b2a6d65c45df049035f18f0b9ffb0
BLAKE2b-256 422c749e62a3e42be98d19626dc02ccddb5903af046713351287c2f4f9059673

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 f3a6c9266cdd0a1a0afd78fd7fa0e561fc49f824b4cc956c94c8a815dbd600de
MD5 9b5121083c3f81f44afea4d1de0ecef2
BLAKE2b-256 441e4ce257d3ebee4c88e6a69a920c5a51bddcd936eace8831073be215469db7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 594e07533f4ec901137a1f821f34aa52d8ed98abbdf8efa680675dd20386947f
MD5 0ab39755c2ed2c1dbb54dd20121f6323
BLAKE2b-256 258e5144dd1fb61dd4a19981add38c47a04b8ed978e8a4afc89e7f08c21352e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f2819bb22e7e275a466603bc88f11ae23c5354276a7d75254a0c6829aae516c3
MD5 dd849187a5ba592d4288f39ea178cc75
BLAKE2b-256 99c6771bf6fee01a9037514c2fb38928c0cdf9d67fbf8e77e25e9fc6196852d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a1af25d73db1a810af625602f17cd54acfd35bf2c15f9f79992fc42dbeba04c1
MD5 66ad105ee64e5dbe4319283eb71a7051
BLAKE2b-256 f17c3cf4a51932448496248af9abf146bcf43a8beb3e55f1d358833127afb6f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 c74de68e1be0f36e57a722ad66b47a39cdd9817e8be05914d6245936cc9843fe
MD5 1022f1579bd513a03a6646f71cf27677
BLAKE2b-256 aee7a1eb1beef0fc9aa3f90f0de54229cea57581306837d93855c264746f3ded

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 839ea3acac221266a5124e650038bfb23e2b9bbe023253bfd4bcf5883724e6c0
MD5 24cb487007daf34d166ef4a8f629c76c
BLAKE2b-256 5fce5034eb47a084405ede7207fad189c8652ca285f0a43d7cdc3d4ce2cf1475

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 35c787e128abfbf9dd12805308cbc9ab61c89520d616fea864dddeaa1149d9eb
MD5 cab59ca7da9b2efb86822a7678fa4017
BLAKE2b-256 834213ee683c7bac62c3d1a0aa750d051c03063c0f2a763664811485febf6652

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 44737c0a65f90e5d0c4a95cd90f91c6f8a302137709400f8633b5d52b18a4260
MD5 8d043175aa5deb29ef338e56a77aaef4
BLAKE2b-256 39a0f152071838cb78b0d5f579f7a159f76fc94d6b3660c131dc658520615287

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cddce9903b549e0a317b84d0ce20391d8494831d9ef1ed48dafa494d03de887f
MD5 a07fe2c2a409a92ab83349b2845386b7
BLAKE2b-256 d01152c0208408b0db669d205bea0630159a7f25f80ca364362b6b562a6e6ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bd00f43a69314d8dd90ea139b372c0d9a70f2efb42e3957c81c99ac035f0c90
MD5 76dd5609f6b0aacbc04692f4dc418009
BLAKE2b-256 dd3e578ee8d6952c31df8306fd1dc418d049db5f10da98b79efbd1e57984cc52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tpchgen_cli-1.1.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e4fdbb173ecd83e21561cdfd6090b6d6b4a626615d1638471aa98e8ab6a53aa0
MD5 15d99b3f0460df243b4382efe6326b7d
BLAKE2b-256 54f1f5dd5cefab9336a85c246c48c3eb18ab31ba62aa34b728d9560505fa6d3d

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