Environs

Latest version: v11.0.0

Safety actively analyzes 628903 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

6.1.0

Features:

- Add deferred validation via the `eager` parameter and `env.seal()` ([56](https://github.com/sloria/environs/issues/56)).
Thanks [robertlagrant](https://github.com/robertlagrant) for the suggestion.

Other changes:

- Test against Python 3.8 ([108](https://github.com/sloria/environs/pull/108)).

6.0.0

Features:

- Default parser methods are now defined as bound methods.
This enables static analysis features, e.g. autocomplete ([103](https://github.com/sloria/environs/issues/103)).
Thanks [rugleb](https://github.com/rugleb) for the suggestion.
_Backwards-incompatible_: As a result of this change, adding a parser name that is the same as an existing method
will result in an error being raised.

python
import environs

env = environs.Env()


Below conflicts with built-in `url` method.
In <6.0.0, this would override the built-in method.
In >=6.0.0, this raises an error:
environs.ParserConflictError: Env already has a method with name 'url'. Use a different name.
env.parser_for("url")
def https_url(value):
return "https://" + value


Bug fixes:

- Fix error message for prefixed variables ([102](https://github.com/sloria/environs/issues/102)).
Thanks [AGeekInside](https://github.com/AGeekInside) for reporting.

Other changes:

- _Backwards-incompatible_: Rename `Env.__parser_map__` to `Env.__custom_parsers__`.

5.2.1

Bug fixes:

- Fix behavior when recursively searching for a specified file
([96](https://github.com/sloria/environs/issues/96)).
Thanks [ribeaud](https://github.com/ribeaud) for the catch and patch.

5.2.0

Changes:

- Improve typings.

5.1.0

Features:

- Add `env.log_level` ([7](https://github.com/sloria/environs/issues/7)).
- Use `raise from` to improve tracebacks.

Other changes:

- Improve typings.

5.0.0

Features:

- Add `env.path` ([81](https://github.com/sloria/environs/issues/81)).
Thanks [umrashrf](https://github.com/umrashrf) for the suggestion.
- Add type annotations.

Other changes:

- _Backwards-incompatible_: Drop support for Python 2. If you use Python 2,
you will need to use version 4.2.0 or older.

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.