Skip to main content

免责声明

本软件不会偷窃、盗用、窃取您的个人信息,也不会上传您的个人信息到任何服务器。仅供计算校验码使用

PRCIDCardTool

这是一个用于计算和校验中华人民共和国居民身份证校验码的工具。

功能

  • 计算身份证校验码
  • 校验身份证校验码
  • 生成身份证号码(仅供计算显示,不会生成真实身份证)

用法

安装

pip install PRCIDCardTool

使用

代码:

import PRCIDCardTool

# 校验身份证校验码
check_id_card(your_id)

# 生成身份证校验码
generate_check_number(your_id_first_17) # 前17位生成

命令行:

usage: PRCIDCardTool [-h] {check,generate_check_code} ...

PRCIDCardTool

positional arguments:
  {check,generate_check_code}
    check               检查身份证校验码正确
    generate_check_code
                        生成身份证校验码

options:
  -h, --help            show this help message and exit

cli: 根据提示输入数字使用

Metadata

Release files for PRCIDCardTool 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PRCIDCardTool 0.1.1
File Size Uploaded
prcidcardtool-0.1.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PRCIDCardTool 0.1.1
File Interpreter ABI Platform
prcidcardtool-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / prcidcardtool-0.1.1.tar.gz

Download URL prcidcardtool-0.1.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9dee4150f3fac8c0ab5ac4aee2ea5c7a65b7e6bb49fc970d4e388b71bf333ac4
BLAKE2b-256 checksum
How to use checksums
7814d2fbf6145801b1491d7b3289d32e632878e75c53df527105e6086e3032a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / prcidcardtool-0.1.1-py3-none-any.whl

Download URL prcidcardtool-0.1.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92eb44cbadeaeb060e27c2bd333c767df5ea8b8bd515dcef4695bf56cdbcdd9c
BLAKE2b-256 checksum
How to use checksums
05e1f0673dbacb0048a0df389b8b7fd7936e9ceea3db79348b046aea8f2100fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page