from myapp.models import MyModel all_records = MyModel.objects.all()
from myapp.models import MyModel matching_records = MyModel.objects.filter(status='active')
from myapp.models import MyModel first_matching_record = MyModel.objects.filter(status='active').first()
from myapp.models import MyModel ordered_records = MyModel.objects.order_by('name')In these examples, the package library used is Django, specifically the `django.db.models` module. The QuerySet API is part of this module and provides a rich set of querying tools to retrieve data from a database.