Python package automatically downloads changes

I really like python because I love interactive development. However, there is one area where python seems short, and that in the area of ​​automatically reloading modified files. Basically, I want to be able to modify the python file on disk and then run the python executable instance to automatically reload the modified module so that I can immediately access my changes in the REPL so that I can test them. Basically, I want some kind of watch command.

I use the bpython shell because I think this is the best available, but this feature is so important to me that I would like to switch to any other python shell that does it right. Is it possible?

+3
source share
2 answers

Something like tail -f in python + reload().

I really think they should make the OS and Python tags mandatory, though.

0
source

If you are trying to "test" your code, you might want to analyze automatic unit tests, rather than testing your code repeatedly and manually. This will allow you to test more code faster and spend less precious, precious development time.

Personally, I use unittestwith py.testas a runner.

0
source

Source: https://habr.com/ru/post/1786245/


All Articles