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

[feat] async reader with gzip decompression on the fly #1

Closed
wants to merge 3 commits into from

Conversation

Alviner
Copy link
Contributor

@Alviner Alviner commented May 21, 2020

No description provided.

'fake text - ~4 KB', 'fake text - ~256 KB']
)
async def test_gzip_aiter_async_reader(expected, tmpdir):
tmp_file = tmpdir / "temp.txt"
Copy link
Owner

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',
Copy link
Owner

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.

Comment on lines +10 to +11
from gzip_stream import GZIPCompressedStream, AsyncGZIPDecompressedStream, \
BaseAsyncIteratorReader, BUFFER_SIZE
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Owner

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):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leenr
Copy link
Owner

leenr commented Mar 7, 2021

#3 has been merged.

@leenr leenr closed this Mar 7, 2021
@leenr
Copy link
Owner

leenr commented Mar 7, 2021

1.1.0 has been released with this feature.

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