cksync verifies that your Python project's lockfiles contain the same packages and versions across different dependency management tools. This is especially useful when migrating between tools.
Dependency management tools can resolve dependencies differently. Fortunately, they all store their resolved dependencies in lockfiles. cksync analyzes these lockfiles to:
- Find any version mismatches between tools
- Report detailed differences when found
- Build confidence for safe tool migration
For example, when moving from Poetry to uv, cksync ensures your poetry.lock and uv.lock files specify the same versions for all packages, helping you avoid unexpected issues during the migration process.
- 🚀 Fast Validation: Static analysis; no environment creation required
- 🔒 Build Confidence: Catch version mismatches before they cause production issues
- 🔄 Smooth Migrations: Safely transition between tools like Poetry and uv
- 👥 Team Flexibility: Allow team members to use their preferred tools while maintaining consistency
pip install cksyncBasic comparison of lockfiles in current directory:
cksyncWith custom paths:
cksync --uv-lock uv.lock --poetry-lock poetry.lock --pyproject-toml pyproject.tomlif you don't have a pyproject.toml you can pass in your project name:
cksync --uv-lock uv.lock --poetry-lock poetry.lock --project-name my-projectTry out our example
cksync --poetry-lock src/examples/uv-poetry/poetry.lock --uv-lock src/examples/uv-poetry/uv.lock --pyproject-toml src/examples/uv-poetry/pyproject.tomlMigrating between Python dependency management tools can be challenging, especially for large applications. Some recommendations:
- Use PEP-621 for cross tool compatibility
- Run both tools in parallel during migration periods
- Support developers using different tools during transition phases
- Pin your dependency versions
- Use
cksyncto validate lockfile consistency before deployments
If you are smaller project likely you don't need cksync but it doesn't hurt to check.
cksync is licensed under the MIT License. See the LICENSE file for more details.
- Nick Grisafi - [email protected]
- Thanks to Rich for making terminal output beautiful and helping developers create better CLI experiences.