dvc-utils 0.0.5__tar.gz → 0.0.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dvc-utils
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: CLI for diffing DVC files at two commits (or one commit vs. current worktree), optionally passing both through another command first
5
5
  Home-page: https://github.com/runsascoded/dvc-utils
6
6
  Author: Ryan Williams
@@ -15,7 +15,7 @@ CLI for diffing [DVC] files, optionally passing both through another command fir
15
15
  <!-- toc -->
16
16
  - [Installation](#installation)
17
17
  - [Usage](#usage)
18
- - [`dvc-utils diff`](#dvc-utils-diff)
18
+ - [`dvc-diff`](#dvc-diff)
19
19
  - [Examples](#examples)
20
20
  - [Parquet file](#parquet-diff)
21
21
  - [Schema diff](#parquet-schema-diff)
@@ -42,11 +42,13 @@ dvc-utils --help
42
42
  # worktree), optionally passing both through another command first
43
43
  ```
44
44
 
45
- ### `dvc-utils diff` <a id="dvc-utils-diff"></a>
46
- <!-- `bmdf -- dvc-utils diff --help` -->
45
+ The single subcommand, `dvc-utils diff`, is also exposed directly as `dvc-dff`:
46
+
47
+ ### `dvc-diff` <a id="dvc-diff"></a>
48
+ <!-- `bmdf -- dvc-diff --help` -->
47
49
  ```bash
48
- dvc-utils diff --help
49
- # Usage: dvc-utils diff [OPTIONS] [cmd...] <path>
50
+ dvc-diff --help
51
+ # Usage: dvc-diff [OPTIONS] [exec_cmd...] <path>
50
52
  #
51
53
  # Diff a file at two commits (or one commit vs. current worktree), optionally
52
54
  # passing both through `cmd` first
@@ -69,6 +71,8 @@ dvc-utils diff --help
69
71
  # to `diff`)
70
72
  # -v, --verbose Log intermediate commands to stderr
71
73
  # -w, --ignore-whitespace Ignore whitespace differences (pass `-w` to `diff`)
74
+ # -x, --exec-cmd TEXT Command(s) to execute before diffing; alternate
75
+ # syntax to passing commands as positional arguments
72
76
  # --help Show this message and exit.
73
77
  ```
74
78
 
@@ -91,7 +95,7 @@ parquet_schema() {
91
95
  parquet2json "$1" schema
92
96
  }
93
97
  export -f parquet_schema
94
- dvc-utils diff -r $commit^..$commit parquet_schema $path
98
+ dvc-diff -r $commit^..$commit parquet_schema $path
95
99
  ```
96
100
  <details><summary>Output</summary>
97
101
 
@@ -149,7 +153,7 @@ pretty_print_first_row() {
149
153
  parquet2json "$1" cat -l 1 | jq .
150
154
  }
151
155
  export -f pretty_print_first_row
152
- dvc-utils diff -r $commit^..$commit pretty_print_first_row $path
156
+ dvc-diff -r $commit^..$commit pretty_print_first_row $path
153
157
  ```
154
158
 
155
159
  <details><summary>Output</summary>
@@ -208,7 +212,7 @@ parquet_row_count() {
208
212
  parquet2json "$1" rowcount
209
213
  }
210
214
  export -f parquet_row_count
211
- dvc-utils diff -r $commit^..$commit parquet_row_count $path
215
+ dvc-diff -r $commit^..$commit parquet_row_count $path
212
216
  ```
213
217
 
214
218
  This time we get no output; [the given `$commit`][commit] didn't change the row count in the DVC-tracked Parquet file [`$path`][commit path].
@@ -4,7 +4,7 @@ CLI for diffing [DVC] files, optionally passing both through another command fir
4
4
  <!-- toc -->
5
5
  - [Installation](#installation)
6
6
  - [Usage](#usage)
7
- - [`dvc-utils diff`](#dvc-utils-diff)
7
+ - [`dvc-diff`](#dvc-diff)
8
8
  - [Examples](#examples)
9
9
  - [Parquet file](#parquet-diff)
10
10
  - [Schema diff](#parquet-schema-diff)
@@ -31,11 +31,13 @@ dvc-utils --help
31
31
  # worktree), optionally passing both through another command first
32
32
  ```
33
33
 
34
- ### `dvc-utils diff` <a id="dvc-utils-diff"></a>
35
- <!-- `bmdf -- dvc-utils diff --help` -->
34
+ The single subcommand, `dvc-utils diff`, is also exposed directly as `dvc-dff`:
35
+
36
+ ### `dvc-diff` <a id="dvc-diff"></a>
37
+ <!-- `bmdf -- dvc-diff --help` -->
36
38
  ```bash
37
- dvc-utils diff --help
38
- # Usage: dvc-utils diff [OPTIONS] [cmd...] <path>
39
+ dvc-diff --help
40
+ # Usage: dvc-diff [OPTIONS] [exec_cmd...] <path>
39
41
  #
40
42
  # Diff a file at two commits (or one commit vs. current worktree), optionally
41
43
  # passing both through `cmd` first
@@ -58,6 +60,8 @@ dvc-utils diff --help
58
60
  # to `diff`)
59
61
  # -v, --verbose Log intermediate commands to stderr
60
62
  # -w, --ignore-whitespace Ignore whitespace differences (pass `-w` to `diff`)
63
+ # -x, --exec-cmd TEXT Command(s) to execute before diffing; alternate
64
+ # syntax to passing commands as positional arguments
61
65
  # --help Show this message and exit.
62
66
  ```
63
67
 
@@ -80,7 +84,7 @@ parquet_schema() {
80
84
  parquet2json "$1" schema
81
85
  }
82
86
  export -f parquet_schema
83
- dvc-utils diff -r $commit^..$commit parquet_schema $path
87
+ dvc-diff -r $commit^..$commit parquet_schema $path
84
88
  ```
85
89
  <details><summary>Output</summary>
86
90
 
@@ -138,7 +142,7 @@ pretty_print_first_row() {
138
142
  parquet2json "$1" cat -l 1 | jq .
139
143
  }
140
144
  export -f pretty_print_first_row
141
- dvc-utils diff -r $commit^..$commit pretty_print_first_row $path
145
+ dvc-diff -r $commit^..$commit pretty_print_first_row $path
142
146
  ```
143
147
 
144
148
  <details><summary>Output</summary>
@@ -197,7 +201,7 @@ parquet_row_count() {
197
201
  parquet2json "$1" rowcount
198
202
  }
199
203
  export -f parquet_row_count
200
- dvc-utils diff -r $commit^..$commit parquet_row_count $path
204
+ dvc-diff -r $commit^..$commit parquet_row_count $path
201
205
  ```
202
206
 
203
207
  This time we get no output; [the given `$commit`][commit] didn't change the row count in the DVC-tracked Parquet file [`$path`][commit path].
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dvc-utils
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: CLI for diffing DVC files at two commits (or one commit vs. current worktree), optionally passing both through another command first
5
5
  Home-page: https://github.com/runsascoded/dvc-utils
6
6
  Author: Ryan Williams
@@ -15,7 +15,7 @@ CLI for diffing [DVC] files, optionally passing both through another command fir
15
15
  <!-- toc -->
16
16
  - [Installation](#installation)
17
17
  - [Usage](#usage)
18
- - [`dvc-utils diff`](#dvc-utils-diff)
18
+ - [`dvc-diff`](#dvc-diff)
19
19
  - [Examples](#examples)
20
20
  - [Parquet file](#parquet-diff)
21
21
  - [Schema diff](#parquet-schema-diff)
@@ -42,11 +42,13 @@ dvc-utils --help
42
42
  # worktree), optionally passing both through another command first
43
43
  ```
44
44
 
45
- ### `dvc-utils diff` <a id="dvc-utils-diff"></a>
46
- <!-- `bmdf -- dvc-utils diff --help` -->
45
+ The single subcommand, `dvc-utils diff`, is also exposed directly as `dvc-dff`:
46
+
47
+ ### `dvc-diff` <a id="dvc-diff"></a>
48
+ <!-- `bmdf -- dvc-diff --help` -->
47
49
  ```bash
48
- dvc-utils diff --help
49
- # Usage: dvc-utils diff [OPTIONS] [cmd...] <path>
50
+ dvc-diff --help
51
+ # Usage: dvc-diff [OPTIONS] [exec_cmd...] <path>
50
52
  #
51
53
  # Diff a file at two commits (or one commit vs. current worktree), optionally
52
54
  # passing both through `cmd` first
@@ -69,6 +71,8 @@ dvc-utils diff --help
69
71
  # to `diff`)
70
72
  # -v, --verbose Log intermediate commands to stderr
71
73
  # -w, --ignore-whitespace Ignore whitespace differences (pass `-w` to `diff`)
74
+ # -x, --exec-cmd TEXT Command(s) to execute before diffing; alternate
75
+ # syntax to passing commands as positional arguments
72
76
  # --help Show this message and exit.
73
77
  ```
74
78
 
@@ -91,7 +95,7 @@ parquet_schema() {
91
95
  parquet2json "$1" schema
92
96
  }
93
97
  export -f parquet_schema
94
- dvc-utils diff -r $commit^..$commit parquet_schema $path
98
+ dvc-diff -r $commit^..$commit parquet_schema $path
95
99
  ```
96
100
  <details><summary>Output</summary>
97
101
 
@@ -149,7 +153,7 @@ pretty_print_first_row() {
149
153
  parquet2json "$1" cat -l 1 | jq .
150
154
  }
151
155
  export -f pretty_print_first_row
152
- dvc-utils diff -r $commit^..$commit pretty_print_first_row $path
156
+ dvc-diff -r $commit^..$commit pretty_print_first_row $path
153
157
  ```
154
158
 
155
159
  <details><summary>Output</summary>
@@ -208,7 +212,7 @@ parquet_row_count() {
208
212
  parquet2json "$1" rowcount
209
213
  }
210
214
  export -f parquet_row_count
211
- dvc-utils diff -r $commit^..$commit parquet_row_count $path
215
+ dvc-diff -r $commit^..$commit parquet_row_count $path
212
216
  ```
213
217
 
214
218
  This time we get no output; [the given `$commit`][commit] didn't change the row count in the DVC-tracked Parquet file [`$path`][commit path].
@@ -1,2 +1,3 @@
1
1
  [console_scripts]
2
+ dvc-diff = dvc_utils.main:dvc_utils_diff
2
3
  dvc-utils = dvc_utils.main:cli
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='dvc-utils',
5
- version="0.0.5",
5
+ version="0.0.6",
6
6
  description="CLI for diffing DVC files at two commits (or one commit vs. current worktree), optionally passing both through another command first",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown",
@@ -10,6 +10,7 @@ setup(
10
10
  entry_points={
11
11
  'console_scripts': [
12
12
  'dvc-utils = dvc_utils.main:cli',
13
+ 'dvc-diff = dvc_utils.main:dvc_utils_diff',
13
14
  ],
14
15
  },
15
16
  license="MIT",
File without changes
File without changes
File without changes