Skip to main content

Red Packets Split Algorithm

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.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for SinicValidate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fa6f2d2a71a7f0742f37cbd7afa99406caf59f0c33c763dd08c5deff9dd94478
MD5 9744b18db67d1d43f50411dac01d203a
BLAKE2b-256 2a00d5e09b5f81aabeee8783f18552b0a56a7f5b7935b79a0af0b43690af84fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for SinicValidate-1.0.0-py2.7.egg
Algorithm Hash digest
SHA256 0d8cc37b6b2abfc0cb605245124a4d8b3378dad7aba9f50157f5ca161193ba2b
MD5 740d25cf7047e9a2d9b9f03b072438af
BLAKE2b-256 3c900c35b6fff250bd74373fdaafbaac81e577d22a2d93eadb915ad192309d56

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