# coding: utf-8

import flynn.decoder
import flynn.encoder

def dump(obj, fp):
	return flynn.encoder.encode(fp, obj)

def dumps(obj):
	return flynn.encoder.encode_str(obj)

def dumph(obj):
	return "".join(hex(n)[2:].rjust(2, "0") for n in dumps(obj))

def load(s):
	return flynn.decoder.decode(s)

def loads(s):
	return flynn.decoder.decode(s)

def loadh(s):
	return flynn.decoder.decode(s)


# coding: utf-8

import base64

import flynn.decoder
import flynn.encoder

__all__ = [
	"decoder",
	"encoder",
	"dump",
	"dumps",
	"dumph",
	"load",
	"loads",
	"loadh"
]

def dump(obj, fp):
	return flynn.encoder.encode(fp, obj)

def dumps(obj):
	return flynn.encoder.encode_str(obj)

def dumph(obj):
	return base64.b16encode(dumps(obj)).decode("utf-8")

def load(s):
	return flynn.decoder.decode(s)

def loads(s):
	return flynn.decoder.decode(s)

def loadh(s):
	return flynn.decoder.decode(s)


Use base64 module to convert between bytes and base16 string
Use base64 module to convert between bytes and base16 string
