slashpeak 0.1.0__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.
@@ -0,0 +1,8 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .pytest_cache/
8
+ .DS_Store
@@ -0,0 +1,55 @@
1
+ Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16
+
17
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
+
19
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
+
21
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22
+
23
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24
+
25
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26
+
27
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28
+
29
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30
+
31
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
+
33
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34
+
35
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36
+
37
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
+
39
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
40
+
41
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
42
+
43
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,121 @@
1
+ Metadata-Version: 2.5
2
+ Name: slashpeak
3
+ Version: 0.1.0
4
+ Summary: SlashPeak Job Router: run each warehouse query where it costs less (BigQuery today).
5
+ Project-URL: Homepage, https://slashpeak.com
6
+ Project-URL: Source, https://github.com/slashpeak/slashpeak-python-sdk
7
+ Author-email: SlashPeak <slashpeak@proton.me>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ Keywords: bigquery,cost,finops,reservations
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Database
16
+ Requires-Python: >=3.9
17
+ Requires-Dist: requests<3,>=2.25
18
+ Requires-Dist: urllib3>=1.26
19
+ Provides-Extra: bigquery
20
+ Requires-Dist: google-cloud-bigquery<4,>=3.0; extra == 'bigquery'
21
+ Provides-Extra: test
22
+ Requires-Dist: google-cloud-bigquery<4,>=3.0; extra == 'test'
23
+ Requires-Dist: pytest>=7; extra == 'test'
24
+ Description-Content-Type: text/markdown
25
+
26
+ # slashpeak
27
+
28
+ SlashPeak Job Router for Python. Before each warehouse job starts, the SDK asks the router where the
29
+ job costs less. For BigQuery that means on-demand, or a reservation you allowed. The router answers
30
+ from your own job history. If the answer is "move", the SDK sets the job's `reservation` field. Your
31
+ SQL, project, location, destination, priority and cache settings never change.
32
+
33
+ Supported today: BigQuery ([google-cloud-bigquery](https://pypi.org/project/google-cloud-bigquery/)).
34
+ More warehouses will come as add-ons to this same package, sharing one key and one connection pool.
35
+
36
+ ## Install
37
+
38
+ ```bash
39
+ pip install "slashpeak[bigquery]"
40
+ ```
41
+
42
+ ```python
43
+ import slashpeak
44
+
45
+ slashpeak.install() # hooks every supported library that is installed
46
+ ```
47
+
48
+ Or BigQuery only, or one client only:
49
+
50
+ ```python
51
+ import slashpeak.bigquery
52
+ from google.cloud import bigquery
53
+
54
+ slashpeak.bigquery.install() # every BigQuery client
55
+ client = slashpeak.bigquery.wrap(bigquery.Client()) # or just this one
56
+ ```
57
+
58
+ Then check your setup:
59
+
60
+ ```bash
61
+ slashpeak doctor # key, network path, reservation access
62
+ slashpeak doctor --latency # also 20 warm round trips
63
+ ```
64
+
65
+ ## Settings
66
+
67
+ | Variable | Default | Meaning |
68
+ |---|---|---|
69
+ | `SLASHPEAK_API_KEY` | none | A **router** key from the Router page. Without it the SDK does nothing. |
70
+ | `SLASHPEAK_MODE` | `active` | `off`, `shadow` or `active`. The stricter of this and the Router page wins. |
71
+ | `SLASHPEAK_ENDPOINT` | `https://router.slashpeak.com` | HTTPS only. |
72
+ | `SLASHPEAK_SEND_PARAM_VALUES` | on | Send query parameter values (masked first). Off if this or the Router page says off. |
73
+ | `HTTPS_PROXY`, `NO_PROXY` | | Honored. |
74
+
75
+ ## Safety rules
76
+
77
+ - **Fail open.** Any error, or no answer within 500 ms (DNS included), and the job runs exactly as
78
+ you wrote it. After 5 failures in a row the SDK stops asking for 30 s.
79
+ - **Never fails a job that would have run.** If BigQuery refuses a changed job at insert (a 4xx, for
80
+ example no permission on the reservation), the SDK runs your original request once, with the same
81
+ job id, and reports `fallback`. On the `jobs.query` path (`query_and_wait`), BigQuery also returns a
82
+ 4xx for a query that ran and failed, so the SDK re-runs only when the error names the reservation or
83
+ a label. A failed query is never run twice.
84
+ - **PII is masked before anything leaves your process**: emails, phone numbers, IP addresses, and the
85
+ patterns you add on the Router page. Backtick-quoted names are left alone.
86
+ - **Never touched:** jobs with an explicit `reservation`, dry runs, load, copy, extract and continuous
87
+ jobs, and SQL with `/* slashpeak:off */`. To skip one block of code: `with slashpeak.bigquery.bypass(): ...`
88
+ - **No extra BigQuery calls.** Job results are read from responses the library already fetches.
89
+ - **Never logs** SQL, values or keys.
90
+
91
+ ## Connections
92
+
93
+ - One pooled HTTPS session per process, HTTP/1.1 keep-alive: a warm call pays no TCP or TLS handshake.
94
+ - Separate connect (200 ms) and read (500 ms) timeouts, plus a hard 500 ms deadline on a 4-thread pool.
95
+ - No hidden retries and no redirects. No cookies. TLS is always verified.
96
+ - Fork safe (Airflow, Celery, gunicorn): a child process builds its own connections and threads.
97
+ - Events are batched every 2 s (at most 100 per call, bounded queue) and flushed for at most 1 s at exit.
98
+
99
+ ## Contract
100
+
101
+ `spec/` holds the router contract this SDK is tested against:
102
+
103
+ - `openapi.json`: the HTTP API (`GET https://router.slashpeak.com/v1/openapi.json` serves the same file).
104
+ - `mask_vectors.json`: the PII masking rules and test vectors.
105
+
106
+ The SDK never fingerprints queries. The server does that, so a fingerprint change never needs an SDK release.
107
+
108
+ ## Develop
109
+
110
+ ```bash
111
+ uv venv && uv pip install -e '.[test]'
112
+ .venv/bin/python -m pytest
113
+ ```
114
+
115
+ ## Security
116
+
117
+ Report a vulnerability to security@slashpeak.com. Please do not open a public issue for it.
118
+
119
+ ## License
120
+
121
+ Apache-2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,96 @@
1
+ # slashpeak
2
+
3
+ SlashPeak Job Router for Python. Before each warehouse job starts, the SDK asks the router where the
4
+ job costs less. For BigQuery that means on-demand, or a reservation you allowed. The router answers
5
+ from your own job history. If the answer is "move", the SDK sets the job's `reservation` field. Your
6
+ SQL, project, location, destination, priority and cache settings never change.
7
+
8
+ Supported today: BigQuery ([google-cloud-bigquery](https://pypi.org/project/google-cloud-bigquery/)).
9
+ More warehouses will come as add-ons to this same package, sharing one key and one connection pool.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ pip install "slashpeak[bigquery]"
15
+ ```
16
+
17
+ ```python
18
+ import slashpeak
19
+
20
+ slashpeak.install() # hooks every supported library that is installed
21
+ ```
22
+
23
+ Or BigQuery only, or one client only:
24
+
25
+ ```python
26
+ import slashpeak.bigquery
27
+ from google.cloud import bigquery
28
+
29
+ slashpeak.bigquery.install() # every BigQuery client
30
+ client = slashpeak.bigquery.wrap(bigquery.Client()) # or just this one
31
+ ```
32
+
33
+ Then check your setup:
34
+
35
+ ```bash
36
+ slashpeak doctor # key, network path, reservation access
37
+ slashpeak doctor --latency # also 20 warm round trips
38
+ ```
39
+
40
+ ## Settings
41
+
42
+ | Variable | Default | Meaning |
43
+ |---|---|---|
44
+ | `SLASHPEAK_API_KEY` | none | A **router** key from the Router page. Without it the SDK does nothing. |
45
+ | `SLASHPEAK_MODE` | `active` | `off`, `shadow` or `active`. The stricter of this and the Router page wins. |
46
+ | `SLASHPEAK_ENDPOINT` | `https://router.slashpeak.com` | HTTPS only. |
47
+ | `SLASHPEAK_SEND_PARAM_VALUES` | on | Send query parameter values (masked first). Off if this or the Router page says off. |
48
+ | `HTTPS_PROXY`, `NO_PROXY` | | Honored. |
49
+
50
+ ## Safety rules
51
+
52
+ - **Fail open.** Any error, or no answer within 500 ms (DNS included), and the job runs exactly as
53
+ you wrote it. After 5 failures in a row the SDK stops asking for 30 s.
54
+ - **Never fails a job that would have run.** If BigQuery refuses a changed job at insert (a 4xx, for
55
+ example no permission on the reservation), the SDK runs your original request once, with the same
56
+ job id, and reports `fallback`. On the `jobs.query` path (`query_and_wait`), BigQuery also returns a
57
+ 4xx for a query that ran and failed, so the SDK re-runs only when the error names the reservation or
58
+ a label. A failed query is never run twice.
59
+ - **PII is masked before anything leaves your process**: emails, phone numbers, IP addresses, and the
60
+ patterns you add on the Router page. Backtick-quoted names are left alone.
61
+ - **Never touched:** jobs with an explicit `reservation`, dry runs, load, copy, extract and continuous
62
+ jobs, and SQL with `/* slashpeak:off */`. To skip one block of code: `with slashpeak.bigquery.bypass(): ...`
63
+ - **No extra BigQuery calls.** Job results are read from responses the library already fetches.
64
+ - **Never logs** SQL, values or keys.
65
+
66
+ ## Connections
67
+
68
+ - One pooled HTTPS session per process, HTTP/1.1 keep-alive: a warm call pays no TCP or TLS handshake.
69
+ - Separate connect (200 ms) and read (500 ms) timeouts, plus a hard 500 ms deadline on a 4-thread pool.
70
+ - No hidden retries and no redirects. No cookies. TLS is always verified.
71
+ - Fork safe (Airflow, Celery, gunicorn): a child process builds its own connections and threads.
72
+ - Events are batched every 2 s (at most 100 per call, bounded queue) and flushed for at most 1 s at exit.
73
+
74
+ ## Contract
75
+
76
+ `spec/` holds the router contract this SDK is tested against:
77
+
78
+ - `openapi.json`: the HTTP API (`GET https://router.slashpeak.com/v1/openapi.json` serves the same file).
79
+ - `mask_vectors.json`: the PII masking rules and test vectors.
80
+
81
+ The SDK never fingerprints queries. The server does that, so a fingerprint change never needs an SDK release.
82
+
83
+ ## Develop
84
+
85
+ ```bash
86
+ uv venv && uv pip install -e '.[test]'
87
+ .venv/bin/python -m pytest
88
+ ```
89
+
90
+ ## Security
91
+
92
+ Report a vulnerability to security@slashpeak.com. Please do not open a public issue for it.
93
+
94
+ ## License
95
+
96
+ Apache-2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,7 @@
1
+ # Security policy
2
+
3
+ Report a vulnerability to **security@slashpeak.com**. Please do not open a public issue for it.
4
+
5
+ Tell us the version, what you found, and how to reproduce it. We reply within 3 business days.
6
+
7
+ Only the latest release gets security fixes.
@@ -0,0 +1,49 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.24"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "slashpeak"
7
+ dynamic = ["version"]
8
+ description = "SlashPeak Job Router: run each warehouse query where it costs less (BigQuery today)."
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.9"
13
+ authors = [{ name = "SlashPeak", email = "slashpeak@proton.me" }]
14
+ keywords = ["bigquery", "cost", "reservations", "finops"]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Intended Audience :: Developers",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3",
20
+ "Topic :: Database",
21
+ ]
22
+ dependencies = [
23
+ "requests>=2.25,<3",
24
+ "urllib3>=1.26",
25
+ ]
26
+
27
+ [project.optional-dependencies]
28
+ bigquery = ["google-cloud-bigquery>=3.0,<4"]
29
+ test = ["pytest>=7", "google-cloud-bigquery>=3.0,<4"]
30
+
31
+ [project.urls]
32
+ Homepage = "https://slashpeak.com"
33
+ Source = "https://github.com/slashpeak/slashpeak-python-sdk"
34
+
35
+ [project.scripts]
36
+ slashpeak = "slashpeak.cli:main"
37
+
38
+ [tool.hatch.version]
39
+ path = "src/slashpeak/_version.py"
40
+
41
+ [tool.hatch.build.targets.sdist]
42
+ include = ["src", "tests", "spec", "README.md", "LICENSE", "SECURITY.md"]
43
+
44
+ [tool.hatch.build.targets.wheel]
45
+ packages = ["src/slashpeak"]
46
+
47
+ [tool.pytest.ini_options]
48
+ testpaths = ["tests"]
49
+ addopts = "-q"
@@ -0,0 +1,78 @@
1
+ {
2
+ "description": "Job Router masking vectors: the scan's PII mask (RE2). The server (re2js) and every SDK must turn each `sql` into `masked` with `builtinRules` (in order) plus `patterns`. Copied to the SDK repo as spec/mask_vectors.json.",
3
+ "builtinRules": [
4
+ {
5
+ "pattern": "\\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}\\b",
6
+ "token": "<email>"
7
+ },
8
+ {
9
+ "pattern": "\\+\\d(?:[-.\\s()]{0,2}\\d){6,14}\\b|(?:\\b1[-.\\s])?(?:\\(\\d{3}\\)[-.\\s]?|\\b\\d{3}[-.\\s])\\d{3}[-.\\s]\\d{4}\\b",
10
+ "token": "<phone>"
11
+ },
12
+ {
13
+ "pattern": "\\b(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\b",
14
+ "token": "<ip>"
15
+ },
16
+ {
17
+ "pattern": "\\b(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}\\b|\\b(?:[0-9a-fA-F]{1,4}:){1,6}(?::[0-9a-fA-F]{1,4}){1,6}\\b|\\b(?:[0-9a-fA-F]{1,4}:){1,7}:|::(?:[0-9a-fA-F]{1,4}:){0,6}[0-9a-fA-F]{1,4}\\b",
18
+ "token": "<ip>"
19
+ }
20
+ ],
21
+ "customToken": "<redacted>",
22
+ "vectors": [
23
+ {
24
+ "sql": "SELECT * FROM t WHERE email = 'ann@example.com'",
25
+ "masked": "SELECT * FROM t WHERE email = '<email>'"
26
+ },
27
+ {
28
+ "sql": "WHERE phone IN ('+44 20 7946 0958', '(555) 123-4567')",
29
+ "masked": "WHERE phone IN ('<phone>', '<phone>')"
30
+ },
31
+ {
32
+ "sql": "WHERE ip = '10.0.0.12' OR ip6 = '2001:db8::1'",
33
+ "masked": "WHERE ip = '<ip>' OR ip6 = '<ip>'"
34
+ },
35
+ {
36
+ "sql": "SELECT * FROM `proj.ds.ann@example.com` WHERE a = 'ann@example.com'",
37
+ "masked": "SELECT * FROM `proj.ds.ann@example.com` WHERE a = '<email>'"
38
+ },
39
+ {
40
+ "sql": "WHERE id = 'ACCT-123456'",
41
+ "masked": "WHERE id = '<redacted>'",
42
+ "patterns": [
43
+ "ACCT-\\d+"
44
+ ]
45
+ },
46
+ {
47
+ "sql": "WHERE id = 'acct-9'",
48
+ "masked": "WHERE id = '<redacted>'",
49
+ "patterns": [
50
+ "(?i)ACCT-\\d+"
51
+ ]
52
+ },
53
+ {
54
+ "sql": "SELECT 1",
55
+ "masked": "SELECT 1"
56
+ },
57
+ {
58
+ "sql": "",
59
+ "masked": ""
60
+ },
61
+ {
62
+ "sql": "a ` b",
63
+ "masked": "a ` b"
64
+ },
65
+ {
66
+ "sql": "x = '555 123 4567'",
67
+ "masked": "x = '555 123 4567'"
68
+ },
69
+ {
70
+ "sql": "x = '555 123 4567'",
71
+ "masked": "x = '<phone>'"
72
+ },
73
+ {
74
+ "sql": "x = '$1 ann@example.com'",
75
+ "masked": "x = '$1 <email>'"
76
+ }
77
+ ]
78
+ }