codeshift 0.7.0__tar.gz → 0.7.3__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 (113) hide show
  1. {codeshift-0.7.0 → codeshift-0.7.3}/PKG-INFO +21 -14
  2. {codeshift-0.7.0 → codeshift-0.7.3}/README.md +20 -13
  3. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/__init__.py +1 -1
  4. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift.egg-info/PKG-INFO +21 -14
  5. {codeshift-0.7.0 → codeshift-0.7.3}/pyproject.toml +1 -1
  6. {codeshift-0.7.0 → codeshift-0.7.3}/LICENSE +0 -0
  7. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/analyzer/__init__.py +0 -0
  8. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/analyzer/risk_assessor.py +0 -0
  9. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/__init__.py +0 -0
  10. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/commands/__init__.py +0 -0
  11. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/commands/apply.py +0 -0
  12. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/commands/auth.py +0 -0
  13. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/commands/diff.py +0 -0
  14. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/commands/health.py +0 -0
  15. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/commands/scan.py +0 -0
  16. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/commands/upgrade.py +0 -0
  17. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/commands/upgrade_all.py +0 -0
  18. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/main.py +0 -0
  19. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/package_manager.py +0 -0
  20. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/cli/quota.py +0 -0
  21. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/__init__.py +0 -0
  22. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/calculator.py +0 -0
  23. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/metrics/__init__.py +0 -0
  24. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/metrics/documentation.py +0 -0
  25. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/metrics/freshness.py +0 -0
  26. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/metrics/migration_readiness.py +0 -0
  27. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/metrics/security.py +0 -0
  28. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/metrics/test_coverage.py +0 -0
  29. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/models.py +0 -0
  30. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/health/report.py +0 -0
  31. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge/__init__.py +0 -0
  32. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge/cache.py +0 -0
  33. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge/generator.py +0 -0
  34. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge/models.py +0 -0
  35. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge/parser.py +0 -0
  36. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge/sources.py +0 -0
  37. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/__init__.py +0 -0
  38. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/aiohttp.yaml +0 -0
  39. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/attrs.yaml +0 -0
  40. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/celery.yaml +0 -0
  41. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/click.yaml +0 -0
  42. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/django.yaml +0 -0
  43. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/fastapi.yaml +0 -0
  44. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/flask.yaml +0 -0
  45. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/httpx.yaml +0 -0
  46. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/marshmallow.yaml +0 -0
  47. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/numpy.yaml +0 -0
  48. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/pandas.yaml +0 -0
  49. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/pydantic.yaml +0 -0
  50. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/pytest.yaml +0 -0
  51. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/requests.yaml +0 -0
  52. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/libraries/sqlalchemy.yaml +0 -0
  53. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/loader.py +0 -0
  54. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/knowledge_base/models.py +0 -0
  55. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/__init__.py +0 -0
  56. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/ast_transforms.py +0 -0
  57. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/engine.py +0 -0
  58. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/llm_migrator.py +0 -0
  59. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/__init__.py +0 -0
  60. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/aiohttp_transformer.py +0 -0
  61. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/attrs_transformer.py +0 -0
  62. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/celery_transformer.py +0 -0
  63. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/click_transformer.py +0 -0
  64. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/django_transformer.py +0 -0
  65. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/fastapi_transformer.py +0 -0
  66. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/flask_transformer.py +0 -0
  67. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/httpx_transformer.py +0 -0
  68. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/marshmallow_transformer.py +0 -0
  69. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/numpy_transformer.py +0 -0
  70. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/pandas_transformer.py +0 -0
  71. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/pydantic_v1_to_v2.py +0 -0
  72. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/pytest_transformer.py +0 -0
  73. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/requests_transformer.py +0 -0
  74. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/migrator/transforms/sqlalchemy_transformer.py +0 -0
  75. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/scanner/__init__.py +0 -0
  76. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/scanner/code_scanner.py +0 -0
  77. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/scanner/dependency_parser.py +0 -0
  78. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/utils/__init__.py +0 -0
  79. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/utils/api_client.py +0 -0
  80. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/utils/cache.py +0 -0
  81. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/utils/config.py +0 -0
  82. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/utils/credential_store.py +0 -0
  83. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/utils/llm_client.py +0 -0
  84. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/validator/__init__.py +0 -0
  85. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/validator/syntax_checker.py +0 -0
  86. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift/validator/test_runner.py +0 -0
  87. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift.egg-info/SOURCES.txt +0 -0
  88. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift.egg-info/dependency_links.txt +0 -0
  89. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift.egg-info/entry_points.txt +0 -0
  90. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift.egg-info/requires.txt +0 -0
  91. {codeshift-0.7.0 → codeshift-0.7.3}/codeshift.egg-info/top_level.txt +0 -0
  92. {codeshift-0.7.0 → codeshift-0.7.3}/setup.cfg +0 -0
  93. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_aiohttp_transforms.py +0 -0
  94. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_attrs_transforms.py +0 -0
  95. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_celery_transforms.py +0 -0
  96. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_click_transforms.py +0 -0
  97. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_code_scanner.py +0 -0
  98. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_django_transforms.py +0 -0
  99. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_fastapi_transforms.py +0 -0
  100. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_flask_transforms.py +0 -0
  101. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_health.py +0 -0
  102. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_httpx_transforms.py +0 -0
  103. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_knowledge_base.py +0 -0
  104. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_marshmallow_transforms.py +0 -0
  105. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_numpy_transforms.py +0 -0
  106. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_pandas_transforms.py +0 -0
  107. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_pydantic_transforms.py +0 -0
  108. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_pydantic_type_inference.py +0 -0
  109. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_pytest_transforms.py +0 -0
  110. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_requests_transforms.py +0 -0
  111. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_risk_assessor.py +0 -0
  112. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_sqlalchemy_transforms.py +0 -0
  113. {codeshift-0.7.0 → codeshift-0.7.3}/tests/test_syntax_checker.py +0 -0
@@ -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,6 +1,9 @@
1
1
  # Codeshift
2
2
 
3
- [![PyPI version](https://badge.fury.io/py/codeshift.svg)](https://pypi.org/project/codeshift/)
3
+ [![CI](https://github.com/Ragab-Technologies/codeshift/actions/workflows/ci.yml/badge.svg)](https://github.com/Ragab-Technologies/codeshift/actions/workflows/ci.yml)
4
+ [![codecov](https://codecov.io/gh/Ragab-Technologies/codeshift/branch/main/graph/badge.svg)](https://codecov.io/gh/Ragab-Technologies/codeshift)
5
+ [![PyPI version](https://img.shields.io/pypi/v/codeshift)](https://pypi.org/project/codeshift/)
6
+ [![Downloads](https://static.pepy.tech/badge/codeshift/month)](https://pepy.tech/project/codeshift)
4
7
  [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
5
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
9
 
@@ -74,25 +77,29 @@ codeshift --help
74
77
  ## Quick Start
75
78
 
76
79
  ```bash
77
- # 1. Scan your project for outdated dependencies
78
- codeshift scan
79
-
80
- # 2. Upgrade a specific library
80
+ pip install codeshift
81
81
  codeshift upgrade pydantic --target 2.5.0
82
+ codeshift diff && codeshift apply
83
+ ```
82
84
 
83
- # 3. Review the proposed changes
84
- codeshift diff
85
+ That's it! Codeshift scans your code, transforms it, and shows exactly what changed.
85
86
 
86
- # 4. Apply the changes
87
- codeshift apply
87
+ ### Before / After
88
88
 
89
- # 5. Run your tests to verify
90
- pytest
91
- ```
89
+ | Pydantic v1 | Pydantic v2 |
90
+ |-------------|-------------|
91
+ | `class Config:` | `model_config = ConfigDict()` |
92
+ | `@validator` | `@field_validator` |
93
+ | `.dict()` | `.model_dump()` |
94
+ | `parse_obj()` | `model_validate()` |
92
95
 
93
- Or upgrade everything at once:
96
+ ### More Options
94
97
 
95
98
  ```bash
99
+ # Scan your project for all outdated dependencies
100
+ codeshift scan
101
+
102
+ # Or upgrade everything at once
96
103
  codeshift upgrade-all
97
104
  ```
98
105
 
@@ -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
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "codeshift"
7
- version = "0.7.0"
7
+ version = "0.7.3"
8
8
  description = "AI-powered CLI tool that migrates Python code to handle breaking dependency changes"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes