Skip to content

Commit 8ff63e1

Browse files
committed
Add initial project files including .gitignore, LICENSE, README, and main downloader script
- Create .gitignore to exclude unnecessary files - Add LICENSE file with MIT License - Include README.md with project description, features, installation instructions, and contribution guidelines - Implement ms_downloader.py for downloading MindSpore packages using pypdl - Define project metadata in pyproject.toml
0 parents  commit 8ff63e1

7 files changed

Lines changed: 666 additions & 0 deletions

File tree

.gitignore

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[codz]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# UV
98+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
uv.lock
102+
103+
# poetry
104+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105+
# This is especially recommended for binary packages to ensure reproducibility, and is more
106+
# commonly ignored for libraries.
107+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108+
#poetry.lock
109+
#poetry.toml
110+
111+
# pdm
112+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113+
#pdm.lock
114+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
115+
# in version control.
116+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
117+
.pdm.toml
118+
.pdm-python
119+
.pdm-build/
120+
121+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
122+
__pypackages__/
123+
124+
# Celery stuff
125+
celerybeat-schedule
126+
celerybeat.pid
127+
128+
# SageMath parsed files
129+
*.sage.py
130+
131+
# Environments
132+
.env
133+
.envrc
134+
.venv
135+
env/
136+
venv/
137+
ENV/
138+
env.bak/
139+
venv.bak/
140+
141+
# Spyder project settings
142+
.spyderproject
143+
.spyproject
144+
145+
# Rope project settings
146+
.ropeproject
147+
148+
# mkdocs documentation
149+
/site
150+
151+
# mypy
152+
.mypy_cache/
153+
.dmypy.json
154+
dmypy.json
155+
156+
# Pyre type checker
157+
.pyre/
158+
159+
# pytype static type analyzer
160+
.pytype/
161+
162+
# Cython debug symbols
163+
cython_debug/
164+
165+
# PyCharm
166+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
167+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
168+
# and can be added to the global gitignore or merged into this file. For a more nuclear
169+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
170+
#.idea/
171+
172+
# Abstra
173+
# Abstra is an AI-powered process automation framework.
174+
# Ignore directories containing user credentials, local state, and settings.
175+
# Learn more at https://abstra.io/docs
176+
.abstra/
177+
178+
# Visual Studio Code
179+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
180+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
181+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
182+
# you could uncomment the following to ignore the entire vscode folder
183+
.vscode/
184+
185+
# Ruff stuff:
186+
.ruff_cache/
187+
188+
# PyPI configuration file
189+
.pypirc
190+
191+
# Cursor
192+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
193+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
194+
# refer to https://docs.cursor.com/context/ignore-files
195+
.cursorignore
196+
.cursorindexingignore
197+
198+
# Marimo
199+
marimo/_static/
200+
marimo/_lsp/
201+
__marimo__/

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Dev Tools
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.

README.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# Dev Tools
2+
3+
一个基于 Python 的开发工具集合,提供各种实用的开发和运维工具。
4+
5+
## 🚀 特性
6+
7+
- 📦 使用 `uv` 进行现代化的 Python 包管理
8+
- ⚡ 高性能工具实现,支持并发和异步操作
9+
- 🛠️ 模块化设计,工具可独立使用
10+
- 📊 丰富的日志和进度显示
11+
- 🔧 VS Code 集成,提供任务配置
12+
13+
## 📋 环境要求
14+
15+
- Python 3.12+
16+
- [uv](https://docs.astral.sh/uv/) (推荐的 Python 包管理器)
17+
18+
## 🛠️ 安装
19+
20+
### 1. 克隆仓库
21+
22+
```bash
23+
git clone https://github.com/JavaZeroo/dev-tools.git
24+
cd dev-tools
25+
```
26+
27+
### 2. 使用 uv 安装依赖
28+
29+
```bash
30+
uv sync
31+
```
32+
33+
这将自动创建虚拟环境并安装所有必要的依赖。
34+
35+
### 3. 验证安装
36+
37+
```bash
38+
uv run python -c "import requests, pypdl; print('✅ 依赖安装成功')"
39+
```
40+
41+
## 📁 工具列表
42+
43+
### 🔗 MindSpore Downloader
44+
45+
用于批量下载 MindSpore wheel 包的高性能下载工具。
46+
47+
- **位置**: `ms_downloader/`
48+
- **主要特性**:
49+
- 🚀 基于 pypdl 的多线程分段下载
50+
- 📊 实时进度显示和速度统计
51+
- 🔄 智能重试机制
52+
- 🎯 支持按 Python 版本过滤
53+
- 📁 自动文件组织
54+
55+
**快速使用**:
56+
57+
```bash
58+
uv run python ms_downloader/ms_downloader.py --start_date 20241201 --end_date 20241202
59+
```
60+
61+
详细文档请参见: [ms_downloader/README.md](ms_downloader/README.md)
62+
63+
*更多工具正在开发中...*
64+
65+
---
66+
67+
## 🤝 贡献指南
68+
69+
欢迎贡献新的工具或改进现有工具!
70+
71+
### 添加新工具
72+
73+
1. 在项目根目录创建新的工具目录
74+
2. 实现你的工具功能
75+
3. 添加工具的 README.md
76+
4. 更新主 README.md 的工具列表
77+
5. 可选:添加 VS Code 任务配置
78+
79+
### 开发规范
80+
81+
- 使用 `uv` 管理依赖
82+
- 遵循 Python PEP 8 代码规范
83+
- 提供清晰的日志输出
84+
- 包含错误处理和重试机制
85+
- 添加适当的文档和示例
86+
87+
## 📄 许可证
88+
89+
[MIT License](LICENSE)
90+
91+
## 🐛 问题反馈
92+
93+
如果遇到问题或有功能建议,请提交 [Issue](../../issues)
94+
95+
---
96+
97+
⭐ 如果这个项目对你有帮助,请给它一个 Star!

0 commit comments

Comments
 (0)