dfs-sync 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dfs_sync-1.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 DFS-Sync
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,16 @@
1
+ # 包含项目文档和配置文件
2
+ include README.md
3
+ include requirements.txt
4
+ include LICENSE
5
+
6
+ # 包含包数据
7
+ recursive-include dfs *.yaml *.yml *.json *.txt
8
+ recursive-include dfs *.md
9
+
10
+ # 排除不需要的文件
11
+ recursive-exclude * __pycache__
12
+ recursive-exclude * *.py[co]
13
+ recursive-exclude * .DS_Store
14
+ recursive-exclude * .git*
15
+ recursive-exclude * *.egg-info
16
+ exclude .gitignore
@@ -0,0 +1,80 @@
1
+ Metadata-Version: 2.4
2
+ Name: dfs-sync
3
+ Version: 1.0.1
4
+ Summary: 文件传输工具
5
+ Author-email: xigua <2587125111@qq.com>
6
+ License: MIT
7
+ Project-URL: Documentation, https://github.com/xigua/dfs/blob/main/README.md
8
+ Project-URL: Source, https://github.com/xigua/dfs
9
+ Project-URL: Bug Reports, https://github.com/xigua/dfs/issues
10
+ Keywords: file transfer,sftp,sync,upload,download,concurrent,async,cli
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: System Administrators
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Internet :: File Transfer Protocol (FTP)
24
+ Classifier: Topic :: System :: Archiving
25
+ Classifier: Topic :: System :: Networking
26
+ Classifier: Topic :: Utilities
27
+ Requires-Python: >=3.8
28
+ Description-Content-Type: text/markdown
29
+ License-File: LICENSE
30
+ Requires-Dist: paramiko<4.0.0,>=3.0.0
31
+ Requires-Dist: PyYAML<7.0,>=6.0
32
+ Requires-Dist: colorama<1.0.0,>=0.4.4
33
+ Requires-Dist: tqdm<5.0.0,>=4.64.0
34
+ Requires-Dist: rich<14.0.0,>=13.0.0
35
+ Provides-Extra: dev
36
+ Requires-Dist: pytest<8.0.0,>=7.0.0; extra == "dev"
37
+ Requires-Dist: pytest-asyncio<1.0.0,>=0.21.0; extra == "dev"
38
+ Requires-Dist: black<24.0.0,>=22.0.0; extra == "dev"
39
+ Requires-Dist: flake8<7.0.0,>=5.0.0; extra == "dev"
40
+ Requires-Dist: mypy<2.0.0,>=1.0.0; extra == "dev"
41
+ Dynamic: license-file
42
+
43
+ # DFS - 分布式文件同步工具
44
+
45
+ 一个高性能、易使用、跨平台的并发文件传输工具,支持SFTP协议。
46
+
47
+ ## 安装
48
+
49
+ ### 方法一:使用pip安装(推荐)
50
+
51
+ **从PyPI安装(正式发布后):**
52
+ ```bash
53
+ pip install dfs
54
+ ```
55
+
56
+ ### 方法二:从源码安装
57
+
58
+ ```bash
59
+ pip install -e .
60
+ ```
61
+
62
+ **开发模式安装(包含开发依赖):**
63
+ ```bash
64
+ pip install -e ".[dev]"
65
+ ```
66
+
67
+ ### 方法三:直接运行(不安装)
68
+
69
+ ```bash
70
+ python -m dfs.cli.main --help
71
+ ```
72
+
73
+ ### 验证安装
74
+
75
+ 安装完成后,可以通过以下命令验证:
76
+
77
+ ```bash
78
+ dfs --version
79
+ dfs --help
80
+ ```
@@ -0,0 +1,38 @@
1
+ # DFS - 分布式文件同步工具
2
+
3
+ 一个高性能、易使用、跨平台的并发文件传输工具,支持SFTP协议。
4
+
5
+ ## 安装
6
+
7
+ ### 方法一:使用pip安装(推荐)
8
+
9
+ **从PyPI安装(正式发布后):**
10
+ ```bash
11
+ pip install dfs
12
+ ```
13
+
14
+ ### 方法二:从源码安装
15
+
16
+ ```bash
17
+ pip install -e .
18
+ ```
19
+
20
+ **开发模式安装(包含开发依赖):**
21
+ ```bash
22
+ pip install -e ".[dev]"
23
+ ```
24
+
25
+ ### 方法三:直接运行(不安装)
26
+
27
+ ```bash
28
+ python -m dfs.cli.main --help
29
+ ```
30
+
31
+ ### 验证安装
32
+
33
+ 安装完成后,可以通过以下命令验证:
34
+
35
+ ```bash
36
+ dfs --version
37
+ dfs --help
38
+ ```
@@ -0,0 +1,22 @@
1
+ """
2
+ DFS - 分布式文件同步工具
3
+ 一个高性能、易使用、跨平台的并发文件上传/下载工具
4
+
5
+ 支持协议: SFTP
6
+ """
7
+
8
+ __version__ = "1.0.1"
9
+ __author__ = "xigua"
10
+ __description__ = "分布式文件同步工具 - 高性能并发文件传输"
11
+
12
+ from .core.config import Config
13
+ from .core.logger import Logger
14
+ from .protocols.sftp_client import SFTPClient
15
+ from .core.transfer_manager import TransferManager
16
+
17
+ __all__ = [
18
+ "Config",
19
+ "Logger",
20
+ "SFTPClient",
21
+ "TransferManager"
22
+ ]
@@ -0,0 +1,3 @@
1
+ """
2
+ 命令行接口模块 - 提供用户友好的命令行界面
3
+ """