utils for enconia
Project description
enconia-utils
Enconia 工具包,提供常用的 Python 工具函数集合。
安装
pip install enconia-utils
功能模块
ID 生成器 (id_generator)
get_random_short_id()- 生成 8 位随机短 IDget_random_long_id()- 生成 22 位随机长 IDget_fix_short_id(base_str)- 根据输入字符串生成固定的短 IDget_fix_long_id(base_str)- 根据输入字符串生成固定的长 IDget_file_md5(filepath)- 计算文件 MD5
日期工具 (util_date)
get_orbit_std_datetime()- 获取标准格式的当前日期时间get_orbit_std_date()- 获取标准格式的当前日期get_date_range_list_v2(start, end)- 获取日期范围列表get_next_day(day, interval)- 获取下一天get_next_workday_cn(day)- 获取下一个中国工作日
飞书推送 (feishu_push)
FeiShuTalkChatBot- 飞书机器人消息推送
阿里云 SLS 日志 (aliyun_sls_log)
send_log_to_sls()- 发送日志到阿里云 SLS
阿里云 OSS (util_oss)
OssCloudObjectProvider- OSS 文件操作(上传、下载、复制、删除等)
文件类型映射 (util_type_mapping)
get_content_type_4_filename(filename)- 根据文件名获取 MIME 类型file2content_type(ext)- 扩展名转 MIME 类型content2file_type(mime)- MIME 类型转扩展名
依赖
- requests
- pytz
- deprecated
- oss2
- aliyun-log-python-sdk
- chinese_calendar
License
BSD-3-Clause
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
enconia_utils-0.1.1.tar.gz
(18.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file enconia_utils-0.1.1.tar.gz.
File metadata
- Download URL: enconia_utils-0.1.1.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66c642cfbef80c5fe224b5e6e8e67c08c6c0a64612b66434749318ef22bbf937
|
|
| MD5 |
c914d6366076dd72541ede7cd39e10a6
|
|
| BLAKE2b-256 |
b423aed8776fb5d1d5ed3a1e585e8f8befd163277f86e7e8091d5894e16fbad6
|
File details
Details for the file enconia_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: enconia_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3836e7ddefe3fc374049202fde1bd9c57f0a407aeb6429bda278e0c9e1749726
|
|
| MD5 |
1cf09f8c47bafe2bd9870d6574bf79de
|
|
| BLAKE2b-256 |
580c8788d2fa0aa382df9a7fe5658299161631296b83d1097bbafa9d80f5ef0f
|