Metadata-Version: 2.1
Name: simple-util
Version: 0.1.10
Summary: 封装了一些日常用的函数
Home-page: https://github.com/yourusername/my-package
Author: Johnliu
Author-email: 1242108463@qq.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown

## 使用方法：
pip install simple-util
```python
from simple_util import SUtil


# 比较两个列表，返回删除的列表和新增的列表
print(SUtil.parse_diffrent_list([1,2,3], [1,2,3,4]))
([], [4])


# 安全删除列表中的元素
from simple_util import DeleteSafeList
a=[1,2,3,45,6,56,78]
safeDelete = DeleteSafeList(a)

for item in safeDelete:
    if item ==45:
        safeDelete.RemoveCurrent()
print(a)
# [1, 2, 3, 6, 56, 78]

```
# 日期处理函数
```python
from simple_util import DateUtil
# 获取指定日期的指定小时到指定小时的时间，如果endHour小于beginHour，则结束时间为第二天
print(DateUtil.datetime_range(datetime.now(),beginHour=22,willHour=10))
# 计算从当前时间到未来时间，返回时间戳(精确到秒)，如果传入负数，则返回从过去到当前的时间戳
print(DateUtil.timestamp_from_now(minutes=-5))
```


