In Rust, you can use features to gate entire sections of your application behind flags you set at build/dependency install time.
This allows you to, for example, enable "all" features, which is great for developers, or enable just "client" features, for released software (that may not need all the extra packages you use when debugging, like deepdiff).
Is there a way to do this in any of the major Python package managers (pip, poetry, anaconda)?