depkeeper 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.
Files changed (40) hide show
  1. depkeeper-0.1.0/LICENSE +201 -0
  2. depkeeper-0.1.0/PKG-INFO +223 -0
  3. depkeeper-0.1.0/README.md +169 -0
  4. depkeeper-0.1.0/depkeeper/__init__.py +32 -0
  5. depkeeper-0.1.0/depkeeper/__main__.py +45 -0
  6. depkeeper-0.1.0/depkeeper/__version__.py +12 -0
  7. depkeeper-0.1.0/depkeeper/cli.py +169 -0
  8. depkeeper-0.1.0/depkeeper/commands/__init__.py +0 -0
  9. depkeeper-0.1.0/depkeeper/commands/check.py +604 -0
  10. depkeeper-0.1.0/depkeeper/commands/update.py +651 -0
  11. depkeeper-0.1.0/depkeeper/config.py +289 -0
  12. depkeeper-0.1.0/depkeeper/constants.py +104 -0
  13. depkeeper-0.1.0/depkeeper/context.py +42 -0
  14. depkeeper-0.1.0/depkeeper/core/__init__.py +27 -0
  15. depkeeper-0.1.0/depkeeper/core/checker.py +458 -0
  16. depkeeper-0.1.0/depkeeper/core/data_store.py +645 -0
  17. depkeeper-0.1.0/depkeeper/core/dependency_analyzer.py +1011 -0
  18. depkeeper-0.1.0/depkeeper/core/parser.py +1138 -0
  19. depkeeper-0.1.0/depkeeper/exceptions.py +218 -0
  20. depkeeper-0.1.0/depkeeper/models/__init__.py +23 -0
  21. depkeeper-0.1.0/depkeeper/models/conflict.py +151 -0
  22. depkeeper-0.1.0/depkeeper/models/package.py +371 -0
  23. depkeeper-0.1.0/depkeeper/models/requirement.py +148 -0
  24. depkeeper-0.1.0/depkeeper/utils/__init__.py +100 -0
  25. depkeeper-0.1.0/depkeeper/utils/console.py +238 -0
  26. depkeeper-0.1.0/depkeeper/utils/filesystem.py +324 -0
  27. depkeeper-0.1.0/depkeeper/utils/http.py +267 -0
  28. depkeeper-0.1.0/depkeeper/utils/logger.py +146 -0
  29. depkeeper-0.1.0/depkeeper/utils/version_utils.py +92 -0
  30. depkeeper-0.1.0/depkeeper.egg-info/PKG-INFO +223 -0
  31. depkeeper-0.1.0/depkeeper.egg-info/SOURCES.txt +38 -0
  32. depkeeper-0.1.0/depkeeper.egg-info/dependency_links.txt +1 -0
  33. depkeeper-0.1.0/depkeeper.egg-info/entry_points.txt +2 -0
  34. depkeeper-0.1.0/depkeeper.egg-info/requires.txt +29 -0
  35. depkeeper-0.1.0/depkeeper.egg-info/top_level.txt +1 -0
  36. depkeeper-0.1.0/pyproject.toml +212 -0
  37. depkeeper-0.1.0/setup.cfg +4 -0
  38. depkeeper-0.1.0/tests/test_config.py +368 -0
  39. depkeeper-0.1.0/tests/test_context.py +122 -0
  40. depkeeper-0.1.0/tests/test_main.py +129 -0
@@ -0,0 +1,201 @@
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 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 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 those 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
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [2025] [Rahul Kaushal]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,223 @@
1
+ Metadata-Version: 2.1
2
+ Name: depkeeper
3
+ Version: 0.1.0
4
+ Summary: Modern Python dependency management for requirements.txt files
5
+ Author: Rahul Kaushal
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/rahulkaushal04/depkeeper
8
+ Project-URL: Documentation, https://rahulkaushal04.github.io/depkeeper/
9
+ Project-URL: Repository, https://github.com/rahulkaushal04/depkeeper
10
+ Project-URL: Bug Tracker, https://github.com/rahulkaushal04/depkeeper/issues
11
+ Project-URL: Changelog, https://github.com/rahulkaushal04/depkeeper/blob/main/CHANGELOG.md
12
+ Keywords: dependencies,requirements,pip,package-management,security,updates
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.8
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Classifier: Topic :: System :: Software Distribution
25
+ Requires-Python: >=3.8
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: click>=8.1.8
29
+ Requires-Dist: packaging>=23.2
30
+ Requires-Dist: httpx[http2]>=0.24.1
31
+ Requires-Dist: rich>=13.9.4
32
+ Requires-Dist: tomli>=2.4.0
33
+ Provides-Extra: dev
34
+ Requires-Dist: pytest>=7.4.4; extra == "dev"
35
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
36
+ Requires-Dist: pytest-asyncio>=0.23.8; extra == "dev"
37
+ Requires-Dist: pytest-mock>=3.14.1; extra == "dev"
38
+ Requires-Dist: pytest-httpx>=0.22.0; extra == "dev"
39
+ Requires-Dist: mypy>=1.14.1; extra == "dev"
40
+ Requires-Dist: types-setuptools; extra == "dev"
41
+ Requires-Dist: pre-commit>=3.5.0; extra == "dev"
42
+ Provides-Extra: test
43
+ Requires-Dist: pytest>=7.4.4; extra == "test"
44
+ Requires-Dist: pytest-cov>=4.1.0; extra == "test"
45
+ Requires-Dist: pytest-asyncio>=0.23.8; extra == "test"
46
+ Requires-Dist: pytest-mock>=3.14.1; extra == "test"
47
+ Requires-Dist: pytest-httpx>=0.22.0; extra == "test"
48
+ Provides-Extra: docs
49
+ Requires-Dist: mkdocs>=1.6.1; extra == "docs"
50
+ Requires-Dist: mkdocs-material>=9.7.1; extra == "docs"
51
+ Requires-Dist: mkdocstrings[python]>=0.26.1; extra == "docs"
52
+ Requires-Dist: pymdown-extensions>=10.15; extra == "docs"
53
+ Requires-Dist: mkdocs-minify-plugin>=0.8.0; extra == "docs"
54
+
55
+ # depkeeper
56
+
57
+ [![Tests](https://github.com/rahulkaushal04/depkeeper/workflows/Tests/badge.svg)](https://github.com/rahulkaushal04/depkeeper/actions)
58
+ [![Coverage](https://codecov.io/gh/rahulkaushal04/depkeeper/branch/main/graph/badge.svg)](https://codecov.io/gh/rahulkaushal04/depkeeper)
59
+ [![PyPI version](https://badge.fury.io/py/depkeeper.svg)](https://badge.fury.io/py/depkeeper)
60
+ [![Python versions](https://img.shields.io/pypi/pyversions/depkeeper.svg)](https://pypi.org/project/depkeeper/)
61
+ [![Downloads](https://static.pepy.tech/badge/depkeeper)](https://pepy.tech/project/depkeeper)
62
+ [![Downloads per month](https://static.pepy.tech/badge/depkeeper/month)](https://pepy.tech/project/depkeeper)
63
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
64
+
65
+ Modern, intelligent Python dependency management for `requirements.txt` files.
66
+ Keep your dependencies up-to-date and conflict-free — without switching from pip.
67
+
68
+ ---
69
+
70
+ ## Features
71
+
72
+ - **Smart Version Checking** — discover available package updates with intelligent recommendations
73
+ - **Dependency Conflict Resolution** — detect and resolve version conflicts automatically
74
+ - **Safe Updates** — never cross major version boundaries to prevent breaking changes
75
+ - **Fast & Concurrent** — async PyPI queries for maximum performance
76
+ - **Beautiful CLI** — rich terminal UI with colors & status indicators
77
+ - **Multiple Output Formats** — table, simple text, or JSON for CI/CD integration
78
+ - **Full Requirements Parsing** — PEP 440/508 compliant with support for `-r`, `-c`, VCS URLs, and more
79
+ - **Flexible** — works alongside pip, not instead of it
80
+
81
+ ### Coming Soon
82
+
83
+ - **Security Scanning** — detect known vulnerabilities
84
+ - **Lock File Generation** — create reproducible environments
85
+ - **Health Scoring** — measure package quality & maintainability
86
+ - **Format Conversion** — import/export between `requirements.txt`, `pyproject.toml`, Pipfile, and more
87
+
88
+ ---
89
+
90
+ ## Quick Start
91
+
92
+ ### Installation
93
+
94
+ ```bash
95
+ pip install depkeeper
96
+ ```
97
+
98
+ ### Basic Usage
99
+
100
+ ```bash
101
+ # Check for available updates
102
+ depkeeper check
103
+
104
+ # Check and show only outdated packages
105
+ depkeeper check --outdated-only
106
+
107
+ # Output as JSON (for CI/CD pipelines)
108
+ depkeeper check --format json
109
+
110
+ # Update all packages to safe versions (within major version)
111
+ depkeeper update
112
+
113
+ # Preview updates without applying
114
+ depkeeper update --dry-run
115
+
116
+ # Update specific packages only
117
+ depkeeper update -p flask -p requests
118
+
119
+ # Create backup before updating and skip confirmation
120
+ depkeeper update --backup -y
121
+ ```
122
+
123
+ ---
124
+
125
+ ## Commands
126
+
127
+ ### `depkeeper check`
128
+
129
+ Analyze your `requirements.txt` file to identify packages with available updates.
130
+
131
+ ```bash
132
+ depkeeper check [FILE] [OPTIONS]
133
+
134
+ Options:
135
+ --outdated-only Show only packages with available updates
136
+ -f, --format [table|simple|json]
137
+ Output format (default: table)
138
+ --strict-version-matching Only use exact version pins
139
+ --check-conflicts Check for dependency conflicts (default: enabled)
140
+ ```
141
+
142
+ ### `depkeeper update`
143
+
144
+ Update packages to their safe recommended versions (within major version boundaries).
145
+
146
+ ```bash
147
+ depkeeper update [FILE] [OPTIONS]
148
+
149
+ Options:
150
+ --dry-run Preview changes without applying
151
+ -y, --yes Skip confirmation prompt
152
+ --backup Create backup file before updating
153
+ -p, --packages TEXT Update only specific packages (repeatable)
154
+ --strict-version-matching Only use exact version pins
155
+ --check-conflicts Check for conflicts (default: enabled)
156
+ ```
157
+
158
+ ---
159
+
160
+ ## Documentation
161
+
162
+ Full documentation will be available soon at **[https://rahulkaushal04.github.io/depkeeper/](https://rahulkaushal04.github.io/depkeeper/)**
163
+
164
+ ---
165
+
166
+ ## Why depkeeper?
167
+
168
+ Depkeeper bridges the gap between pip’s simplicity and Poetry’s sophistication:
169
+
170
+ | pip | poetry | depkeeper |
171
+ | --------------------------- | --------------- | ----------------------------------- |
172
+ | simple | powerful | simple + powerful |
173
+ | minimal tooling | strict workflow | flexible workflow |
174
+ | limited dependency checking | strong resolver | strong resolver + update automation |
175
+ | no conflict detection | automatic | automatic with safe boundaries |
176
+
177
+ **Focus on code — let depkeeper handle dependency hygiene.**
178
+
179
+ ---
180
+
181
+ ## Contributing
182
+
183
+ We welcome contributions of all kinds!
184
+ Please see our **[Contributing Guide](CONTRIBUTING.md)** for details.
185
+
186
+ ### Development Setup
187
+
188
+ ```bash
189
+ # Clone the repository
190
+ git clone https://github.com/rahulkaushal04/depkeeper.git
191
+ cd depkeeper
192
+
193
+ # Run setup script
194
+ bash scripts/setup_dev.sh
195
+
196
+ # Or manually:
197
+ python -m venv venv
198
+ source venv/bin/activate # Windows: venv\Scripts\activate
199
+ pip install -e ".[dev]"
200
+ pre-commit install
201
+ ```
202
+
203
+ ---
204
+
205
+ ## License
206
+
207
+ This project is licensed under the **Apache-2.0 License** — see the [LICENSE](LICENSE) file for details.
208
+
209
+ ---
210
+
211
+ ## Acknowledgments
212
+
213
+ - Built with amazing libraries like **Click**, **Rich**, and **httpx**
214
+ - Inspired by tools such as **pip-tools**, **Poetry**, and **Dependabot**
215
+
216
+ ---
217
+
218
+ ## Support
219
+
220
+ - GitHub Discussions: [https://github.com/rahulkaushal04/depkeeper/discussions](https://github.com/rahulkaushal04/depkeeper/discussions)
221
+ - Issues: [https://github.com/rahulkaushal04/depkeeper/issues](https://github.com/rahulkaushal04/depkeeper/issues)
222
+
223
+ ---
@@ -0,0 +1,169 @@
1
+ # depkeeper
2
+
3
+ [![Tests](https://github.com/rahulkaushal04/depkeeper/workflows/Tests/badge.svg)](https://github.com/rahulkaushal04/depkeeper/actions)
4
+ [![Coverage](https://codecov.io/gh/rahulkaushal04/depkeeper/branch/main/graph/badge.svg)](https://codecov.io/gh/rahulkaushal04/depkeeper)
5
+ [![PyPI version](https://badge.fury.io/py/depkeeper.svg)](https://badge.fury.io/py/depkeeper)
6
+ [![Python versions](https://img.shields.io/pypi/pyversions/depkeeper.svg)](https://pypi.org/project/depkeeper/)
7
+ [![Downloads](https://static.pepy.tech/badge/depkeeper)](https://pepy.tech/project/depkeeper)
8
+ [![Downloads per month](https://static.pepy.tech/badge/depkeeper/month)](https://pepy.tech/project/depkeeper)
9
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
10
+
11
+ Modern, intelligent Python dependency management for `requirements.txt` files.
12
+ Keep your dependencies up-to-date and conflict-free — without switching from pip.
13
+
14
+ ---
15
+
16
+ ## Features
17
+
18
+ - **Smart Version Checking** — discover available package updates with intelligent recommendations
19
+ - **Dependency Conflict Resolution** — detect and resolve version conflicts automatically
20
+ - **Safe Updates** — never cross major version boundaries to prevent breaking changes
21
+ - **Fast & Concurrent** — async PyPI queries for maximum performance
22
+ - **Beautiful CLI** — rich terminal UI with colors & status indicators
23
+ - **Multiple Output Formats** — table, simple text, or JSON for CI/CD integration
24
+ - **Full Requirements Parsing** — PEP 440/508 compliant with support for `-r`, `-c`, VCS URLs, and more
25
+ - **Flexible** — works alongside pip, not instead of it
26
+
27
+ ### Coming Soon
28
+
29
+ - **Security Scanning** — detect known vulnerabilities
30
+ - **Lock File Generation** — create reproducible environments
31
+ - **Health Scoring** — measure package quality & maintainability
32
+ - **Format Conversion** — import/export between `requirements.txt`, `pyproject.toml`, Pipfile, and more
33
+
34
+ ---
35
+
36
+ ## Quick Start
37
+
38
+ ### Installation
39
+
40
+ ```bash
41
+ pip install depkeeper
42
+ ```
43
+
44
+ ### Basic Usage
45
+
46
+ ```bash
47
+ # Check for available updates
48
+ depkeeper check
49
+
50
+ # Check and show only outdated packages
51
+ depkeeper check --outdated-only
52
+
53
+ # Output as JSON (for CI/CD pipelines)
54
+ depkeeper check --format json
55
+
56
+ # Update all packages to safe versions (within major version)
57
+ depkeeper update
58
+
59
+ # Preview updates without applying
60
+ depkeeper update --dry-run
61
+
62
+ # Update specific packages only
63
+ depkeeper update -p flask -p requests
64
+
65
+ # Create backup before updating and skip confirmation
66
+ depkeeper update --backup -y
67
+ ```
68
+
69
+ ---
70
+
71
+ ## Commands
72
+
73
+ ### `depkeeper check`
74
+
75
+ Analyze your `requirements.txt` file to identify packages with available updates.
76
+
77
+ ```bash
78
+ depkeeper check [FILE] [OPTIONS]
79
+
80
+ Options:
81
+ --outdated-only Show only packages with available updates
82
+ -f, --format [table|simple|json]
83
+ Output format (default: table)
84
+ --strict-version-matching Only use exact version pins
85
+ --check-conflicts Check for dependency conflicts (default: enabled)
86
+ ```
87
+
88
+ ### `depkeeper update`
89
+
90
+ Update packages to their safe recommended versions (within major version boundaries).
91
+
92
+ ```bash
93
+ depkeeper update [FILE] [OPTIONS]
94
+
95
+ Options:
96
+ --dry-run Preview changes without applying
97
+ -y, --yes Skip confirmation prompt
98
+ --backup Create backup file before updating
99
+ -p, --packages TEXT Update only specific packages (repeatable)
100
+ --strict-version-matching Only use exact version pins
101
+ --check-conflicts Check for conflicts (default: enabled)
102
+ ```
103
+
104
+ ---
105
+
106
+ ## Documentation
107
+
108
+ Full documentation will be available soon at **[https://rahulkaushal04.github.io/depkeeper/](https://rahulkaushal04.github.io/depkeeper/)**
109
+
110
+ ---
111
+
112
+ ## Why depkeeper?
113
+
114
+ Depkeeper bridges the gap between pip’s simplicity and Poetry’s sophistication:
115
+
116
+ | pip | poetry | depkeeper |
117
+ | --------------------------- | --------------- | ----------------------------------- |
118
+ | simple | powerful | simple + powerful |
119
+ | minimal tooling | strict workflow | flexible workflow |
120
+ | limited dependency checking | strong resolver | strong resolver + update automation |
121
+ | no conflict detection | automatic | automatic with safe boundaries |
122
+
123
+ **Focus on code — let depkeeper handle dependency hygiene.**
124
+
125
+ ---
126
+
127
+ ## Contributing
128
+
129
+ We welcome contributions of all kinds!
130
+ Please see our **[Contributing Guide](CONTRIBUTING.md)** for details.
131
+
132
+ ### Development Setup
133
+
134
+ ```bash
135
+ # Clone the repository
136
+ git clone https://github.com/rahulkaushal04/depkeeper.git
137
+ cd depkeeper
138
+
139
+ # Run setup script
140
+ bash scripts/setup_dev.sh
141
+
142
+ # Or manually:
143
+ python -m venv venv
144
+ source venv/bin/activate # Windows: venv\Scripts\activate
145
+ pip install -e ".[dev]"
146
+ pre-commit install
147
+ ```
148
+
149
+ ---
150
+
151
+ ## License
152
+
153
+ This project is licensed under the **Apache-2.0 License** — see the [LICENSE](LICENSE) file for details.
154
+
155
+ ---
156
+
157
+ ## Acknowledgments
158
+
159
+ - Built with amazing libraries like **Click**, **Rich**, and **httpx**
160
+ - Inspired by tools such as **pip-tools**, **Poetry**, and **Dependabot**
161
+
162
+ ---
163
+
164
+ ## Support
165
+
166
+ - GitHub Discussions: [https://github.com/rahulkaushal04/depkeeper/discussions](https://github.com/rahulkaushal04/depkeeper/discussions)
167
+ - Issues: [https://github.com/rahulkaushal04/depkeeper/issues](https://github.com/rahulkaushal04/depkeeper/issues)
168
+
169
+ ---
@@ -0,0 +1,32 @@
1
+ """
2
+ depkeeper — modern Python dependency management for requirements.txt.
3
+
4
+ depkeeper is an intelligent dependency management tool that helps developers
5
+ keep their ``requirements.txt`` files up to date, secure, and conflict-free.
6
+
7
+ Quick start
8
+ -----------
9
+ Check for available updates::
10
+
11
+ $ depkeeper check
12
+
13
+ Update packages to newer versions::
14
+
15
+ $ depkeeper update
16
+
17
+ Programmatic usage::
18
+
19
+ >>> from depkeeper.core.parser import RequirementsParser
20
+ >>> from depkeeper.core.checker import VersionChecker
21
+ >>> parser = RequirementsParser()
22
+ >>> requirements = parser.parse_file("requirements.txt")
23
+
24
+ For more information, see:
25
+ https://rahulkaushal04.github.io/depkeeper/
26
+ """
27
+
28
+ from __future__ import annotations
29
+
30
+ from depkeeper.__version__ import __version__
31
+
32
+ __all__ = ["__version__"]
@@ -0,0 +1,45 @@
1
+ """
2
+ Module entry point for depkeeper.
3
+
4
+ This file enables execution via ``python -m depkeeper`` and delegates
5
+ control to the main CLI implementation.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ import sys
11
+
12
+
13
+ def main() -> int:
14
+ """Entry point for ``python -m depkeeper``.
15
+
16
+ Returns:
17
+ Exit code:
18
+ 0 Success
19
+ 1 Import or runtime error
20
+ 130 Interrupted by user
21
+ """
22
+ try:
23
+ from depkeeper.cli import main as cli_main
24
+ except ImportError as exc:
25
+ _print_startup_error(exc)
26
+ return 1
27
+
28
+ return cli_main()
29
+
30
+
31
+ def _print_startup_error(exc: ImportError) -> None:
32
+ """Print a helpful error message if the CLI cannot be imported."""
33
+ try:
34
+ from depkeeper.__version__ import __version__
35
+
36
+ sys.stderr.write(f"depkeeper version: {__version__}\n")
37
+ except Exception:
38
+ sys.stderr.write("depkeeper version: <unknown>\n")
39
+
40
+ sys.stderr.write("\n")
41
+ sys.stderr.write(f"ImportError: {exc}\n")
42
+
43
+
44
+ if __name__ == "__main__":
45
+ sys.exit(main())
@@ -0,0 +1,12 @@
1
+ """
2
+ Version information for depkeeper.
3
+
4
+ This module exposes the canonical version string for the depkeeper
5
+ package. It is intentionally isolated to avoid import cycles and to
6
+ allow tools (CLI, packaging, docs) to query the version reliably.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ #: Current depkeeper version (PEP 440 compliant).
12
+ __version__: str = "0.1.0"