Skip to content

ImportSpy 0.1.10 - Feature Enhancements and Improvements 🚀

Choose a tag to compare

@atellaluca atellaluca released this 18 Nov 22:15
· 379 commits to main since this release
6103e0c

What's New in Version 0.1.10

🔥 New Features:

  • Environment Variable Support:
    • You can now define env_vars as a dictionary in SpyModel, enabling validation of required environment variables and their values.
    • Example:
      env_vars: dict = {
          "CI": "true",
          "DATA_PATH": "/data/"
      }

🔧 Improvements:

  • Enhanced Variables Validation:
    • Variables are now represented as a dictionary in SpyModel (variables: dict), allowing developers to validate both the names and the expected values of module-level variables.
    • Example:
      variables: dict = {
          "default_timeout": "30",
          "max_connections": "100"
      }
  • name Field in Classes Now Mandatory:
    • The name field in ClassModel is now required, ensuring clarity and consistency in class validation.

How to Update:

  1. Update your package:
    pip install --upgrade importspy