- base64 encode/decode
- morse encode/decode
- base85 encode/decode
- braillie encode/decode
- binary encode/decode
- octal encode/decode
- base32 encode/decode
- base58 encode/decode
- base62 encode/decode
- url encode/decode
- html encode/decode
>>> from pymagi import *
>>> a = morseencode("This_is_test")
>>> a
'- .... .. ... ..--.- .. ... ..--.- - . ... -'
>>> morsedecode(a)
'THIS_IS_TEST'
def exmaple(payload):
connectioncheck()
data = json.dumps({"input": payload,"recipe":{"op":"From example","args":["A-Za-z0-9+/=",True]},"outputType":"string"})
API_ENDPOINT = "http://localhost:3000/bake"
headers_dict = {"Content-Type":"application/json"}
# #sending post request and saving response as response object
r = requests.post(url = API_ENDPOINT, headers=headers_dict,data = data)
# # # # extracting response text
value_received = json.loads(r.text)
value = value_received['value']
return value