SFZ
A simple Package to deal with Mainland ID Card Number. 一个用来处理大陆身份证号码的小包。
用法
先安装啦~
pip3 install sfz
然后引入这个包:
from sfz import *
获得户籍归属地
正常情况下会返回地址,否则返回 "Unknown"。
>>> s = "432503197505028819"
>>> object = Sfz(s)
>>> object.loc()
'湖南省娄底地区涟源市'
获得性别
>>> object.gender()
'男'
地址列表來自:https://gist.github.com/mayufo/4207ed3fa925e6b3df7559832af85165。
Metadata
Release files for sfz 0.0.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 |
|---|---|---|---|---|
| sfz-0.0.2.tar.gz | 34.0 kB | Without provenance | Details for sfz-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sfz-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for sfz-0.0.2-py3-none-any.whl |
Total release size: 68.3 kB
Release files / sfz-0.0.2.tar.gz
| Download URL | sfz-0.0.2.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a69f34ef6b8d7bac707b705961676e4a1e54099352a82586846a6db4743a84a
|
|
BLAKE2b-256 checksum How to use checksums |
80493a0b7e2e3827573a78206293e530929eff74c43020def1af80551564a96e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / sfz-0.0.2-py3-none-any.whl
| Download URL | sfz-0.0.2-py3-none-any.whl |
|---|---|
| Size | 34.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63ab110b12a00e17459a3725d2048b46220e83ba5447df70827688eb01420497
|
|
BLAKE2b-256 checksum How to use checksums |
46d67a271073f7b11271ac8e3af4893b726697addd37141c4148a22df2bed9dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Security for sfz 0.0.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.