Title: Django convert external API data into a queryset without actually interacting with local database
Tags: python;django
Question: In my Django project im fetching data from an external API. It is possible to convert the API data into a django model or class.
The resulting data shell be used in a view form which is using django-filter to filter the information by user input.
The django-filter instance expects a queryset as input.
How do i turn the external API data into a queryset without interacting with the local database in any form?
Comment: Does this answer your question? [Use Django Queryset filter API on in-memory list of Model instances?](https://stackoverflow.com/questions/61063486/use-django-queryset-filter-api-on-in-memory-list-of-model-instances)

Comment: There are several issues with filtering response from an external system, e.g. if the result is paged you won't be able to filter it properly, and if it is not you may end up wasting time transferring a lot of data. Btw many APIs support filtering, are you sure your API doesn't provide what you're trying to do with django-filter?



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2022:00:02/11/22', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<python><django>', 'Title': 'Django convert external API data into a queryset without actually interacting with local database', 'ViewCount': 158, 'id': 71083105, 'user_AboutMe': None, 'user_AccountId': 23695329.0, 'user_DisplayName': 'AyJay', 'user_Reputation': 11.0, 'user_Views': 1.0, 'user_id': 17719118.0}}