fishbase 是什么?
fishbase 是由我们自主开发、整理的一套 Python 基础函数库。
怎么用?
# 通过 pip 进行安装或者更新
pip install -U fishbase
fishbase 能干什么?
生成手机号
>>> from fishbase.fish_random import gen_mobile
>>> # 随机生成一个手机号
>>> print(gen_mobile())
188****3925
取名字
>>> from fishbase.fish_random import gen_name
>>> # 随机生成一个姓名
>>> print(gen_name())
师*
>>> # 随机生成一个姓名,姓赵/男孩/3个字
>>> gen_name("赵","01", 3)
赵**
找电影
>>> from fishbase.fish_common import find_files
>>> # 获取当前路径下的 mp4 文件
>>> print(find_files(".", [".mp4"]))
创建项目结构
>>> import os
>>> from fishbase.fish_project import init_project_by_yml
>>> package_yml = '''
... project: hellopackage
... tree:
... - README.md
... - requirements.txt
... - setup.py
... '''
>>> # 通过 yml 文件创建一个项目结构
>>> init_project_by_yml(package_yml, '.')
>>> print(os.listdir('./hellopackage'))
['requirements.txt', 'README.md', 'setup.py']
甚至可以“查户口”
>>> from fishbase.fish_data import check_id_number
>>> # 简单校验身份证号
>>> print(check_id_number('320124198701010012'))
(False,)
更多
想看看我们还实现了些啥?请戳这里:http://fishbase.readthedocs.io/
如果您有好点子,希望我们帮忙实现,请戳这里:https://github.com/chinapnr/fishbase/issues
Metadata
Release files for fishbase 1.1.5
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.5.tar.gz | 258.8 kB | Without provenance | Details for fishbase-1.1.5.tar.gz |
Release files / fishbase-1.1.5.tar.gz
| Download URL | fishbase-1.1.5.tar.gz |
|---|---|
| Size | 258.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81c9cc25883a9ad33491ac8fb66ce602bb883df02c5c2e191fade0659f7fe94b
|
|
BLAKE2b-256 checksum How to use checksums |
2d28fd84d48d3f9ffcd0f7e67281d6a71e805e9c3701442fe47011d3aae36b55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for fishbase 1.1.5
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.