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.2.0.tar.gz (2.3 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.2.0-py3-none-win_amd64.whl (36.5 MB view details)

Uploaded Python 3Windows x86-64

spatialbench_cli-0.2.0-py3-none-win32.whl (32.3 MB view details)

Uploaded Python 3Windows x86

spatialbench_cli-0.2.0-py3-none-musllinux_1_2_x86_64.whl (41.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

spatialbench_cli-0.2.0-py3-none-musllinux_1_2_i686.whl (43.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

spatialbench_cli-0.2.0-py3-none-musllinux_1_2_armv7l.whl (41.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

spatialbench_cli-0.2.0-py3-none-musllinux_1_2_aarch64.whl (39.8 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

spatialbench_cli-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (41.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

spatialbench_cli-0.2.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (46.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

spatialbench_cli-0.2.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (46.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

spatialbench_cli-0.2.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (41.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

spatialbench_cli-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (40.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

spatialbench_cli-0.2.0-py3-none-macosx_11_0_arm64.whl (37.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

spatialbench_cli-0.2.0-py3-none-macosx_10_12_x86_64.whl (39.2 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for spatialbench_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 98d9e4e0da783286f4b9a86c5f304b9230e8054b0ed5b507e7c9942009e20982
MD5 a361d8840728509b35ccd1e984276b35
BLAKE2b-256 f0f8fb5742cc793621b29faf928efc95b158243907049c352604ee0e4f95b675

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ef438bd16e47ef4524dc875ee389b4f47031f4e282eaeb01dc6304654ae1b462
MD5 674b8bd09f1907c7c00af11b59eb2cc3
BLAKE2b-256 05628f5d4c3ae4407fa6798d5670abb05fd77855bdb52870b838fcc661624110

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 7c3d8d9c3ed52a9f1dadfadf68d62c08a23cc239696968b6d95cf43a24e93dbc
MD5 98a65e899497e6c431b0c4e170fa2e18
BLAKE2b-256 e1d6166cd16c3473271f0005564e020940185192b917652822c5a5448a35fbe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 341b762490a5f68cc3e173a0e17d4387b88aa45aad8c738e60dd6525de2b90a1
MD5 932bd77d8058476d1fe18b2e23fb6c1c
BLAKE2b-256 591a29ee50ec3944d0937af695172a760d6971c61837b9fbddc170f68f1a5d0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 daa97191181e9f87207f9fb2df09c89526c3c173311a2c53a774630e1c73418b
MD5 e47f9b984ac8f19e9db7dd7cc1bfd728
BLAKE2b-256 ff092ab3d69c70b513621ea26e80b62c7feef0f6786202d52f1cf9902571d5d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 2acc8cf9a34b3857186c943aacb3993f87f3ce806e351df19b9f63532efb20b1
MD5 09c34f4df643ca01d2995c70dff14651
BLAKE2b-256 c55ed5aa3a7b8b58be5f37c7c8adad4ffe6c11afd6de54d5a431ca70fe0892e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 594eae1f0312b47ddd15b19191d964b5387c253c094d2929b0a4cd5326bad35d
MD5 3737af511807f19266f6284def080836
BLAKE2b-256 a8004115ffb8fb2866d4db40155038a7138a9b1b6570cb500040a8841a58024f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3c06088e1fa1fe9b8e4baf9acd9a88dcb52bde932b5c4aec2ae2b6061699dd2e
MD5 4caceab3bb2794a8f5a2bf55425efbeb
BLAKE2b-256 4213e21f10543673f9ece07603825cd8c4bba62ac6df9a95226c6513e16f7853

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 7b3d8cb8d159326b50b1760606619a1d064c8f1a8536ce9b76fb8e1d749bc375
MD5 d462460e3b014f1296a20e19fb7765ec
BLAKE2b-256 f9325eae6333a4f48b4562ce564f3921e4275793d102fa2655dd733f68d46616

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 92e97240ab06e2b745678e0f9ad24112b531f6c45badad708e955bf0dc5a898a
MD5 c6beba5407e34cc1eb2aad74d0397d20
BLAKE2b-256 0d5d8bde68e35f3ea59cb75dd8f1ddd8dec02e71bea2180b6ac4fb46d2beb705

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 3750069f6eec8a68c4e3d0059ca65c5a91cf0f1db96a7ed56f683c8058ef8741
MD5 778a4ab4f7f9d729ff635b6f6d0c2413
BLAKE2b-256 3eea40c34b799fa8156b2256720166828b0335a02471da66d5fd9d3f65ab8cb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d1cb910b335b8e6ad26fc70ea2e1719b67d2cc41d550f8482833520a3d6e4772
MD5 1dd508ce081e2e460613b3591c390e7d
BLAKE2b-256 a9df3ed54e2d2c4d42b8daec8094e3449adb4b515fd3ba3370b936097d35ae41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49566c20f3906ecedb4ab0bffafaa6d45d14c8f4f3007598030f35b94a29d797
MD5 5f3315b0bfc43bd9dd3ac28c9d426def
BLAKE2b-256 0c0f3409aa400d30f541e1cf9ef4d7b5f5651b81ad865df94e9506f50e53b0e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spatialbench_cli-0.2.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2e1453cbf80e785033127fba37c099ea74bcade2e8462ecf724b5ad4a4322544
MD5 800deb398873b89b21ea6441d26a7623
BLAKE2b-256 78b0e585b7478e7d0857f9b64aa88b9fbd806f3fff032d22d0cdf741d7da1ee9

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