-
Notifications
You must be signed in to change notification settings - Fork 5
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
[feat] async reader with gzip decompression on the fly #1
Conversation
'fake text - ~4 KB', 'fake text - ~256 KB'] | ||
) | ||
async def test_gzip_aiter_async_reader(expected, tmpdir): | ||
tmp_file = tmpdir / "temp.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use single quotation through all your changes (unless the use is justified), since the rest of the code use single quotation.
PEP8: "Pick a rule and stick to it".
__all__ = ( | ||
'GZIPCompressedStream', | ||
'AsyncGZIPDecompressedStream', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The list should be sorted.
from gzip_stream import GZIPCompressedStream, AsyncGZIPDecompressedStream, \ | ||
BaseAsyncIteratorReader, BUFFER_SIZE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from gzip_stream import GZIPCompressedStream, AsyncGZIPDecompressedStream, \ | |
BaseAsyncIteratorReader, BUFFER_SIZE | |
from gzip_stream import ( | |
AsyncGZIPDecompressedStream, BaseAsyncIteratorReader, | |
BUFFER_SIZE, GZIPCompressedStream | |
) |
@@ -7,6 +7,7 @@ deps = | |||
faker | |||
pytest | |||
pytest-cov | |||
aiomisc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, do not break the sorting.
BUFFER_SIZE = 2 ** 10 | ||
|
||
|
||
class BaseAsyncReader(abc.ABC): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#3 has been merged. |
1.1.0 has been released with this feature. |
No description provided.