Skip to main content

一个可以离线检验公民身份号码是否合法的程序

Project description

pymod112

一个基于Python开发的公民身份号码检验与地区代码查找程序

安装 Installation

使用pip安装

pip install pymod112

使用 Usage

基础使用

import pymod112

pymod112.mod112('11010519491231002X', details=True)
'''返回值为(dict)
{'id': '11010519491231002X', 
 'province': ['11', '北京市'], 
 'city': ['01', ''], 
 'county': ['05', '朝阳区'], 
 'birth_date': ['1949', '12', '31'], 
 'gender': 0, 
 'result': True, 
 'problem': '000'}
'''

拓展功能(查询地区代码对应的地区名)

import pymod112

pymod112.code_to_location(['51', '01', '06'])
'''返回值为(list)
['四川省', '成都市', '金牛区']
'''

许可证 License

BSD 3-Clause License

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

pymod112-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

pymod112-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pymod112-0.1.0.tar.gz.

File metadata

  • Download URL: pymod112-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for pymod112-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f5b9b8f2469e25bd1859bcf4c5c99a6c173c8c382a603ac21e59167ed03e46fb
MD5 273e897b95738dfeb934a9aa0a63fdc0
BLAKE2b-256 66d29318785614e3338823d0d29e7e67885d9bc4fc98e385184e79bffd280977

See more details on using hashes here.

File details

Details for the file pymod112-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pymod112-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for pymod112-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcf845263c10680be6171d6e42481489cffc4364ae1ec2f50a1775290930b377
MD5 95d57628fefc5793adcd3a6a3d1b584d
BLAKE2b-256 714c90561c8eb9fdacfa16715c5985e15c346d0d5f729be3fdce7ad6803bcdc0

See more details on using hashes here.

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