Skip to content

Instantly share code, notes, and snippets.

View dev-drprasad's full-sized avatar

Reddy Prasad D dev-drprasad

View GitHub Profile
@dev-drprasad
dev-drprasad / simple_oauth.py
Created December 22, 2017 19:33
OAuth Client to refresh access token with caching
import json
import requests
from time import time
class OAuthClient:
def __init__(self, server, client_id, client_secret, grant_type, scope):
self.server = server
self.client_id = client_id
self.client_secret = client_secret
@dev-drprasad
dev-drprasad / sexify_currency.py
Created July 24, 2017 09:17
python code to convert float values to indian money format
import locale
from math import log10
def sexify(value):
"""
formats the float value to indian money format
:param value:
:return:
"""