New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

SinicValidate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

SinicValidate

Validate Sinic Phone & Email & etc

  • 1.0.5
  • PyPI
  • Socket score

Maintainers
1

============= 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):

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc