Envolved

Latest version: v1.7.0

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

Scan your dependencies

Page 2 of 3

1.2.0

Added
* new argument `strip_items` for `CollectionParser`.
* new arguments `strip_keys` and `strip_values` for `CollectionParser.pairwise_delimited`.
* `missing`, `as_default`, `no_patch`, and `discard` consts are now available in the `envolved` namespace.
* envvar descriptions can now also be a sequence of strings to denote multiple paragraphs.
* many new options for describing env vars
* inferred env vars can now be used for parameters that don't have a type hint, so long as the default and type are provided.
Fixed
* the default `case_sensitive` value for `inferred_env_var`s is now `False` instead of `True`.
* envvars create with `with_prefix` are now correctly added to the description
* calling `describe_env_vars` without any envvars defined no longer raises an error
Docs
* changed documentation theme with furo
Deprecations
* usage of the `basevar` and `infer_env_var` modules is deprecated
* usage of the `envvar` function to create inferred envvars is deprecated

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.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.