File tree Expand file tree Collapse file tree 12 files changed +49
-30
lines changed Expand file tree Collapse file tree 12 files changed +49
-30
lines changed Original file line number Diff line number Diff line change 11__title__ = "awswrangler"
22__description__ = "Utility belt to handle data on AWS."
3- __version__ = "0.0b18 "
3+ __version__ = "0.0b19 "
44__license__ = "Apache License 2.0"
Original file line number Diff line number Diff line change @@ -154,6 +154,22 @@ def _read_csv_iterator(
154154 logger .debug (f"total_size: { total_size } " )
155155 if total_size <= 0 :
156156 raise EmptyS3Object (metadata )
157+ elif total_size <= max_result_size :
158+ yield Pandas ._read_csv_once (
159+ client_s3 = client_s3 ,
160+ bucket_name = bucket_name ,
161+ key_path = key_path ,
162+ header = header ,
163+ names = names ,
164+ dtype = dtype ,
165+ sep = sep ,
166+ lineterminator = lineterminator ,
167+ quotechar = quotechar ,
168+ quoting = quoting ,
169+ escapechar = escapechar ,
170+ parse_dates = parse_dates ,
171+ infer_datetime_format = infer_datetime_format ,
172+ encoding = encoding )
157173 else :
158174 bounders = calculate_bounders (num_items = total_size ,
159175 max_size = max_result_size )
Original file line number Diff line number Diff line change @@ -227,7 +227,6 @@ class SessionPrimitives:
227227 It is required to "share" the session attributes to other processes.
228228 That must be "pickable"!
229229 """
230-
231230 def __init__ (
232231 self ,
233232 profile_name = None ,
Original file line number Diff line number Diff line change 1- FROM lambci/lambda:build-python3.6
1+ FROM lambci/lambda:build-python3.7
22
33RUN pip install --upgrade pip
44
55ADD requirements.txt /root/
6- RUN pip install -r /root/requirements.txt
6+ RUN pip install --upgrade - r /root/requirements.txt
77RUN rm -rf /root/requirements.txt
88ADD requirements-dev.txt /root/
9- RUN pip install -r /root/requirements-dev.txt
9+ RUN pip install --upgrade - r /root/requirements-dev.txt
1010RUN rm -rf /root/requirements-dev.txt
1111
1212ENTRYPOINT ["/bin/sh" ]
Original file line number Diff line number Diff line change 22
33cp ../requirements.txt .
44cp ../requirements-dev.txt .
5- pip install -r requirements.txt
6- pip install -r requirements-dev.txt
75docker build -t awswrangler-building .
Original file line number Diff line number Diff line change 66# Clone desired Arrow version
77rm -rf arrow dist pyarrow*
88git clone \
9- --branch apache-arrow-0.14.0 \
9+ --branch apache-arrow-0.14.1 \
1010 --single-branch \
1111 https://github.com/apache/arrow.git
1212
@@ -18,7 +18,7 @@ yum install -y \
1818 flex \
1919 autoconf \
2020 python36-devel
21- pip install six numpy pandas cython pytest cmake wheel
21+ pip install --upgrade six numpy pandas cython pytest cmake wheel
2222
2323# Build Arrow
2424export ARROW_HOME=$( pwd) /dist
@@ -55,7 +55,7 @@ cp dist/pyarrow-*.whl ~
5555popd
5656
5757# Extracting files
58- pip install pyarrow-* whl -t pyarrow_files
58+ pip install pyarrow-* whl -t pyarrow_files
5959
6060# Go back to AWSWRANGLER directory
6161cd /aws-data-wrangler/
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33pip install --upgrade pip
4- pip install -r requirements.txt
5- pip install -r requirements-dev.txt
4+ pip install --upgrade - r requirements.txt
5+ pip install --upgrade - r requirements-dev.txt
66cd testing
77./build-image.sh
88cd ../building
Original file line number Diff line number Diff line change 1- yapf >= 0.27 .0
2- flake8 >= 3.7.7
3- pytest >= 4.3 .1
4- cfn-lint >= 0.22.0
1+ yapf >= 0.28 .0
2+ flake8 >= 3.7.8
3+ pytest >= 5.0 .1
4+ cfn-lint >= 0.22.4
55twine >= 1.13.0
66pyspark >= 2.4.3
77wheel >= 0.33.4
Original file line number Diff line number Diff line change 1- boto3 >= 1.9.164
2- s3fs >= 0.2.2
3- pandas >= 0.24.2
4- pyarrow >= 0.14.0
1+ boto3 >= 1.9.196
2+ pandas >= 0.25.0
3+ s3fs >= 0.3.1
4+ pyarrow >= 0.14.1
55tenacity >= 5.0.4
66pg8000 >= 1.13.2
Original file line number Diff line number Diff line change 2222 exclude = ["tests" ]),
2323 python_requires = ">=3.6" ,
2424 install_requires = [
25- "pyarrow>=0.14.0 " ,
26- "pandas>=0.24.2 " ,
27- "boto3>=1.9.130 " ,
28- "s3fs>=0.2 .1" ,
25+ "pyarrow>=0.14.1 " ,
26+ "pandas>=0.25.0 " ,
27+ "boto3>=1.9.196 " ,
28+ "s3fs>=0.3 .1" ,
2929 "tenacity>=5.0.4" ,
3030 "pg8000>=1.13.2" ,
3131 ],
You can’t perform that action at this time.
0 commit comments