更新记录¶
2022.9.13 v1.6¶
2021.6.23 v1.4¶
- #288 , fish_date 中的 GetRandomTime 修改为 RandomTime,其中函数名称修改为 get_random_datetime_this_month() get_random_datetime_this_year() get_random_date_by_year() get_random_date_by_range();
- #292 , fish_data 增加敏感数据掩码显示类 SensitiveMask,增加函数 get_idcard_number() get_bankcard_number() get_mobile_number() get_email() ;
- 修改小错误
- 修改文档描述
2020.3.28 v1.2¶
- #255 #266, 开始使用 github 的 Actions 进行 CI 集成;
- #257, conf_as_dict() 函数移动从 common 包移动到 system 包;
- #259, 增加 fish_object 函数包,面向对象增强函数;
- #260, common 包,删除 sorted_objs_by_attr() 函数和 get_group_list_data() 函数;
- #261, common 包,paging 函数名称修改为
get_page_data()
; - #263, common 包,删除一些为了向前兼容的函数;
- #263, 删除 flask swagger 支持;
2019.7.17 v1.1.15¶
2019.6.25 v1.1.14¶
- #238, common, edit function
RMBConversion.an2cn()
,RMBConversion.cn2an()
optimize; - #239, common, add function
fish_common.split_str_by_length()
doc and unittest;
2019.6.11 v1.1.13¶
- #235, common, add function
RMBConversion.an2cn()
,RMBConversion.cn2an()
doc and unittest;
2019.5.28 v1.1.12¶
- #232, data, edit function
IdCard.get_zone_info()
,IdCard.get_areanote_info()
,IdCard.get_province_info()
,CardBin.get_bank_info()
,CardBin.get_cardbin_info()
, optimize;
2019.4.30 v1.1.10¶
- #226, file, add function
fish_file.get_file_encoding()
, doc and unittest;
2019.4.15 v1.1.9¶
- #222, common, edit function
fish_logger.conf_as_dict()
, optimize - #221, logger, edit function
fish_logger.set_log_file()
, optimize
2019.4.1 v1.1.8¶
- #218, file, edit function
fish_file.get_abs_filename_with_sub_path()
,fish_file.check_sub_path_create()
, optimize - #215, common, add function :meth:`fish_common.DeserializeInstance, doc and unittest;
2019.3.19 v1.1.7¶
- #212, common, edit function
fish_common.conf_as_dict()
,fish_common.find_files()
,fish_common.yaml_conf_as_dict()
, optimize - #215, common, edit function
fish_common.serialize_instance()
, optimize doc and add unittest
2019.1.22 v1.1.6¶
- #192, data, add function
fish_data.IdCard.get_cn_idcard()
,fish_data.IdCard.get_note_by_province()
, doc and unittest; - #190, random, edit function
fish_random.gen_float_by_range()
, optimize; - #152, random, edit function
fish_common.GetMD5()
fish_common.GetSha256()
fish_common.splice_url_params()
fish_common.sorted_list_from_dict()
fish_common.is_contain_special_char()
fish_common.if_any_elements_is_space()
fish_common.remove_duplicate_elements()
fish_common.sorted_objs_by_attr()
fish_common.get_group_list_data()
fish_common.if_any_elements_is_letter()
fish_common.transform_hump_to_underline()
, optimize; - #204, random, edit function
fish_random.gen_random_id_card()
,fish_random.gen_random_address()
,fish_random.gen_random_bank_card()
,fish_random.gen_random_company_name()
,fish_random.gen_random_float()
,fish_random.gen_random_mobile()
,fish_random.gen_random_name()
,optimize; - #200, random, edit function
fish_random.gen_random_str()
, optimize; - #200, crypt, move fish_common.FishMD5 to
fish_crypt.FishMD5()
, move fish_common.Base64 tofish_crypt.Base64()
, move fish_common.FishSha256 tofish_crypt.FishSha256()
2018.12.31 v1.1.5¶
- #171, random, add function
fish_random.gen_company_name()
, doc and unittest; - #165, random, add function
fish_random.gen_id()
, doc and unittest; - #172, random, add function
fish_random.gen_bank_card()
, doc and unittest; - #170, random, add function
fish_random.gen_address()
, doc and unittest; - #173, random, add function
fish_random.get_random_zone_name()
, doc and unittest; - #162, random, add function
fish_random.gen_float_by_range()
, doc and unittest; - #166, random, add function
fish_random.gen_mobile()
, doc and unittest; - #171, random, add function
fish_random.gen_name()
, doc and unittest; - #163, random, add function
fish_random.gen_string_by_range()
, doc and unittest; - #164, common, add function
fish_date.GetRandomTime.gen_date_by_range()
, doc and unittest; - #142, common, edit function
fish_date.GetRandomTime.gen_date_by_year()
, doc and unittest;
2018.12.14 v1.1.4¶
- #142, common, add function
fish_date.GetRandomTime.random_date_str()
, doc and unittest; - #126, csv, add function
fish_csv.dict2csv()
,fish_csv.csv2dict()
,fish_csv.list2csv()
, doc and unittest;
2018.12.10 v1.1.3¶
- #137, data, add function
fish_data.is_valid_id_number()
, doc and unittest; - #98, common, add function
fish_common.yaml_conf_as_dict()
, doc and unittest; - #100, common, add class
fish_common.GetSha256()
, doc and unittest; - #116, date, add class
fish_date.FishDateTimeFormat()
, doc and unittest; - #80, common, add function
fish_common.find_same_between_dicts()
, doc and unittest;
2018.9.23 v1.1.1¶
- #115, common, add function
fish_common.get_random_str()
, optimize; - #114, common, add function
fish_common.transform_hump_to_underline()
, doc and unittest; - #101, date, add function
fish_date.transform_datetime_to_unix()
, doc and unittest;
2018.9.3 v1.1.0¶
- #74, common, add function
fish_common.get_group_list_data()
, doc and unittest; - #89, common, add function
fish_common.get_sub_dict()
, doc and unittest; - #90, common, add function
fish_date.get_time_interval()
, doc and unittest; - #93, common, add function
fish_date.transform_unix_to_datetime()
, doc and unittest; - #82, project, add function
fish_project.init_project_by_yml()
, doc and unittest;
2018.8.2 v1.0.16¶
- #87, date, add function
fish_date.GetRandomTime()
, doc and unittest; - #94, csv, edit function
fish_csv.csv_file_to_list()
, doc and unittest; - #94, common, edit function
fish_common.conf_as_dict()
, doc and unittest;
2018.7.11 v1.0.15¶
- #36, common, edit function
fish_common.is_contain_special_char()
, change function name; - #62, common, edit function
fish_common.if_any_elements_is_space()
, optimize, doc and unittest; - #78, optimize change_log;
- #67, common, edit function
fish_common.splice_url_params()
, optimize; - #63 and #77, common, add function
fish_common.remove_duplicate_elements()
, doc and unittest; - #64 common, add function
fish_common.sorted_objs_by_attr()
, doc and unittest; - #79 common, add function
fish_common.get_query_param_from_url()
, doc and unittest; - #83 common, edit function
fish_common.conf_as_dict()
, optimize;
2018.6.27 v1.0.14¶
- 19046, setup, edit setup.py to add long description etc., the package detail;
- issue ID use directly on github
- #36, common, add function
fish_common.check_str()
, doc and unittest; - #38, common, add function
fish_common.find_files()
, doc and unittest; - #37, date, add function
fish_date.get_years()
, doc and unittest; - #27, common, add function
fish_common.hmac_sha256()
, doc and unittest; - #61, date, edit function
fish_date.get_date_range()
, optimize, doc and unittest; - #57, common, edit function
fish_common.GetMD5.string()
, optimize; - #59, common, add function
fish_common.Base64()
, doc and unittest; - #51, common, add function
fish_common.get_random_str()
, doc and unittest;
2018.6.6 v1.0.13¶
- 19037, common and system, function
check_platform()
move to fish_system 中,rename tofish_system.get_platform()
; - 19038, common, add function
fish_common.get_uuid()
, editfish_common.get_time_uuid
, add doc and unittest; - 19039, logger, edit function
fish_logger.set_log_file()
byclass SafeFileHandler()
, prevent the multi process delete log file error; - 19040, file, edit function
fish_file.get_abs_filename_with_sub_path()
, thanks to Wu Yanan; - 19041, file, delete function
check_kind_path_file()
; - 19042, file, edit function
fish_file.check_sub_path_create()
, optimize, doc and unittest; - 19043, common, edit function
fish_common.sorted_list_from_dict()
, optimize, doc and unittest; - 19044, file, remove
auto_add_file_ext()
; - 19045, file, remove
get_abs_filename_with_sub_path_module()
;
2018.5.21 v1.0.12¶
- 19035, rename package ‘fish_base’ to ‘fishbase’
2018.5.18 v1.0.11¶
- 19011, 从19011开始编号,ok
- 19015,
common conf_as_dict()
增加 docstring 说明, ok - 19016, 开始测试使用 sphinx 来组织 api 说明文档,ok
- 19017, 将
conf_as_dict()
说明加入到 doc 中,ok - 19018, __init__.py 中的
get_ver()
返回版本号功能简化,ok - 19019, common
class SingleTon()
增加 docstring 说明,ok - 19020, csv
csv_file_to_list()
增加 docstring 说明,ok - 19021, common 重新声明为 fish_common, csv 重新生命为 fish_csv, 所有包带 fish 前缀,ok
- 19022, sphinx doc 的 theme 修改为 rtd theme,https://sphinx-rtd-theme.readthedocs.io/en/latest/ , ok
- 19023, logger
set_log_file()
增加 docstring 说明,ok - 19024, fish_file 函数加入 docstring 说明,ok
- 19025, common, 去除
get_md5()
函数,ok - 19026, common, 增加
class GetMD5
,增加字符串、小文件、大文件三种类型的 md5计算,ok - 19027, test, 修改原来的 unittest 部分,完善对于 common 函数的单元测试,ok
- 19028, common,
conf_as_dict()
逻辑修改,更加严密,ok - 19029, common, 增加
json_contained()
函数,判断两个 json 是否有包含关系,ok - 19030, common, 增加
splice_url_params()
函数;ok - 19031, 项目,增加 requirements.txt; ok
- 19032, 项目,增加 .travis.yml, 支持持续集成测试; ok
- 19033, 项目,增加对于 coveralls.io 的支持,监视 ut 的覆盖率; 本地 python 2.7.15 测试通过; ok
- 19034, 项目,修改 __init__.py 和 setup.py 中对于 __version__ 的用法; ok
2018.3.20 v1.0.10¶
- 19006, 增加,
get_time_uuid()
, 获得带时间戳的流水号;ok - 19007, 增加,
if_any_elements_is_space()
, 判断参数列表是否存在 None 或空字符串或空格字符串;ok - 19008, common,增加
conf_as_dict()
,读入配置文件,返回根据配置文件内容生成的字典类型变量; ok - 11001, 整体结构和开发方法调整;
- 11002, 增加 csv 功能模块,增加函数
csv_file_to_list()
; ok - 11003, fish_file 模块修改为 file,目前向下兼容保留 fish_file; ok
- 11004, file 模块的
get_abs_filename_with_sub_path()
修改;ok - 11005, fish_date 模块修改为 date, demo/demo_date.py 演示用法;ok
- 11006, 安装包的安装程序 setup.py 中 setup.py 引入源的修改;ok
- 11007, pip 安装时候支持自动安装
python-dateutil
包; ok - 11008,
check_platform()
归入到 system 包 - 11009, csv,
csv_file_to_list()
函数增加过滤空行功能;ok - 11010, logger, log 相关代码优化简化; ok
- 11011, demo, 将原来 test 下的 test log 程序移动到 demo 路径下; ok
- 11013, demo,
common.conf_as_dict()
的 demo 例子完善;ok - 11014, common,
conf_as_dict()
增加返回内容,字典长度;ok - 11015, common 增加
class SingleTon
,单例的基础类;ok