spatialbench-cli 0.1.0__py3-none-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: spatialbench-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python CLI for Spatial Bench data generator
|
|
5
|
+
Home-Page: https://github.com/apache/sedona-spatialbench/
|
|
6
|
+
Author: Apache Sedona <dev@sedona.apache.org>
|
|
7
|
+
Author-email: Apache Sedona <dev@sedona.apache.org>
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
11
|
+
|
|
12
|
+
# SpatialBench Data Generator CLI
|
|
13
|
+
|
|
14
|
+
See the main [README.md](https://github.com/apache/sedona-spatialbench) for full documentation.
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
### Install Using Python
|
|
19
|
+
|
|
20
|
+
Install this tool with Python:
|
|
21
|
+
```shell
|
|
22
|
+
pip install spatialbench-cli
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Install Using Rust
|
|
26
|
+
|
|
27
|
+
[Install Rust](https://www.rust-lang.org/tools/install) and this tool:
|
|
28
|
+
|
|
29
|
+
```shell
|
|
30
|
+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
31
|
+
cargo install spatialbench-cli
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## CLI Usage
|
|
35
|
+
|
|
36
|
+
We tried to make the `spatialbench-cli` experience as close to `dbgen` as possible for no other
|
|
37
|
+
reason than maybe make it easier for you to have a drop-in replacement.
|
|
38
|
+
|
|
39
|
+
```shell
|
|
40
|
+
$ spatialbench-cli -h
|
|
41
|
+
TPC-H Data Generator
|
|
42
|
+
|
|
43
|
+
Usage: spatialbench-cli [OPTIONS]
|
|
44
|
+
|
|
45
|
+
Options:
|
|
46
|
+
-s, --scale-factor <SCALE_FACTOR>
|
|
47
|
+
Scale factor to address (default: 1) [default: 1]
|
|
48
|
+
-o, --output-dir <OUTPUT_DIR>
|
|
49
|
+
Output directory for generated files (default: current directory) [default: .]
|
|
50
|
+
-T, --tables <TABLES>
|
|
51
|
+
Which tables to generate (default: all) [possible values: vehicle, driver, customer, trip, building, zone]
|
|
52
|
+
-p, --parts <PARTS>
|
|
53
|
+
Number of parts to generate (manual parallel generation) [default: 1]
|
|
54
|
+
--part <PART>
|
|
55
|
+
Which part to generate (1-based, only relevant if parts > 1) [default: 1]
|
|
56
|
+
-f, --format <FORMAT>
|
|
57
|
+
Output format: parquet, tbl, csv (default: parquet) [default: parquet] [possible values: parquet, tbl, csv]
|
|
58
|
+
-n, --num-threads <NUM_THREADS>
|
|
59
|
+
The number of threads for parallel generation, defaults to the number of CPUs [default: 8]
|
|
60
|
+
-c, --parquet-compression <PARQUET_COMPRESSION>
|
|
61
|
+
Parquet block compression format. Default is SNAPPY [default: SNAPPY]
|
|
62
|
+
-v, --verbose
|
|
63
|
+
Verbose output (default: false)
|
|
64
|
+
--stdout
|
|
65
|
+
Write the output to stdout instead of a file
|
|
66
|
+
-h, --help
|
|
67
|
+
Print help (see more with '--help')
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
For example generating a dataset with a scale factor of 1 (1GB) can be done like this:
|
|
71
|
+
```shell
|
|
72
|
+
$ spatialbench-cli -s 1 --output-dir=/tmp/spatialbench
|
|
73
|
+
```
|
|
74
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
spatialbench_cli-0.1.0.data/scripts/spatialbench-cli.exe,sha256=ROfGie9fNN90s5SqEZ4e6fNFSsTbRGmZx82KhD1PEMU,87735296
|
|
2
|
+
spatialbench_cli-0.1.0.dist-info/METADATA,sha256=WHt7lmyZf--Oi6lz657_uQ0LXTI72BiKV7vJuF3upMI,2495
|
|
3
|
+
spatialbench_cli-0.1.0.dist-info/WHEEL,sha256=WDMAB4uGoBTLFFNNHYBIIVDGp2BkavHkkLG_raftdhA,90
|
|
4
|
+
spatialbench_cli-0.1.0.dist-info/RECORD,,
|