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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SinicValidate-1.0.0.tar.gz.
File metadata
- Download URL: SinicValidate-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa6f2d2a71a7f0742f37cbd7afa99406caf59f0c33c763dd08c5deff9dd94478
|
|
| MD5 |
9744b18db67d1d43f50411dac01d203a
|
|
| BLAKE2b-256 |
2a00d5e09b5f81aabeee8783f18552b0a56a7f5b7935b79a0af0b43690af84fe
|
File details
Details for the file SinicValidate-1.0.0-py2.7.egg.
File metadata
- Download URL: SinicValidate-1.0.0-py2.7.egg
- Upload date:
- Size: 4.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d8cc37b6b2abfc0cb605245124a4d8b3378dad7aba9f50157f5ca161193ba2b
|
|
| MD5 |
740d25cf7047e9a2d9b9f03b072438af
|
|
| BLAKE2b-256 |
3c900c35b6fff250bd74373fdaafbaac81e577d22a2d93eadb915ad192309d56
|