Envolved

Latest version: v1.6.0

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

Scan your dependencies

Page 2 of 3

1.1.2

Fixed
* changed type of `args` to be an invariant `Mapping` instead of a `dict`

1.1.1

Fixed
* fixed type hint for auto-typed env vars.

1.1.0

Added
* Single env vars can now accept pydantic models and type adapters, they will be parsed as jsons.
* added `py.typed` file to the package.
* added `inferred_env_var` to the root `envolved` namespace.
* schema env vars can now have keyword arguments passed to their `get` method, to add values to the schema.
* new parse: `LookupParser`, as a faster alternative to `MatchParser` (that does not support regex matches).
Changed
* the special parser of `Enum`s is now `LookupParser` instead of `MatchParser`.
Fixed
* `exclude_from_description` now ignores inferred env vars.

1.0.0

Added
* `inferred_env_var` to explicitly infer the type, name and default value of an env var.
* `pos_args` to allow for positional arguments in a schema.
* `discard` default value for schema args, which discards an argument from the schema if the value is missing.
* `MatchParser` to return values from discrete matches. This is now the default parser for Mappings and Enums.
* `Optional`s can now be used as parsers
* added official support for python 3.11 and 3.12
Deprecated
* auto-typed env vars are deprecated, use `infer_env_var` instead.
Fixed
* fixed possible race condition when reloading the environment parser, causing multiple reloads.
* significantly improved performance for case-insensitive env var repeat retrieval.
Internal
* use ruff + black for formatting

0.5.0

This release is a complete overhaul of the project. Refer to the documentation for details.

0.4.1

Fixed
* Partial Schema error is no longer triggered from default members

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.