-
Notifications
You must be signed in to change notification settings - Fork 46
types: support working with binary for Python 3 #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
DifferentialOrange
merged 2 commits into
master
from
DifferentialOrange/gh-105-unpack-binary
Apr 4, 2022
+386
−25
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Unreleased | ||
|
||
### Added | ||
- Reusable testing workflow for integration with tarantool artifacts | ||
(PR #192). | ||
|
||
### Changed | ||
- **Breaking**: change binary types encode/decode for Python 3 | ||
to support working with varbinary (PR #211, #105). | ||
With Python 2 the behavior of the connector remains the same. | ||
|
||
Before this patch: | ||
|
||
* encoding="utf-8" (default) | ||
|
||
| Python 3 | -> | Tarantool | -> | Python 3 | | ||
|----------|----|--------------------|----|----------| | ||
| str | -> | mp_str (string) | -> | str | | ||
| bytes | -> | mp_str (string) | -> | str | | ||
| | | mp_bin (varbinary) | -> | bytes | | ||
|
||
* encoding=None | ||
|
||
| Python 3 | -> | Tarantool | -> | Python 3 | | ||
|----------|----|--------------------|----|----------| | ||
| bytes | -> | mp_str (string) | -> | bytes | | ||
| str | -> | mp_str (string) | -> | bytes | | ||
| | | mp_bin (varbinary) | -> | bytes | | ||
|
||
Using bytes as key was not supported by several methods (delete, | ||
update, select). | ||
|
||
After this patch: | ||
|
||
* encoding="utf-8" (default) | ||
|
||
| Python 3 | -> | Tarantool | -> | Python 3 | | ||
|----------|----|--------------------|----|----------| | ||
| str | -> | mp_str (string) | -> | str | | ||
| bytes | -> | mp_bin (varbinary) | -> | bytes | | ||
|
||
* encoding=None | ||
|
||
| Python 3 | -> | Tarantool | -> | Python 3 | | ||
|----------|----|--------------------|----|----------| | ||
| bytes | -> | mp_str (string) | -> | bytes | | ||
| str | -> | mp_str (string) | -> | bytes | | ||
| | | mp_bin (varbinary) | -> | bytes | | ||
|
||
Using bytes as key are now supported by all methods. | ||
|
||
Thus, encoding="utf-8" connection may be used to work with | ||
utf-8 strings and varbinary and encodine=None connection | ||
may be used to work with non-utf-8 strings. | ||
|
||
- Clarify license of the project (BSD-2-Clause) (PR #210, #197). | ||
- Migrate CI to GitHub Actions (PR #213, PR #216, #182). | ||
- Various improvements and fixes in README (PR #210, PR #215). | ||
|
||
### Fixed | ||
- json.dumps compatibility with Python 2 (PR #186). | ||
- Unix socket support in mesh_connection (PR #189, #111). | ||
- Various fixes in tests (PR #189, #111, PR #195, #194). | ||
|
||
|
||
## 0.7.1 - 2020-12-28 | ||
|
||
### Fixed | ||
- msgpack library dependency (PR #185). | ||
|
||
|
||
## 0.7.0 - 2020-12-28 | ||
|
||
Caution: Use tarantool-python 0.7.1 instead of 0.7.0. It fixes | ||
the dependency on the msgpack library. | ||
|
||
### Added | ||
- Support msgpack 1.0.0 (#155, PR #173). | ||
- SQL support (<connection>.execute() method) (#159, PR #161). | ||
- Allow to receive a Tarantool tuple as a Python tuple, not a list, with | ||
use_list=False connection option (#166, PR #161). | ||
- Support the Database API (PEP-0249) (PR #161). | ||
|
||
### Changed | ||
- Various improvements in README (PR #147, PR #151, PR #180). | ||
|
||
### Fixed | ||
- Support encoding=None connections (PR #172). | ||
- Various improvements and fixes in tests (8ff9a3f, bd37703, PR #165, | ||
#178, PR #179, PR #181). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.