csv2athena_schema-0.1.1


توضیحات

A Python Script to build a athena create table from csv file
ویژگی مقدار
سیستم عامل -
نام فایل csv2athena_schema-0.1.1
نام csv2athena_schema
نسخه کتابخانه 0.1.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Yukihiro Okada
ایمیل نویسنده callistoiv+pypi@gmail.com
آدرس صفحه اصلی https://github.com/yuokada/csv2athena_schema
آدرس اینترنتی https://pypi.org/project/csv2athena_schema/
مجوز Copyright 2019 Yukihiro Okada Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=============================== csv2athena_schema =============================== .. image:: https://badge.fury.io/py/csv2athena_schema.png :target: http://badge.fury.io/py/csv2athena_schema .. image:: https://travis-ci.org/yuokada/csv2athena_schema.png?branch=master :target: https://travis-ci.org/yuokada/csv2athena_schema .. image:: https://pypip.in/d/csv2athena_schema/badge.png :target: https://crate.io/packages/csv2athena_schema?version=latest A Python Script to build a athena create table from csv file Features -------- * TODO Install & Setup --------------- .. code-block:: bash $ git clone https://github.com/yuokada/csv2athena_schema.git $ pip3 install -r requirements.txt Execute script -------------- .. code-block:: bash $ python3 scripts/csv2athena_schema.py \ --table-properties skip.header.line.count=1 has_encrypted_data=false \ --schema your_schema \ --location 's3://your_bucket/path_to_csv' /path/to/your.csv Requirements ------------ - Python >= 3.5 License ------- MIT licensed. See the bundled `LICENSE <https://github.com/yuokada/csv2athena_schema/blob/master/LICENSE>`_ file for more details. Link ---- - `sloria/cookiecutter-docopt: A Python command-line script template that uses docopt for arguments parsing <https://github.com/sloria/cookiecutter-docopt>`_ - `okfn/messytables: Tools for parsing messy tabular data. This is now superseded by https://github.com/frictionlessdata/tabulator-py <https://github.com/okfn/messytables>`_ - `pallets/jinja: The Jinja2 template engine <https://github.com/pallets/jinja>`_ - `Flake8: Your Tool For Style Guide Enforcement — flake8 3.7.2 documentation <http://flake8.pycqa.org/en/latest/>`_ Athena - `CREATE TABLE - Amazon Athena <https://docs.aws.amazon.com/athena/latest/ug/create-table.html>`_ - `SerDe Reference - Amazon Athena <https://docs.aws.amazon.com/athena/latest/ug/serde-reference.html>`_ - `Compression Formats - Amazon Athena <https://docs.aws.amazon.com/athena/latest/ug/compression-formats.html>`_


نحوه نصب


نصب پکیج whl csv2athena_schema-0.1.1:

    pip install csv2athena_schema-0.1.1.whl


نصب پکیج tar.gz csv2athena_schema-0.1.1:

    pip install csv2athena_schema-0.1.1.tar.gz