Megfile

Latest version: v4.0.1

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

Scan your dependencies

Page 1 of 13

4.0.0.post1

- fix s3 part upload size being too small caused by autoscaling block size

4.0.0

- **breaking change**
- Dropped support for Python 3.8; added support for Python 3.13.
- Removed the deprecated methods `is_link` and `get_protocol` from `BasePath`.
- The `__del__` method in `Filelike` now closes file handles.
- Removed `BaseURIPath`.
- Changed the default SFTP missing host key policy from `auto` to `reject`.
You can set the default policy using the `MEGFILE_SFTP_HOST_KEY_POLICY` environment.
Available values: `auto`, `reject`, `warning`.
- Environment variable changes:
- **Removed**:
- `MEGFILE_BLOCK_SIZE`
- `MEGFILE_MAX_BUFFER_SIZE`
- `MEGFILE_BLOCK_CAPACITY`
- `MEGFILE_MIN_BLOCK_SIZE`
- `MEGFILE_MAX_BLOCK_SIZE`
- **Added**:
- `MEGFILE_READER_BLOCK_SIZE`
- `MEGFILE_READER_MAX_BUFFER_SIZE`
- `MEGFILE_WRITER_BLOCK_SIZE`
- `MEGFILE_WRITER_MAX_BUFFER_SIZE`
- Updated `MEGFILE_MAX_WORKERS` default value from `32` to `8`.
- Updated all `open` method parameters:
- Removed `min_block_size` and `max_block_size`.
- Replaced `forward_ratio: Optional[float]` by `block_forward: Optional[int]`.
- Renamed `max_concurrency` to `max_workers`.
- Updated `__init__` parameters for all `Reader` classes inheriting from `BasePrefetchReader`:
- Replaced `block_capacity: int` by `max_buffer_size: int`.
- Updated `S3BufferedWriter.__init__` parameters:
- Removed `max_block_size`.

- perf
- Introduced `TransferConfig` for S3 to allow user-configurable upload and download settings.
- By default, writing larger files to S3 is now supported. Refer to the [configuration docs](https://megvii-research.github.io/megfile/configuration/common.html) for details.
- Reduced the number of S3 requests during `smart_sync`.

- feat
- Added the `MEGFILE_WRITER_BLOCK_AUTOSCALE` environment variable to enable S3 block autoscaling. Default is `true`. However, if you set `MEGFILE_WRITER_BLOCK_SIZE`, default will be `false`.

3.1.6.post1

- fix
- support ali oss response
- strip auth headers on redirect

3.1.6

- fix
- fix bugs of alias paths in `megfile ls` command
- support `InvalidRange` error in tos oss
- feat
- add new env `AWS_S3_VERIFY` for setting s3 verify, default is `true`
- add new env `AWS_S3_REDIRECT` for turning on supporting http redirect, default is `false`

3.1.5

- feat
- support `AWS_SESSION_TOKEN` env

3.1.4

- feat
- add `megfile config alias` command for adding [custom protocol alias](https://megvii-research.github.io/megfile/readme.html#create-aliases)
- glob path support using glob syntax within curly braces but does not support nesting.

Page 1 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.