Skip to main content

中国身份证效验

Project description

关于ChinaIDCard

这是一个进行身份证计算的ID库,主要应用场景为对身份证的合法性进行效验。

函数调用

目前版本,提供了下列函数:

check_ID_Card(ID Card) # 验证18位身份证是否在算法意义上合法

calculation_17ID_Card_code18(ID Card) # 通过身份证前17位获取第18位

generate_ID_Card() # 随机获取一个合法的身份证

验证

我们是通过http://www.ip33.com/shenfenzheng.html进行验证的结果

算法也来自于此网站

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ChinaIDCard-0.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

ChinaIDCard-0.0.1-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page