Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import datetime
import uuid
from decimal import Decimal
from rest_framework import generics
from rest_framework.response import Response
def fake_some_model_data() -> dict:
return {
"uuid": str(uuid.uuid4()),
"name": "Algum nome aleatório bem grande",
"email": "",
"birthday":, 5, 28),
"is_premium": True,
"cash": Decimal(957.78),
"invoice_date": 28,
class IndexList(generics.ListAPIView):
def get(self, request, *args, **kwargs):
some_big_query_data = []
for _ in range(1000000):
return Response(some_big_query_data)
index = IndexList.as_view()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment