def get_oauth1session(consumer_key, consumer_secret, private_key, passphrase):
from Crypto.PublicKey import RSA
from requests_oauthlib import OAuth1
with open(private_key, 'r') as fd:
rsa_key = RSA.importKey(fd.read(), passphrase)
return OAuth1(client_key=consumer_key, client_secret=consumer_secret,
signature_method='RSA-SHA1', rsa_key=rsa_key)
atlassian_expiring_licenses.py 文件源码
python
阅读 42
收藏 0
点赞 0
评论 0
评论列表
文章目录