Skip to content
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

Added new serializers. #217

Merged
merged 5 commits into from
Oct 14, 2023
Merged

Added new serializers. #217

merged 5 commits into from
Oct 14, 2023

Conversation

s3rius
Copy link
Member

@s3rius s3rius commented Oct 13, 2023

This PR adds new serializers that can be used with taskiq.

Serializers allow users to choose how messages are going to be formatted when sent to broker.

This PR adds 3 serializers:

  • ORJSONSerializer - faster json implementation, based on orjson lib.
  • MSGPackSerializer - msgpack protocol implementation.
  • CBORSerializer - cbor protocol implementation

Signed-off-by: Pavel Kirilin <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2023

Codecov Report

Merging #217 (ee07193) into develop (e66f3aa) will increase coverage by 6.00%.
Report is 136 commits behind head on develop.
The diff coverage is 74.11%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff             @@
##           develop     #217      +/-   ##
===========================================
+ Coverage    67.62%   73.62%   +6.00%     
===========================================
  Files           37       55      +18     
  Lines          942     1619     +677     
===========================================
+ Hits           637     1192     +555     
- Misses         305      427     +122     
Files Coverage Δ
taskiq/__init__.py 100.00% <100.00%> (ø)
taskiq/abc/formatter.py 100.00% <100.00%> (ø)
taskiq/abc/middleware.py 100.00% <ø> (ø)
taskiq/abc/result_backend.py 100.00% <ø> (ø)
taskiq/abc/schedule_source.py 100.00% <100.00%> (ø)
taskiq/abc/serializer.py 100.00% <100.00%> (ø)
taskiq/acks.py 100.00% <100.00%> (ø)
taskiq/api/__init__.py 100.00% <100.00%> (ø)
taskiq/cli/common_args.py 100.00% <100.00%> (ø)
taskiq/cli/watcher.py 0.00% <ø> (ø)
... and 41 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: Pavel Kirilin <[email protected]>
Signed-off-by: Pavel Kirilin <[email protected]>
Signed-off-by: Pavel Kirilin <[email protected]>
Signed-off-by: Pavel Kirilin <[email protected]>
@s3rius s3rius merged commit 43af7a9 into develop Oct 14, 2023
11 checks passed
@s3rius s3rius deleted the feature/serializers branch October 14, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants