Metadata-Version: 2.1
Name: csv-zip-rsync
Version: 0.2.0
Summary: compress csv to zip and rsync to remote server
Home-page: https://github.com/fx-kirin/csv_zip_rsync
Author: fx-kirin
Author-email: fx.kirin@gmail.com
License: MIT
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
License-File: LICENSE


csv_zip_rsync
=============


.. image:: https://img.shields.io/pypi/v/package_name.svg
   :target: https://pypi.python.org/pypi/csv_zip_rsync
   :alt: Latest PyPI version


compress csv to zip and rsync to remote server

Usage
-----

Compress csv files in a directory to zip file. And upload to remote ssh server.

Including checking zip completion and remove csv and zip files after they are uploaded.

.. code-block::

   csv_zip_rsync "{directory to backup}" "ssh name" "remote directory to upload" "not modified period in sec" "suffix to zip and upload"

Installation
------------

.. code-block::

   pip install csv_zip_rsync

Used compression method
-----------------------

.. code-block::

   Original File :5902183
   ZIP_STORED :zip_stats.st_size=5902297 rate:100.00% time:0.02641892433166504
   ZIP_DEFLATED :zip_stats.st_size=1280575 rate:21.70% time:1.8873212337493896
   ZIP_BZIP2 :zip_stats.st_size=1093927 rate:18.53% time:0.8491525650024414
   ZIP_LZMA :zip_stats.st_size=972919 rate:16.48% time:5.862420558929443

``LZMA`` showed most efficient compression rate. ``LIP_BZIP2`` was fast enough. so I chose BZIP2.

Requirements
^^^^^^^^^^^^

Compatibility
-------------

Licence
-------

Authors
-------

package_name was written by `fx-kirin <fx.kirin@gmail.com>`_.
