Skip to main content

Validate Sinic Phone

Project description

Validate Sinic Phone

Refer: http://www.oschina.net/code/snippet_238351_48624

Installation

pip install SinicValidate

Usage

Python 2.7.5 (default, Mar  9 2014, 22:15:05)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import SinicValidate as validate

In [2]: validate.phone('15171459560')
Out[2]:
{'isChinaMobile': True,
 'isChinaTelcom': False,
 'isChinaUnion': False,
 'isOtherTelphone': False,
 'isPhone': True}

In [3]: validate.phone('11223344556')
Out[3]:
{'isChinaMobile': False,
 'isChinaTelcom': False,
 'isChinaUnion': False,
 'isOtherTelphone': False,
 'isPhone': False}

In [4]:

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

SinicValidate-1.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

SinicValidate-1.0.1-py2.7.egg (4.9 kB view details)

Uploaded Source

File details

Details for the file SinicValidate-1.0.1.tar.gz.

File metadata

File hashes

Hashes for SinicValidate-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5471daa63e30226926e023d1e73f6f88a99472e47dfc201254eb15f7eac1bd29
MD5 edb82cb6a4609bac0e7c82772acc80b6
BLAKE2b-256 2c36c8d5a5f45b5dad8ce28a343cd94da3570c846796781adc2ed8c40730539f

See more details on using hashes here.

File details

Details for the file SinicValidate-1.0.1-py2.7.egg.

File metadata

File hashes

Hashes for SinicValidate-1.0.1-py2.7.egg
Algorithm Hash digest
SHA256 29c1d822e8e6509f1235593c1b8dbb8ecdeef901b0cc337140698bf6113bdbf2
MD5 df3a51012a030f58841f6bc61badb452
BLAKE2b-256 2f531d2f161bbbac1a3313aff5d15f4beb20fb0ade7fbf78fbb2f50798deb049

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