Skip to main content

SinicValidate

Validate Sinic Phone & Email & etc

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]: from SinicValidate import validate, simple

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]:

Method

validate
    def phone(self, message, china_mobile=None, china_union=None, china_telcom=None, other_telphone=None):

    def email(self, message, regex=None):


simple
    def phone(self, message, regex=None):

Metadata

Release files for SinicValidate 1.0.5

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

Source distribution (sdist)

Source distribution for SinicValidate 1.0.5
File Size Uploaded Provenance Actions
SinicValidate-1.0.5.tar.gz 2.5 kB Without provenance Details for SinicValidate-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SinicValidate 1.0.5
File Interpreter ABI Platform Actions
SinicValidate-1.0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details for SinicValidate-1.0.5-py2.py3-none-any.whl

Total release size: 6.9 kB

Release files / SinicValidate-1.0.5.tar.gz

Download URL SinicValidate-1.0.5.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
616cecda7b5c2fd1b0b65833a34a4b9ed998cceaa90588e647def6ede72b145f
BLAKE2b-256 checksum
How to use checksums
92fa3ea6c56bd096937bea6b646ffe46d4529808e972991b1d9c75d3da86f1f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / SinicValidate-1.0.5-py2.py3-none-any.whl

Download URL SinicValidate-1.0.5-py2.py3-none-any.whl
Size 4.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
633d5a33411a45ed9dcf3405b71df00d51656d06439160ae00d0c4923197c790
BLAKE2b-256 checksum
How to use checksums
4bc4942b82b8027b2d2548355e141af4d3d0da294303caaa31f5059da9a606e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for SinicValidate 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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