fishbase
fishbase 是我们自己开发和整理的一套 Python 基础函数库。 从这几年的 Python 开发中抽象了很多常见的通用的业务逻辑,以希望减少日常开发中的一些重复的工作量。
我们从2016年左右逐渐开始用 Python 开发一些项目,还不能算很有经验,但是也经常碰到一些问题, fishbase 库并不是用来解决很复杂的问题,并且有些是对系统函数的进一步封装,以简化应用程序开发中的工作量和引用的复杂度。
目前,我们正在加快 fishbase 库的建设,包括完善文档和加入单元测试、示例代码、文档等。希望能够帮助到所有的 Python 爱好者和应用开发人员。
Installing
Install and update using pip:
pip install -U fishbase
Modules
目前主要分为以下模块:
fish_common 基本函数包
fish_system 系统增强函数包
fish_file 文件处理增强函数包
fish_csv csv 处理增强函数包
fish_logger 日志记录增强函数包
fish_project project 目录结构生成函数包
A Simple Example
from fishbase.fish_common import GetMD5
# 获取字符换的MD5值
md5_string = GetMD5.string('hello world!')
print('md5_string : ', md5_string)
# 获取文件的MD5值
file_path = './test_conf.ini'
md5_file = GetMD5.file(file_path)
print('md5_file : ', md5_file)
# 获取hmac算法MD5值
hmac_md5_string = GetMD5.hmac_md5('hello world!', 'salt')
print('hmac_md5_string : ', hmac_md5_string)
md5_string : fc3ff98e8c6a0d3087d515c0473f8677
md5_file : fb7528c9778b2377e30b0f7e4c26fef0
hmac_md5_string: 191f82804523bfdafe0188bbbddd6587
Links
详细帮助文档:http://fishbase.readthedocs.io/
测试覆盖率:https://coveralls.io/github/chinapnr/fishbase?branch=master
Metadata
Release files for fishbase 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fishbase-1.1.2.tar.gz | 28.2 kB | Without provenance | Details for fishbase-1.1.2.tar.gz |
Release files / fishbase-1.1.2.tar.gz
| Download URL | fishbase-1.1.2.tar.gz |
|---|---|
| Size | 28.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41be6d3d0ecb1dcc8e453261614c5e5bd64f304c69371c070f5b00b351226fa9
|
|
BLAKE2b-256 checksum How to use checksums |
392fe12119159f7282beda2d1357662aab79d0f6ef635212c61d3a64384a7591
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for fishbase 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.