Cadwyn

Latest version: v3.15.7

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

Scan your dependencies

Page 11 of 11

1.2.0

Added

* `cadwyn.main._Cadwyn` experimental private class for automatically adding the header dependency and managing all objects related to versioning

Removed

* `cadwyn.header_routing` which only had experimental private functions

Fixed

* Route callbacks didn't get migrated to versions with their parent routes

1.1.0

Added

* `ignore_coverage_for_latest_aliases` argument to `generate_code_for_versioned_packages` which controls whether we add "a pragma: no cover" comment to the star imports in the generated version of the latest module. It is True by default.

1.0.3

Fixed

* Add back the approach where the first version being an alias to latest in codegen

1.0.2

Fixed

* Add current working dir to `sys.path` when running code generation through CLI
* Use `exclude_unset` when migrating the body of a request to make sure that users' `exclude_unset` logic gets preserved

1.0.1

Fixed

* Pass first argument in `typer.Argument` to prevent errors on older typer versions

1.0.0

Added

* Command-line interface capable of running code-generation and outputting version info
* Internal request schema which gives us all the functionality we could ever need to migrate request bodies forward without any complexity of the prior solution
* `_get_versioned_router` and experimental header routing with it (by tikon93). Note that the interface for this feature will change in the future

Changed

* Renamed `cadwyn.regenerate_dir_to_all_versions` to `cadwyn.generate_code_for_versioned_packages`
* Renamed `cadwyn.generate_all_router_versions` to `cadwyn.generate_versioned_routers`

Removed

* `unions` directory and all logic around it (replaced by internal request schema)
* `FillablePrivateAttr` and all logic around it (replaced by internal request schema)
* `schema(...).property` constructor and all logic around it (replaced by internal request schema)
* Special-casing for code generation of package with latest version using star imports from latest (replaced by internal request schema)

Page 11 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.