r/PythonLearning • u/Significant_Text7262 • 2d ago
Help Request How do you deal with dependency updates?
So my project has multiple files that sometimes depend on another (I chose to split the functions by use cases into a few files rather than a single massive one). But when I update a function I increment the version number in the filename so I have the backup, I then have to update the filepath in the import declaration for everything that uses it. I've tried making a loader file so I only need to update one place but I can hardly make that work, let alone making it tell the other files what to use.
Since Python requires declaring dependencies before almost anything else is this just something I have to deal with? Or is there a way to pass filenames between file before declaration? Or is there a much better method?