Skip to main content

Python CLI for Spatial Bench data generator

Project description

SpatialBench Data Generator CLI

See the main README.md for full documentation.

Installation

Install Using Python

Install this tool with Python:

pip install spatialbench-cli

Install Using Rust

Install Rust and this tool:

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

CLI Usage

We tried to make the spatialbench-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.

$ spatialbench-cli -h
TPC-H Data Generator

Usage: spatialbench-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: vehicle, driver, customer, trip, building, zone]
  -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: parquet, tbl, csv (default: parquet) [default: parquet] [possible values: parquet, tbl, csv]
  -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:

$ spatialbench-cli -s 1 --output-dir=/tmp/spatialbench

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

spatialbench_cli-0.1.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distributions

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

spatialbench_cli-0.1.0-py3-none-win_amd64.whl (36.0 MB view details)

Uploaded Python 3Windows x86-64

spatialbench_cli-0.1.0-py3-none-win32.whl (31.9 MB view details)

Uploaded Python 3Windows x86

spatialbench_cli-0.1.0-py3-none-musllinux_1_2_x86_64.whl (41.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

spatialbench_cli-0.1.0-py3-none-musllinux_1_2_i686.whl (42.8 MB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

spatialbench_cli-0.1.0-py3-none-musllinux_1_2_armv7l.whl (40.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

spatialbench_cli-0.1.0-py3-none-musllinux_1_2_aarch64.whl (39.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

spatialbench_cli-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (40.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

spatialbench_cli-0.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (45.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

spatialbench_cli-0.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (45.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

spatialbench_cli-0.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (40.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

spatialbench_cli-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (39.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

spatialbench_cli-0.1.0-py3-none-macosx_11_0_arm64.whl (36.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

spatialbench_cli-0.1.0-py3-none-macosx_10_12_x86_64.whl (38.6 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file spatialbench_cli-0.1.0.tar.gz.

File metadata

  • Download URL: spatialbench_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for spatialbench_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b75840f771536e51df66d5ca49833d592d21af47acf67b04effb8d5285d29887
MD5 bcae98270c6b4ed2471fa40887b5a93a
BLAKE2b-256 b934f3790c77133ae26061d0f29cff7d1ab407b461a03c50080241dc0317569f

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4b64f281d66d5cc0aea389e24385e0d8bf241e03a164752d7c23acf9cfe82a05
MD5 0ce43f65e8b52d5251876606a6031508
BLAKE2b-256 cda4f13c2e10fa6228b66b089384203ad593ad242d57ce4a6167dec4bed6c7ef

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-win32.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 4899130a714f1f2e764c9fc20d17b06cfaeafb1a00e1e97b453c1f8ef3196d2c
MD5 db0ece334199fc0c5ddde314249335af
BLAKE2b-256 62b384ec0da43a2da41d6781fba5b2afb40bb439fe8b6d1e138c61538abc10a6

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 89bd46bffa3cd0e8f2348b01fdbcb635bb1f0abca90492045987bd65d8e65874
MD5 ff308bd8205fb88b2401a6eec7179676
BLAKE2b-256 f90f2a594c0389ff6cc863656e624cf8b2bf9be94700050079160ad5921e9a52

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 23ca8a958b3884b4d7388b6b64ce1a75c987f7d2dc813bfb2036eb16c8ebcb45
MD5 298980fae869c2dd24598cdaebde49cb
BLAKE2b-256 e1c7abf153f391d95f520b11dc18b1131892802b4362f11ed3a6684bf22f1188

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 53a4cd5d1b104dbd96af5a7c207b9b917a77a70aa13919f1130ad7d1e479bb22
MD5 5410983d3fd0c30ca370923a02bed79e
BLAKE2b-256 e43140c16f6b38e85d8f340c794332f2f061aa00a737b5b76afcb541d10348d7

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4e38a4548db3c1ec7e11fbbc66176e9da20fc4180d9b274233de9ab6d68a292b
MD5 e25606d6397132375eeee3c3d01a5e89
BLAKE2b-256 371fd728ac17a8b9f2d5c51f6c88bb025d734daf19930f3c347be61e69382887

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7102093a7a10aa86c82e221b0740b4c2338416c3e51e5fbc2fff64ec07048f01
MD5 849fac00022ae45a357463cb0e304057
BLAKE2b-256 79fb07bde55d69eb1870691bef841ae2386364d5982b26789efe2a74f7b5fefe

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 8d3e1919e260b7738c6c5aa0e6e21ddbf94f221d357a2f2f5d7b7cc5d998354f
MD5 c061cd987b178269137e399b03336162
BLAKE2b-256 e4b2d0e379efca0557bcf05bc9815a6643926d1d254f1c73621f11b65502adbe

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6ec211904ab1c3768fce3e9f480e56657d642ed7799ba0ad79ffc84725821550
MD5 a819a03c32cedbbf2d9b4d0a14d4de52
BLAKE2b-256 d7cc92a94f59ed96427d61b93832769f22b3ef8210d3eb80c917c8a3a2814120

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 0278cb8e15b886bb4fa48e4e9dff1626b6c465c31b00ed95339daeaff2f9a45b
MD5 f38fb142a33499f39883e3c51c57650d
BLAKE2b-256 49b3e7fb4d1c86b5e0f771f7f2866ba372d369ae12238065d8225764c5bdd164

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f2e6504ef94c90e57438c338afd800d74454047df964e7de66718acf6ca8d392
MD5 c96f8cbec912bf9ce81fa9c03e44d6be
BLAKE2b-256 faa272920981a1aa48e14c44ca75c552afb80050229c33ea2de7ab30a4859c34

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8d7add99eb835c9f42845bb0860ce7b56f2e56be9f8c3ea1dfab49f835574a1
MD5 acfcdb404da0ac7cf278940065be4aed
BLAKE2b-256 9bfd1e1af5b5b66a6357857a14ec828c1b39b8bfc999a1fc72b51c9603a5e3eb

See more details on using hashes here.

File details

Details for the file spatialbench_cli-0.1.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for spatialbench_cli-0.1.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 32af79dcefb5816662e60056b51122c60470448d12f873a7ed56f68bcb4c911a
MD5 f52f6216b30b7ac268168629dc5abab6
BLAKE2b-256 4aa44542f30cbe2c2d3520d10d0549ede2b1bd76aecff12d671c78da90370159

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