dc-cmnutils 0.0.2__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.
Potentially problematic release.
This version of dc-cmnutils might be problematic. Click here for more details.
- dc_cmnutils-0.0.2/LICENSE.TXT +19 -0
- dc_cmnutils-0.0.2/PKG-INFO +36 -0
- dc_cmnutils-0.0.2/README.md +21 -0
- dc_cmnutils-0.0.2/pyproject.toml +30 -0
- dc_cmnutils-0.0.2/setup.cfg +4 -0
- dc_cmnutils-0.0.2/setup.py +21 -0
- dc_cmnutils-0.0.2/src/dc/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/basicdata/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/basicdata/basic.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/basicdata/basicdata.py +586 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/basicdata/convert.py +189 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/basicdata/convert_basic.py +391 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/basicdata/json.py +94 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/basicdata/object.py +814 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/collection/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/collection/collection.py +757 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/database/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/database/database_access.py +213 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/database/database_accessor.py +287 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/database/db_operater.py +283 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/database/dbutil.py +389 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/definitions/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/definitions/definitions.py +91 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/definitions/result.py +201 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/file/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/file/cfg/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/file/cfg/config.py +262 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/file/file.py +214 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/file/file_utils.py +605 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/log/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/log/log.py +43 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/io/log/log_utils.py +50 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/misc/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/net/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/net/email.py +185 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/net/net.py +251 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/net/net_utils.py +468 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/env/__init__.py +0 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/env/linuxenv.py +384 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/env/windowsenv.py +235 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/envutil.py +442 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/processutil.py +447 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/sys.py +640 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/sys_utils.py +580 -0
- dc_cmnutils-0.0.2/src/dc/cmnutils/sys/threadutil.py +315 -0
- dc_cmnutils-0.0.2/src/dc_cmnutils.egg-info/PKG-INFO +36 -0
- dc_cmnutils-0.0.2/src/dc_cmnutils.egg-info/SOURCES.txt +51 -0
- dc_cmnutils-0.0.2/src/dc_cmnutils.egg-info/dependency_links.txt +1 -0
- dc_cmnutils-0.0.2/src/dc_cmnutils.egg-info/requires.txt +3 -0
- dc_cmnutils-0.0.2/src/dc_cmnutils.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2026 The Python Packaging Authority
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dc-cmnutils
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: A common utility library for dc.
|
|
5
|
+
Author: Your Name
|
|
6
|
+
Author-email: dc <627815355@qq.com>
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE.TXT
|
|
10
|
+
Provides-Extra: dev
|
|
11
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
Dynamic: requires-python
|
|
15
|
+
|
|
16
|
+
# dc-cmnutils
|
|
17
|
+
|
|
18
|
+
[](https://pypi.org/project/dc-cmnutils/)
|
|
19
|
+
[](https://pypi.org/project/dc-cmnutils/)
|
|
20
|
+
[](https://opensource.org/licenses/MIT)
|
|
21
|
+
|
|
22
|
+
A lightweight and reliable Python utility library. It provides commonly used helper functions for object handling, string manipulation, and more, helping you reduce boilerplate code in daily development.
|
|
23
|
+
|
|
24
|
+
## Features
|
|
25
|
+
|
|
26
|
+
- **Ready to Use**: Offers a rich collection of static utility methods without requiring instantiation.
|
|
27
|
+
- **Safe & Robust**: Built-in null safety handling to prevent common runtime exceptions.
|
|
28
|
+
- **Zero Dependencies**: Core functionalities rely on no third-party libraries, keeping your project lightweight.
|
|
29
|
+
- **IDE Friendly**: Fully supports code completion and static type checking in modern IDEs.
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
Install via pip:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install dc-cmnutils
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# dc-cmnutils
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/dc-cmnutils/)
|
|
4
|
+
[](https://pypi.org/project/dc-cmnutils/)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
|
|
7
|
+
A lightweight and reliable Python utility library. It provides commonly used helper functions for object handling, string manipulation, and more, helping you reduce boilerplate code in daily development.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Ready to Use**: Offers a rich collection of static utility methods without requiring instantiation.
|
|
12
|
+
- **Safe & Robust**: Built-in null safety handling to prevent common runtime exceptions.
|
|
13
|
+
- **Zero Dependencies**: Core functionalities rely on no third-party libraries, keeping your project lightweight.
|
|
14
|
+
- **IDE Friendly**: Fully supports code completion and static type checking in modern IDEs.
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
Install via pip:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install dc-cmnutils
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
# 定义构建后端及所需的依赖
|
|
3
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
4
|
+
build-backend = "setuptools.build_meta"
|
|
5
|
+
|
|
6
|
+
[project]
|
|
7
|
+
# 基础元数据
|
|
8
|
+
name = "dc-cmnutils"
|
|
9
|
+
version = "0.0.2"
|
|
10
|
+
description = "A common utility library for dc."
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
requires-python = ">=3.8"
|
|
13
|
+
|
|
14
|
+
# 作者信息(可根据实际情况修改)
|
|
15
|
+
authors = [
|
|
16
|
+
{ name = "dc", email = "627815355@qq.com" }
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
# 依赖项(目前为空,后续按需添加)
|
|
20
|
+
dependencies = []
|
|
21
|
+
|
|
22
|
+
# 可选的依赖项(例如测试工具)
|
|
23
|
+
[project.optional-dependencies]
|
|
24
|
+
dev = [
|
|
25
|
+
"pytest>=7.0"
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
# 针对 src 布局的包发现配置
|
|
29
|
+
[tool.setuptools.packages.find]
|
|
30
|
+
where = ["src"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# setup.py(备用)
|
|
2
|
+
# 部分老工具(如旧版 pip、某些 IDE)可能仍需此文件,
|
|
3
|
+
# 现代工具会自动读取 pyproject.toml 中的配置。
|
|
4
|
+
|
|
5
|
+
from setuptools import setup, find_packages
|
|
6
|
+
|
|
7
|
+
setup(
|
|
8
|
+
name="dc-cmnutils",
|
|
9
|
+
version="0.0.2",
|
|
10
|
+
description="A common utility library.",
|
|
11
|
+
readme="README.md",
|
|
12
|
+
author="Your Name",
|
|
13
|
+
author_email="your.email@example.com",
|
|
14
|
+
python_requires=">=3.8",
|
|
15
|
+
package_dir={"": "src"},
|
|
16
|
+
packages=find_packages(where="src"),
|
|
17
|
+
install_requires=[],
|
|
18
|
+
extras_require={
|
|
19
|
+
"dev": ["pytest>=7.0"],
|
|
20
|
+
},
|
|
21
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|