Skip to content

Instantly share code, notes, and snippets.

@jbdesbas
Created June 8, 2020 13:56
Show Gist options
  • Save jbdesbas/8c3a3259b4a903b615f11ba5ec6aa98a to your computer and use it in GitHub Desktop.
Save jbdesbas/8c3a3259b4a903b615f11ba5ec6aa98a to your computer and use it in GitHub Desktop.
from utils_flask_sqla import response
from datetime import date, time, datetime
import uuid
test_dict=dict(
my_datetime=datetime.now(),
my_uuid=uuid.uuid4(),
my_time=time(12,54),
my_date=date(2020,6,8),
my_float=flaot(2.6456454)
)
r=response.to_json_resp(test_dict)
print(r.data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment