codeshift 0.7.0__py3-none-any.whl → 0.7.3__py3-none-any.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.
- codeshift/__init__.py +1 -1
- {codeshift-0.7.0.dist-info → codeshift-0.7.3.dist-info}/METADATA +21 -14
- {codeshift-0.7.0.dist-info → codeshift-0.7.3.dist-info}/RECORD +7 -7
- {codeshift-0.7.0.dist-info → codeshift-0.7.3.dist-info}/WHEEL +0 -0
- {codeshift-0.7.0.dist-info → codeshift-0.7.3.dist-info}/entry_points.txt +0 -0
- {codeshift-0.7.0.dist-info → codeshift-0.7.3.dist-info}/licenses/LICENSE +0 -0
- {codeshift-0.7.0.dist-info → codeshift-0.7.3.dist-info}/top_level.txt +0 -0
codeshift/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codeshift
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: AI-powered CLI tool that migrates Python code to handle breaking dependency changes
|
|
5
5
|
Author: Ragab Technologies
|
|
6
6
|
License: MIT
|
|
@@ -44,7 +44,10 @@ Dynamic: license-file
|
|
|
44
44
|
|
|
45
45
|
# Codeshift
|
|
46
46
|
|
|
47
|
-
[](https://github.com/Ragab-Technologies/codeshift/actions/workflows/ci.yml)
|
|
48
|
+
[](https://codecov.io/gh/Ragab-Technologies/codeshift)
|
|
49
|
+
[](https://pypi.org/project/codeshift/)
|
|
50
|
+
[](https://pepy.tech/project/codeshift)
|
|
48
51
|
[](https://www.python.org/downloads/)
|
|
49
52
|
[](LICENSE)
|
|
50
53
|
|
|
@@ -118,25 +121,29 @@ codeshift --help
|
|
|
118
121
|
## Quick Start
|
|
119
122
|
|
|
120
123
|
```bash
|
|
121
|
-
|
|
122
|
-
codeshift scan
|
|
123
|
-
|
|
124
|
-
# 2. Upgrade a specific library
|
|
124
|
+
pip install codeshift
|
|
125
125
|
codeshift upgrade pydantic --target 2.5.0
|
|
126
|
+
codeshift diff && codeshift apply
|
|
127
|
+
```
|
|
126
128
|
|
|
127
|
-
|
|
128
|
-
codeshift diff
|
|
129
|
+
That's it! Codeshift scans your code, transforms it, and shows exactly what changed.
|
|
129
130
|
|
|
130
|
-
|
|
131
|
-
codeshift apply
|
|
131
|
+
### Before / After
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
| Pydantic v1 | Pydantic v2 |
|
|
134
|
+
|-------------|-------------|
|
|
135
|
+
| `class Config:` | `model_config = ConfigDict()` |
|
|
136
|
+
| `@validator` | `@field_validator` |
|
|
137
|
+
| `.dict()` | `.model_dump()` |
|
|
138
|
+
| `parse_obj()` | `model_validate()` |
|
|
136
139
|
|
|
137
|
-
|
|
140
|
+
### More Options
|
|
138
141
|
|
|
139
142
|
```bash
|
|
143
|
+
# Scan your project for all outdated dependencies
|
|
144
|
+
codeshift scan
|
|
145
|
+
|
|
146
|
+
# Or upgrade everything at once
|
|
140
147
|
codeshift upgrade-all
|
|
141
148
|
```
|
|
142
149
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
codeshift/__init__.py,sha256=
|
|
1
|
+
codeshift/__init__.py,sha256=IgqGM-QFk67tCA5P_i62lIvKs_YT8iumBgJ4GUZfSyg,202
|
|
2
2
|
codeshift/analyzer/__init__.py,sha256=m61k8rtOyHQNoPLDeoe0S9WSy9syvCyMgLZ07ojpoNU,188
|
|
3
3
|
codeshift/analyzer/risk_assessor.py,sha256=nKplyymbsqcbsZyDLVZ2zukpQlPD5KIvO-FBJ4AZFYc,13422
|
|
4
4
|
codeshift/cli/__init__.py,sha256=rf0c8oMqzYktdLH8ga2sA7rS5GsJse8dGfIbfW4DDXo,87
|
|
@@ -79,9 +79,9 @@ codeshift/utils/llm_client.py,sha256=NNVBJIl0dbxU9PMOJuSdDCTvRZFNetgJIkmjVSjEM0c
|
|
|
79
79
|
codeshift/validator/__init__.py,sha256=WRQSfJ7eLJdjR2_f_dXSaBtfawkvu1Dlu20Gh76D12c,280
|
|
80
80
|
codeshift/validator/syntax_checker.py,sha256=FJeLIqhNhV7_Xj2RskHScJZks6A9fybaqv5Z1-MGDfo,5343
|
|
81
81
|
codeshift/validator/test_runner.py,sha256=VX0OqkuI3AJxOUzRW2_BEjdDsMw1N4a0od-pPbSF6O8,6760
|
|
82
|
-
codeshift-0.7.
|
|
83
|
-
codeshift-0.7.
|
|
84
|
-
codeshift-0.7.
|
|
85
|
-
codeshift-0.7.
|
|
86
|
-
codeshift-0.7.
|
|
87
|
-
codeshift-0.7.
|
|
82
|
+
codeshift-0.7.3.dist-info/licenses/LICENSE,sha256=mHKnse9JK19WRK76lYEwKB9nJWyzMzRpG4gkUtbTyac,1066
|
|
83
|
+
codeshift-0.7.3.dist-info/METADATA,sha256=-e486E0pgZdy_uuRZ5rXoeRgMZm3QonjQxdPJXSGsCE,17497
|
|
84
|
+
codeshift-0.7.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
85
|
+
codeshift-0.7.3.dist-info/entry_points.txt,sha256=AlJ8V7a2pNyu-9UiRKUWiTMIJtaYAUnlg53Y-wFHiK0,53
|
|
86
|
+
codeshift-0.7.3.dist-info/top_level.txt,sha256=Ct42mtGs5foZ4MyYSksd5rXP0qFhWSZz8Y8mON0EEds,10
|
|
87
|
+
codeshift-0.7.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|