Skip to main content

tools for development..... in anad labo

Project description

tools for development….. in anad labo

Installation

pip install anad_dev

Usage

ecrypt

e.g.:

>>> from anad_dev import ecrypt
>>> pw = 'test_pass_phrase'
>>> ec_pw = ecrypt.ecrypt.compr(pw)
>>> ec_pw
'/Td6WFoAAATm1rRGAgAhARYAAAB0L+WjAQAPdGVzdF9wYXNzX3BocmFzZQA3khspehQ3iwABKBDl\nC2xgH7bzfQEAAAAABFla\n'
>>>
>>> ecrypt.ecrypt.decompr(ec_pw)
'test_pass_phrase'
this is just a easy encryption everybody CAN decrypt.
I just use it when I don’t want to show my password at glimpse.

send_gmail

e.g.:

from anad_dev import ecrypt, send_gmail
account = 'dais.cns@gmail.com'
passwd = ecrypt.ecrypt.decompr('/Td6WFoAAATm1rRGAgAhARYAAAB0L+WjAQAPdGVzdF9wYXNzX3BocmFzZQA3khspehQ3iwABKBDl\nC2xgH7bzfQEAAAAABFla\n')
body = 'test\nhehehe'
subject = 'gmail test send'
msg_to = 'dais.cns@gmail.com'
send_gmail.send_gmail.doIt(account, passwd, body, subject, msg_to)

*** you need to turn on as your gmail account can used low level access on your gmail setting page.


any questions to:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
anad_dev-0.0.3.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None Sep 8, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page