Braingeneers-smart-open

Latest version: v2023.10.6

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

Scan your dependencies

Page 5 of 8

1.8.2

- Removed dependency on lzma (PR [262](https://github.com/RaRe-Technologies/smart_open/pull/282), [tdhopper](https://github.com/tdhopper))
- backward compatibility fixes (PR [294](https://github.com/RaRe-Technologies/smart_open/pull/294), [mpenkov](https://github.com/mpenkov))
- Minor fixes (PR [291](https://github.com/RaRe-Technologies/smart_open/pull/291), [mpenkov](https://github.com/mpenkov))
- Fix 289: the smart_open package now correctly exposes a `__version__` attribute
- Fix 285: handle edge case with question marks in an S3 URL

This release rolls back support for transparently decompressing .xz files,
previously introduced in 1.8.1. This is a useful feature, but it requires a
tricky dependency. It's still possible to handle .xz files with relatively
little effort. Please see the
[README.rst](https://github.com/RaRe-Technologies/smart_open/blob/master/README.rst#supported-compression-formats)
file for details.

1.8.1

- Added support for .xz / lzma (PR [262](https://github.com/RaRe-Technologies/smart_open/pull/262), [vmarkovtsev](https://github.com/vmarkovtsev))
- Added streaming HTTP support (PR [236](https://github.com/RaRe-Technologies/smart_open/pull/236), [handsomezebra](https://github.com/handsomezebra))
- Fix handling of "+" mode, refactor tests (PR [263](https://github.com/RaRe-Technologies/smart_open/pull/263), [vmarkovtsev](https://github.com/vmarkovtsev))
- Added support for SSH/SCP/SFTP (PR [58](https://github.com/RaRe-Technologies/smart_open/pull/58), [val314159](https://github.com/val314159) & [mpenkov](https://github.com/mpenkov))
- Added new feature: compressor registry (PR [266](https://github.com/RaRe-Technologies/smart_open/pull/266), [mpenkov](https://github.com/mpenkov))
- Implemented new `smart_open.open` function (PR [268](https://github.com/RaRe-Technologies/smart_open/pull/268), [mpenkov](https://github.com/mpenkov))

smart_open.open

This new function replaces `smart_open.smart_open`, which is now deprecated.
Main differences:

- ignore_extension → ignore_ext
- new `transport_params` dict parameter to contain keyword parameters for the transport layer (S3, HTTPS, HDFS, etc).

Main advantages of the new function:

- Simpler interface for the user, less parameters
- Greater API flexibility: adding additional keyword arguments will no longer require updating the top-level interface
- Better documentation for keyword parameters (previously, they were documented via examples only)

The old `smart_open.smart_open` function is deprecated, but continues to work as previously.

1.8.0

- Add `python3.7` support (PR [240](https://github.com/RaRe-Technologies/smart_open/pull/240), [menshikh-iv](https://github.com/menshikh-iv))
- Add `http/https` schema correctly (PR [242](https://github.com/RaRe-Technologies/smart_open/pull/242), [gliv](https://github.com/gliv))
- Fix url parsing for `S3` (PR [235](https://github.com/RaRe-Technologies/smart_open/pull/235), [rileypeterson](https://github.com/rileypeterson))
- Clean up `_parse_uri_s3x`, resolve edge cases (PR [237](https://github.com/RaRe-Technologies/smart_open/pull/237), [mpenkov](https://github.com/mpenkov))
- Handle leading slash in local path edge case (PR [238](https://github.com/RaRe-Technologies/smart_open/pull/238), [mpenkov](https://github.com/mpenkov))
- Roll back README changes (PR [239](https://github.com/RaRe-Technologies/smart_open/pull/239), [mpenkov](https://github.com/mpenkov))
- Add example how to work with Digital Ocean spaces and boto profile (PR [248](https://github.com/RaRe-Technologies/smart_open/pull/248), [navado](https://github.com/navado) & [mpenkov](https://github.com/mpenkov))
- Fix boto fail to load gce plugin (PR [255](https://github.com/RaRe-Technologies/smart_open/pull/255), [menshikh-iv](https://github.com/menshikh-iv))
- Drop deprecated `sudo` from travis config (PR [256](https://github.com/RaRe-Technologies/smart_open/pull/256), [cclauss](https://github.com/cclauss))
- Raise `ValueError` if s3 key does not exist (PR [245](https://github.com/RaRe-Technologies/smart_open/pull/245), [adrpar](https://github.com/adrpar))
- Ensure `_list_bucket` uses continuation token for subsequent pages (PR [246](https://github.com/RaRe-Technologies/smart_open/pull/246), [tcsavage](https://github.com/tcsavage))

1.7.1

- Unpin boto/botocore for regular installation. Fix 227 (PR [232](https://github.com/RaRe-Technologies/smart_open/pull/232), [menshikh-iv](https://github.com/menshikh-iv))

1.7.0

- Drop support for `python3.3` and `python3.4` & workaround for broken `moto` (PR [225](https://github.com/RaRe-Technologies/smart_open/pull/225), [menshikh-iv](https://github.com/menshikh-iv))
- Add `s3a://` support for `S3`. Fix 210 (PR [229](https://github.com/RaRe-Technologies/smart_open/pull/229), [mpenkov](https://github.com/mpenkov))
- Allow use `` in object (key) names for `S3`. Fix 94 (PRs [204](https://github.com/RaRe-Technologies/smart_open/pull/204) & [#224](https://github.com/RaRe-Technologies/smart_open/pull/224), [dkasyanov](https://github.com/dkasyanov) & [mpenkov](https://github.com/mpenkov))
- Make `close` idempotent & add dummy `flush` for `S3` (PR [212](https://github.com/RaRe-Technologies/smart_open/pull/212), [mpenkov](https://github.com/mpenkov))
- Use built-in `open` whenever possible. Fix 207 (PR [208](https://github.com/RaRe-Technologies/smart_open/pull/208), [mpenkov](https://github.com/mpenkov))
- Fix undefined name `uri` in `smart_open_lib.py`. Fix 213 (PR [214](https://github.com/RaRe-Technologies/smart_open/pull/214), [cclauss](https://github.com/cclauss))
- Fix new unittests from [212](https://github.com/RaRe-Technologies/smart_open/pull/212) (PR [#219](https://github.com/RaRe-Technologies/smart_open/pull/219), [mpenkov](https://github.com/mpenkov))
- Reorganize README & make examples py2/py3 compatible (PR [211](https://github.com/RaRe-Technologies/smart_open/pull/211), [piskvorky](https://github.com/piskvorky))

1.6.0

- Migrate to `boto3`. Fix 43 (PR [164](https://github.com/RaRe-Technologies/smart_open/pull/164), [mpenkov](https://github.com/mpenkov))
- Refactoring smart_open to share compression and encoding functionality (PR [185](https://github.com/RaRe-Technologies/smart_open/pull/185), [mpenkov](https://github.com/mpenkov))
- Drop `python2.6` compatibility. Fix 156 (PR [192](https://github.com/RaRe-Technologies/smart_open/pull/192), [mpenkov](https://github.com/mpenkov))
- Accept a custom `boto3.Session` instance (support STS AssumeRole). Fix 130, 149, 199 (PR [201](https://github.com/RaRe-Technologies/smart_open/pull/201), [eschwartz](https://github.com/eschwartz))
- Accept `multipart_upload` parameters (supports ServerSideEncryption) for `S3`. Fix (PR [202](https://github.com/RaRe-Technologies/smart_open/pull/202), [eschwartz](https://github.com/eschwartz))
- Add support for `pathlib.Path`. Fix 170 (PR [175](https://github.com/RaRe-Technologies/smart_open/pull/175), [clintval](https://github.com/clintval))
- Fix performance regression using local file-system. Fix 184 (PR [190](https://github.com/RaRe-Technologies/smart_open/pull/190), [mpenkov](https://github.com/mpenkov))
- Replace `ParsedUri` class with functions, cleanup internal argument parsing (PR [191](https://github.com/RaRe-Technologies/smart_open/pull/191), [mpenkov](https://github.com/mpenkov))
- Handle edge case (read 0 bytes) in read function. Fix 171 (PR [193](https://github.com/RaRe-Technologies/smart_open/pull/193), [mpenkov](https://github.com/mpenkov))
- Fix bug with changing `f._current_pos` when call `f.readline()` (PR [182](https://github.com/RaRe-Technologies/smart_open/pull/182), [inksink](https://github.com/inksink))
- Сlose the old body explicitly after `seek` for `S3`. Fix 187 (PR [188](https://github.com/RaRe-Technologies/smart_open/pull/188), [inksink](https://github.com/inksink))

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.