prunr 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.
prunr-0.1.0/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026-present Rui Ma
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
prunr-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,183 @@
1
+ Metadata-Version: 2.4
2
+ Name: prunr
3
+ Version: 0.1.0
4
+ Summary: Scan your Elasticsearch/OpenSearch cluster. Find dead indices, wasted storage, and cost savings.
5
+ Author-email: Ricky Ma <ricky.rui.ma@gmail.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/rickyruima/prunr
8
+ Project-URL: Issues, https://github.com/rickyruima/prunr/issues
9
+ Keywords: elasticsearch,opensearch,cost,optimization,observability
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: System Administrators
13
+ Classifier: Topic :: System :: Monitoring
14
+ Requires-Python: >=3.11
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: click>=8.0
18
+ Requires-Dist: rich>=13.0
19
+ Requires-Dist: opensearch-py>=2.4
20
+ Requires-Dist: elasticsearch>=8.0
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest>=8.0; extra == "dev"
23
+ Requires-Dist: ruff>=0.4; extra == "dev"
24
+ Dynamic: license-file
25
+
26
+ # Prunr
27
+
28
+ **Scan your Elasticsearch / OpenSearch cluster. Find dead indices, wasted storage, and cost savings.**
29
+
30
+ Prunr is a read-only CLI tool that connects to your cluster, analyzes index usage patterns, and tells you exactly what you can safely delete, shrink, or archive — with confidence levels and estimated savings.
31
+
32
+ > **Prunr never writes to your cluster.** All operations are read-only. It uses `_cat/indices`, `_stats`, and `_cluster/health` — nothing else.
33
+
34
+ ---
35
+
36
+ ## Install
37
+
38
+ ```bash
39
+ pip install prunr
40
+ ```
41
+
42
+ Or with [pipx](https://pipx.pypa.io/) (recommended):
43
+
44
+ ```bash
45
+ pipx install prunr
46
+ ```
47
+
48
+ Requires Python 3.11+.
49
+
50
+ ## Quick start
51
+
52
+ ```bash
53
+ # Scan a cluster
54
+ prunr scan --host http://localhost:9200
55
+
56
+ # With authentication
57
+ prunr scan --host https://my-cluster:9200 --user admin --password secret
58
+
59
+ # Save JSON report
60
+ prunr scan --host http://localhost:9200 --format json --output report.json
61
+
62
+ # Try it without a cluster (built-in demo data)
63
+ prunr scan --demo
64
+ ```
65
+
66
+ ## Sample output
67
+
68
+ ```
69
+ ╭──────────────────────────────────────────────────────────────────────────────╮
70
+ │ PRUNR CLUSTER REPORT │
71
+ │ Cluster: prod-logging-cluster | 26 indices | 1024.3 GB | 12 nodes │
72
+ │ Scanned: 2026-04-13 01:24:38 UTC │
73
+ ╰──────────────────────────────────────────────────────────────────────────────╯
74
+
75
+ ╭─────────────────────────────── Cost Overview ────────────────────────────────╮
76
+ │ ESTIMATED MONTHLY COST: $102 │
77
+ │ ESTIMATED ANNUAL WASTE: $167 │
78
+ ╰──────────────────────────────────────────────────────────────────────────────╯
79
+
80
+ TOP RECOMMENDATIONS (by annual savings)
81
+
82
+ 1. REVIEW api-access-* (multiple patterns) (90.3 GB)
83
+ Confidence: LOW
84
+ Annual savings: $54
85
+ Reasoning:
86
+ ⚠ Service 'api-access' appears in 2 different index patterns
87
+ ⚠ These may contain overlapping data from multiple pipelines
88
+
89
+ 2. DELETE filebeat-2024.01 (26.1 GB)
90
+ Confidence: MEDIUM
91
+ Annual savings: $31
92
+ Reasoning:
93
+ ⚠ 0 queries since cluster restart
94
+ ⚠ 0 indexing activity
95
+
96
+ 3. DELETE debug-traces-2024.08.15 (11.5 GB)
97
+ Confidence: HIGH
98
+ Annual savings: $14
99
+ Reasoning:
100
+ ✓ 0 queries since cluster restart
101
+ ✓ 0 indexing activity
102
+ ✓ Index name matches low-value pattern: debug-traces-2024.08.15
103
+ ```
104
+
105
+ A full sample JSON report is in [`examples/sample-report.json`](examples/sample-report.json).
106
+
107
+ ## What Prunr detects
108
+
109
+ | Analyzer | What it finds | Action |
110
+ |---|---|---|
111
+ | **Dead index** | Indices with 0 queries and 0 writes since last restart | DELETE |
112
+ | **Retention** | Date-based index series where old indices are never queried | REDUCE RETENTION |
113
+ | **Storage hog** | Largest indices by size — surfaces the biggest saving opportunities | REVIEW |
114
+ | **Duplicate** | Multiple versioned indices (e.g. `logs-v1`, `logs-v2`) that may overlap | REVIEW |
115
+ | **Shard** | Over-sharded indices (many tiny shards wasting cluster memory) | MERGE SHARDS |
116
+
117
+ Each recommendation includes:
118
+ - **Confidence level**: HIGH, MEDIUM, or LOW
119
+ - **Evidence**: specific metrics (query count, indexing rate, size, pattern matches)
120
+ - **Estimated annual savings** in USD (based on `--cost-per-gb`, default $0.10/GB/mo)
121
+
122
+ ## Confidence levels
123
+
124
+ | Level | Meaning |
125
+ |---|---|
126
+ | **HIGH** | Strong evidence — safe to act on after quick verification |
127
+ | **MEDIUM** | Likely waste — worth investigating |
128
+ | **LOW** | Possible issue — needs human review before acting |
129
+
130
+ ## CLI reference
131
+
132
+ ```
133
+ prunr scan [OPTIONS]
134
+
135
+ Options:
136
+ --host TEXT ES/OpenSearch URL (e.g. https://localhost:9200)
137
+ --api-key TEXT API key for authentication
138
+ --user TEXT Username for basic auth
139
+ --password TEXT Password for basic auth
140
+ --cost-per-gb FLOAT Cost per GB per month in USD (default: 0.10)
141
+ --format [terminal|json] Output format (default: terminal)
142
+ --output TEXT Save report to file
143
+ --no-verify-certs Skip TLS certificate verification
144
+ --demo Run with built-in sample data (no cluster needed)
145
+ ```
146
+
147
+ ## Safety
148
+
149
+ Prunr is **strictly read-only**. It will never:
150
+
151
+ - Delete, close, or modify any index
152
+ - Change cluster settings
153
+ - Write data to your cluster
154
+ - Require any write permissions
155
+
156
+ The only APIs it calls are:
157
+ - `GET /` (version check)
158
+ - `GET /_cat/indices`
159
+ - `GET /_stats`
160
+ - `GET /_cluster/health`
161
+
162
+ You can safely run it against production clusters.
163
+
164
+ ## Limitations
165
+
166
+ - Query and indexing counts reset on node restart — Prunr can only see activity since the last restart
167
+ - Cost estimates use a flat $/GB/month rate; real costs depend on instance types, reserved pricing, and I/O
168
+ - Duplicate detection is heuristic (name-pattern based), not content-based
169
+ - Currently supports a single cluster per scan
170
+
171
+ ## Development
172
+
173
+ ```bash
174
+ git clone https://github.com/rickyruima/prunr.git
175
+ cd prunr
176
+ python -m venv .venv && source .venv/bin/activate
177
+ pip install -e ".[dev]"
178
+ pytest -v
179
+ ```
180
+
181
+ ## License
182
+
183
+ Apache-2.0 — see [LICENSE](LICENSE) for details.
prunr-0.1.0/README.md ADDED
@@ -0,0 +1,158 @@
1
+ # Prunr
2
+
3
+ **Scan your Elasticsearch / OpenSearch cluster. Find dead indices, wasted storage, and cost savings.**
4
+
5
+ Prunr is a read-only CLI tool that connects to your cluster, analyzes index usage patterns, and tells you exactly what you can safely delete, shrink, or archive — with confidence levels and estimated savings.
6
+
7
+ > **Prunr never writes to your cluster.** All operations are read-only. It uses `_cat/indices`, `_stats`, and `_cluster/health` — nothing else.
8
+
9
+ ---
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ pip install prunr
15
+ ```
16
+
17
+ Or with [pipx](https://pipx.pypa.io/) (recommended):
18
+
19
+ ```bash
20
+ pipx install prunr
21
+ ```
22
+
23
+ Requires Python 3.11+.
24
+
25
+ ## Quick start
26
+
27
+ ```bash
28
+ # Scan a cluster
29
+ prunr scan --host http://localhost:9200
30
+
31
+ # With authentication
32
+ prunr scan --host https://my-cluster:9200 --user admin --password secret
33
+
34
+ # Save JSON report
35
+ prunr scan --host http://localhost:9200 --format json --output report.json
36
+
37
+ # Try it without a cluster (built-in demo data)
38
+ prunr scan --demo
39
+ ```
40
+
41
+ ## Sample output
42
+
43
+ ```
44
+ ╭──────────────────────────────────────────────────────────────────────────────╮
45
+ │ PRUNR CLUSTER REPORT │
46
+ │ Cluster: prod-logging-cluster | 26 indices | 1024.3 GB | 12 nodes │
47
+ │ Scanned: 2026-04-13 01:24:38 UTC │
48
+ ╰──────────────────────────────────────────────────────────────────────────────╯
49
+
50
+ ╭─────────────────────────────── Cost Overview ────────────────────────────────╮
51
+ │ ESTIMATED MONTHLY COST: $102 │
52
+ │ ESTIMATED ANNUAL WASTE: $167 │
53
+ ╰──────────────────────────────────────────────────────────────────────────────╯
54
+
55
+ TOP RECOMMENDATIONS (by annual savings)
56
+
57
+ 1. REVIEW api-access-* (multiple patterns) (90.3 GB)
58
+ Confidence: LOW
59
+ Annual savings: $54
60
+ Reasoning:
61
+ ⚠ Service 'api-access' appears in 2 different index patterns
62
+ ⚠ These may contain overlapping data from multiple pipelines
63
+
64
+ 2. DELETE filebeat-2024.01 (26.1 GB)
65
+ Confidence: MEDIUM
66
+ Annual savings: $31
67
+ Reasoning:
68
+ ⚠ 0 queries since cluster restart
69
+ ⚠ 0 indexing activity
70
+
71
+ 3. DELETE debug-traces-2024.08.15 (11.5 GB)
72
+ Confidence: HIGH
73
+ Annual savings: $14
74
+ Reasoning:
75
+ ✓ 0 queries since cluster restart
76
+ ✓ 0 indexing activity
77
+ ✓ Index name matches low-value pattern: debug-traces-2024.08.15
78
+ ```
79
+
80
+ A full sample JSON report is in [`examples/sample-report.json`](examples/sample-report.json).
81
+
82
+ ## What Prunr detects
83
+
84
+ | Analyzer | What it finds | Action |
85
+ |---|---|---|
86
+ | **Dead index** | Indices with 0 queries and 0 writes since last restart | DELETE |
87
+ | **Retention** | Date-based index series where old indices are never queried | REDUCE RETENTION |
88
+ | **Storage hog** | Largest indices by size — surfaces the biggest saving opportunities | REVIEW |
89
+ | **Duplicate** | Multiple versioned indices (e.g. `logs-v1`, `logs-v2`) that may overlap | REVIEW |
90
+ | **Shard** | Over-sharded indices (many tiny shards wasting cluster memory) | MERGE SHARDS |
91
+
92
+ Each recommendation includes:
93
+ - **Confidence level**: HIGH, MEDIUM, or LOW
94
+ - **Evidence**: specific metrics (query count, indexing rate, size, pattern matches)
95
+ - **Estimated annual savings** in USD (based on `--cost-per-gb`, default $0.10/GB/mo)
96
+
97
+ ## Confidence levels
98
+
99
+ | Level | Meaning |
100
+ |---|---|
101
+ | **HIGH** | Strong evidence — safe to act on after quick verification |
102
+ | **MEDIUM** | Likely waste — worth investigating |
103
+ | **LOW** | Possible issue — needs human review before acting |
104
+
105
+ ## CLI reference
106
+
107
+ ```
108
+ prunr scan [OPTIONS]
109
+
110
+ Options:
111
+ --host TEXT ES/OpenSearch URL (e.g. https://localhost:9200)
112
+ --api-key TEXT API key for authentication
113
+ --user TEXT Username for basic auth
114
+ --password TEXT Password for basic auth
115
+ --cost-per-gb FLOAT Cost per GB per month in USD (default: 0.10)
116
+ --format [terminal|json] Output format (default: terminal)
117
+ --output TEXT Save report to file
118
+ --no-verify-certs Skip TLS certificate verification
119
+ --demo Run with built-in sample data (no cluster needed)
120
+ ```
121
+
122
+ ## Safety
123
+
124
+ Prunr is **strictly read-only**. It will never:
125
+
126
+ - Delete, close, or modify any index
127
+ - Change cluster settings
128
+ - Write data to your cluster
129
+ - Require any write permissions
130
+
131
+ The only APIs it calls are:
132
+ - `GET /` (version check)
133
+ - `GET /_cat/indices`
134
+ - `GET /_stats`
135
+ - `GET /_cluster/health`
136
+
137
+ You can safely run it against production clusters.
138
+
139
+ ## Limitations
140
+
141
+ - Query and indexing counts reset on node restart — Prunr can only see activity since the last restart
142
+ - Cost estimates use a flat $/GB/month rate; real costs depend on instance types, reserved pricing, and I/O
143
+ - Duplicate detection is heuristic (name-pattern based), not content-based
144
+ - Currently supports a single cluster per scan
145
+
146
+ ## Development
147
+
148
+ ```bash
149
+ git clone https://github.com/rickyruima/prunr.git
150
+ cd prunr
151
+ python -m venv .venv && source .venv/bin/activate
152
+ pip install -e ".[dev]"
153
+ pytest -v
154
+ ```
155
+
156
+ ## License
157
+
158
+ Apache-2.0 — see [LICENSE](LICENSE) for details.
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "prunr"
7
+ version = "0.1.0"
8
+ description = "Scan your Elasticsearch/OpenSearch cluster. Find dead indices, wasted storage, and cost savings."
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ requires-python = ">=3.11"
12
+ authors = [{ name = "Ricky Ma", email = "ricky.rui.ma@gmail.com" }]
13
+ keywords = ["elasticsearch", "opensearch", "cost", "optimization", "observability"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Environment :: Console",
17
+ "Intended Audience :: System Administrators",
18
+ "Topic :: System :: Monitoring",
19
+ ]
20
+ dependencies = [
21
+ "click>=8.0",
22
+ "rich>=13.0",
23
+ "opensearch-py>=2.4",
24
+ "elasticsearch>=8.0",
25
+ ]
26
+
27
+ [project.optional-dependencies]
28
+ dev = ["pytest>=8.0", "ruff>=0.4"]
29
+
30
+ [project.scripts]
31
+ prunr = "prunr.cli:main"
32
+
33
+ [project.urls]
34
+ Homepage = "https://github.com/rickyruima/prunr"
35
+ Issues = "https://github.com/rickyruima/prunr/issues"
36
+
37
+ [tool.ruff]
38
+ target-version = "py311"
39
+ line-length = 100
40
+
41
+ [tool.pytest.ini_options]
42
+ testpaths = ["tests"]
prunr-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """Prunr — Find dead indices, wasted storage, and cost savings in your ES/OpenSearch cluster."""
2
+
3
+ __version__ = "0.1.0"