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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
anad_dev-0.0.3.tar.gz
(2.3 kB
view details)
File details
Details for the file anad_dev-0.0.3.tar.gz
.
File metadata
- Download URL: anad_dev-0.0.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46d8beb961393189304983a04020152a19d594522477601d417932044e20a65 |
|
MD5 | 173178c9b28801f9f4eeeccb9ec92dda |
|
BLAKE2b-256 | 202ec51f5a8b4405cd8a53d59aa698bb61e5a572e10b23f41fdd5312f7397d61 |