dir-sync-0.2.0
توضیحات
Sync files in the local folder with files in the remote location, e.g. Google Drive.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dir-sync-0.2.0 |
| نام | dir-sync |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mingchao Liao |
| ایمیل نویسنده | mingchaoliao95@gmail.com |
| آدرس صفحه اصلی | https://github.com/mingchaoliao/dir-sync |
| آدرس اینترنتی | https://pypi.org/project/dir-sync/ |
| مجوز | MIT |
dir-sync
========
Sync files in the local folder with files in the remote location,
e.g. Google Drive.
Install
-------
1. Run the following command in your command line:
.. code:: bash
pip install dir-sync
2. Check the version you installed:
.. code:: bash
$ dir-sync --version
Version: X.X.X
Command Options
---------------
+-----------------+-----------------+-----------------+-----------------+
| Option | Description | Required | Default |
+=================+=================+=================+=================+
| –src-type | Source type. | Yes | |
+-----------------+-----------------+-----------------+-----------------+
| –dst-type | Destination | Yes | |
| | type. | | |
+-----------------+-----------------+-----------------+-----------------+
| –src | Source | Yes | |
| | directory path. | | |
| | The value | | |
| | depends on the | | |
| | source type. | | |
+-----------------+-----------------+-----------------+-----------------+
| –dst | Destination | Yes | |
| | directory path. | | |
| | The value | | |
| | depends on the | | |
| | source type. | | |
+-----------------+-----------------+-----------------+-----------------+
| –auth-key-file | Path to auth | Yes | |
| | key file. | | |
+-----------------+-----------------+-----------------+-----------------+
Filesystem Adapter
------------------
Depends on the source type and destination type, the value of source
directory path and destination directory path can be vary.
Local Filesystem
~~~~~~~~~~~~~~~~
When ``--src-type`` or ``--dst-type`` is ``local``, the
``--src``/``--dst`` must be a valid directory path in your local
filesystem.
Google Drive
~~~~~~~~~~~~
When ``--src-type`` or ``--dst-type`` is ``google-drive``, the
``--src``/``--dst`` must be a valid Google Drive directory ID.
(reference: https://developers.google.com/drive/api/v3/reference/files)
نیازمندی
| مقدار | نام |
|---|---|
| - | google-api-python-client |
| - | google-auth-httplib2 |
| - | google-auth-oauthlib |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl dir-sync-0.2.0:
pip install dir-sync-0.2.0.whl
نصب پکیج tar.gz dir-sync-0.2.0:
pip install dir-sync-0.2.0.tar.gz