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 CHANGED
@@ -4,5 +4,5 @@ Codeshift - AI-powered CLI tool for migrating Python code to handle breaking dep
4
4
  Don't just flag the update. Fix the break.
5
5
  """
6
6
 
7
- __version__ = "0.7.0"
7
+ __version__ = "0.7.3"
8
8
  __author__ = "Codeshift Team"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codeshift
3
- Version: 0.7.0
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
- [![PyPI version](https://badge.fury.io/py/codeshift.svg)](https://pypi.org/project/codeshift/)
47
+ [![CI](https://github.com/Ragab-Technologies/codeshift/actions/workflows/ci.yml/badge.svg)](https://github.com/Ragab-Technologies/codeshift/actions/workflows/ci.yml)
48
+ [![codecov](https://codecov.io/gh/Ragab-Technologies/codeshift/branch/main/graph/badge.svg)](https://codecov.io/gh/Ragab-Technologies/codeshift)
49
+ [![PyPI version](https://img.shields.io/pypi/v/codeshift)](https://pypi.org/project/codeshift/)
50
+ [![Downloads](https://static.pepy.tech/badge/codeshift/month)](https://pepy.tech/project/codeshift)
48
51
  [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
49
52
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
50
53
 
@@ -118,25 +121,29 @@ codeshift --help
118
121
  ## Quick Start
119
122
 
120
123
  ```bash
121
- # 1. Scan your project for outdated dependencies
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
- # 3. Review the proposed changes
128
- codeshift diff
129
+ That's it! Codeshift scans your code, transforms it, and shows exactly what changed.
129
130
 
130
- # 4. Apply the changes
131
- codeshift apply
131
+ ### Before / After
132
132
 
133
- # 5. Run your tests to verify
134
- pytest
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
- Or upgrade everything at once:
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=PqYe0Tu6RgBALNREdCA84JuTWQPa29eB4_cBTueBalc,202
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.0.dist-info/licenses/LICENSE,sha256=mHKnse9JK19WRK76lYEwKB9nJWyzMzRpG4gkUtbTyac,1066
83
- codeshift-0.7.0.dist-info/METADATA,sha256=CYqRP2CSoxpilkxYx8yxz3ceoofvLFsOW29YtSvTNkw,16841
84
- codeshift-0.7.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
85
- codeshift-0.7.0.dist-info/entry_points.txt,sha256=AlJ8V7a2pNyu-9UiRKUWiTMIJtaYAUnlg53Y-wFHiK0,53
86
- codeshift-0.7.0.dist-info/top_level.txt,sha256=Ct42mtGs5foZ4MyYSksd5rXP0qFhWSZz8Y8mON0EEds,10
87
- codeshift-0.7.0.dist-info/RECORD,,
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,,