Skip to content

Added new serializers.#217

Merged
s3rius merged 5 commits intodevelopfrom
feature/serializers
Oct 14, 2023
Merged

Added new serializers.#217
s3rius merged 5 commits intodevelopfrom
feature/serializers

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 <win10@list.ru>
@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 <win10@list.ru>
Signed-off-by: Pavel Kirilin <win10@list.ru>
Signed-off-by: Pavel Kirilin <win10@list.ru>
Signed-off-by: Pavel Kirilin <win10@list.ru>
@s3rius s3rius merged commit 43af7a9 into develop Oct 14, 2023
@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