Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Nextpy to Pydantic v2 for Enhanced Performance and Compatibility #77

Open
5 tasks
anubrag opened this issue Dec 13, 2023 · 0 comments
Open
5 tasks
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@anubrag
Copy link
Collaborator

anubrag commented Dec 13, 2023

It's time to upgrade Nextpy to Pydantic v2. This migration is crucial to leverage the latest performance improvements and ensure compatibility with other libraries that are also moving to Pydantic v2.

Expected Benefits

  • Performance Improvements: Pydantic v2 comes with significant enhancements in performance, which can positively impact the overall efficiency of Nextpy.
  • Better Compatibility: Keeping up with the latest version ensures that Nextpy remains compatible with other tools and libraries in the ecosystem that rely on Pydantic.
  • Access to New Features: Pydantic v2 introduces new features and improvements, which can be beneficial for future development and feature enhancements in Nextpy.

Potential Challenges & Blockers

  • Dependencies on Other Libraries: Some dependencies like sqlmodel might have compatibility issues that need to be addressed.
  • Internal API Changes: Pydantic v2 has made changes to some of its internal APIs (e.g., ModelField no longer exists). We need to find suitable alternatives or workarounds for these changes.

Call for Contributions

We invite contributors to join in on this upgrade process. Whether you have experience with Pydantic internals or are new to it, your input and help would be valuable.

  • If you have experience with Pydantic v2 or its internals, your guidance can help overcome specific challenges.
  • For those who are new, this could be a great learning opportunity and a way to contribute significantly to the Nextpy project.

Progress Tracking

  • Assess the impact of migration on existing codebase
  • Identify and resolve dependencies issues with sqlmodel
  • Update the Nextpy codebase to adapt to Pydantic v2 API changes
  • Thorough testing to ensure stability post-migration
  • Update documentation to reflect changes

Collaboration and Updates

  • For ongoing discussions, please refer to this thread.
  • Contributors working on related tasks are encouraged to share updates and findings here.
  • Any significant breakthroughs or challenges can be discussed in follow-up comments.

Conclusion

Migrating to Pydantic v2 is an important step for the future of Nextpy. It ensures that our framework stays up-to-date with the latest advancements and continues to integrate smoothly within the broader Python ecosystem.

@anubrag anubrag added enhancement New feature or request help wanted Extra attention is needed labels Dec 13, 2023
@anubrag anubrag assigned anubrag and unassigned anubrag Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant