A simple Package to deal with Mainland ID Card Number.(一个用来处理大陆身份证号码的小包)。
Project description
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。
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
sfz-0.0.2.tar.gz
(34.0 kB
view details)
Built Distribution
sfz-0.0.2-py3-none-any.whl
(34.3 kB
view details)
File details
Details for the file sfz-0.0.2.tar.gz
.
File metadata
- Download URL: sfz-0.0.2.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a69f34ef6b8d7bac707b705961676e4a1e54099352a82586846a6db4743a84a |
|
MD5 | b6386770a888b7198a255e78d333386a |
|
BLAKE2b-256 | 80493a0b7e2e3827573a78206293e530929eff74c43020def1af80551564a96e |
File details
Details for the file sfz-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: sfz-0.0.2-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63ab110b12a00e17459a3725d2048b46220e83ba5447df70827688eb01420497 |
|
MD5 | 505bcac346f50833f424b3116d5aa20f |
|
BLAKE2b-256 | 46d67a271073f7b11271ac8e3af4893b726697addd37141c4148a22df2bed9dd |