Stow

Latest version: v1.4.1

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

Scan your dependencies

Page 1 of 4

1.4.1

Changed

- Added tags to the interface of the abstract implementations
- Added tags to the interface in the manager
- Updated amazon to use the tags field
- Add tests for the setting of tags via mv, put, and putBytes.

Fixed

- Fixed error with artefact tags where `_tags` was not defined and could not be used to return.

1.4.0

Added

- Implemented `get_tags`, `set_tags`, `get_metadata`, and `set_metadata` public methods on the `Manager` interface + expanded the artefact interface with `tags` and `metadata` properties.

Changes

- Changed mv behaviour to rely on `delete_source` signal now passed to `_put` implementations. This is to ensure that `mv` continues to work correctly in a threaded environment. Deletes need to happen once puts have been completed.
- Extended the artefact `delete` interface to resemble the options on the `Manager.rm` interface.

Fixes

- Fixed issue with windows filesystem where stow couldn't process or accept artefacts with filepaths longer than 256 characters
- Fixed issue with `S3` bucket creation not including the default region
- Improved log error and warning messages
- Fixed bug in `Manager` where a mv command between non-compatible managers would do nothing

1.3.1

Added

- Added `--count` to the cli ls command to return the number of items at the listed location rather than the items themselves.

Changed

- Extended the progress callback to handle progress inside the jupyter notebook environment with the flag `notebook=True`.
- Changed how filepaths are displayed in the progress callback, governed by `description_length`

Fixed

- Too many calls to delete from `FS`
- Fixed the boto3 libary using threads which when running inside a thread pool executor was causing issues.
- Improved callback calls in `S3`
- `WorkerPoolConfig` no longer prevents more than 100 unfinished tasks at once in the executor.

1.3.0

Added

- Add `set_artefact_time` method to the stateless and manager interface
- Add stow `cli` program
- Added `CommandLineConfig` class to `fs` and `s3` managers to allow for use with the CLI
- Add support for soft/hard symlinks

Changed

- Extended the save interface on artefacts, to include a callback and file times
- Changed callback interface plus implement filesystem methods to use the callback interface
- Extend `get` interface to include times and callback
- Extend `touch` interface to include times and metadatas
- Update the `__str__` function of `PartialArtefact` to correctly generate the str representation of its target
- Make composeCallback method return an object of Callback not the class.
- Added additional tests and annotate lines to avoid in coverage
- Added profile_name and session token url query params to the signature parser for `Amazon` manager
- Have the `fs._putBytes` method update the time of the file in the same operation to reduce the number method invocations.
- Change `File.content` from property into a function that returns content or sets content if passed
- Changed manager interfaces to take path for the default path of the managers - though not required
- `S3` now supports the creation and deletion of buckets

Fixed

- Fixed issue with touch when touching an artefact that exists, method doesn't return the expected type
- Fixed issue with `PartialArtefact` where it was not a `os.PathLike` object.

Removed

- Removed the public `md5` method - it is available through `stow.digest` which defaults to md5 hashing algorithm.

1.2.2

Added

- add `cwd` to stow interface.

Changed

- `localise` and `open` are now available without the contextmanager.
- Change the separator behaviour to work better with remote managers.
- Update sync behaviour.

Fixed

- Fixed issue with `Amazon` manager where artefacts moved from one bucket to another were not deleted in the source bucket, but deleted in the second bucket.

1.2.1

Fixed

- Fixed issue with `dirname` where it incorrectly handled artefacts leading to a `urllib` parse error.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.