semvec/pypi-packages huggingface dataset:
progmon 0.1.0
This module offers different methods to show the current status of an iterative calculation algorithm or to control its execution, i.e. abort it when certain criterions are met.
Requires Python: >=3.7

progmon - a simple progress monitor
===================================

This module offers different methods to show the current status of an
iterative calculation algorithm, or to control its execution, i.e. abort it
when certain criterions are met.


Copyright notice
----------------

Copyright (C) 2013-2023 Daniel Jung.
Contact: proggy-contact@mailbox.org

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
drf-queryset-optimization 0.1.1
A package for optimizing querysets in Django REST Framework views and viewsets

drf-queryset-optimization
=========================
A Django package that provides mixins for optimizing querysets in Django REST Framework views and viewsets.

Features
--------
- Defer specific fields in queryset using class attributes.
- Include only specific fields in queryset using class attributes.

Installation
------------
pip install drf-queryset-optimization

Usage
-----
Using the optimization mixins in your viewsets is straightforward:

1. Import the `QuerysetOptimizationMixin` from `drf_queryset_optimization.mixins`.

2. In your viewset class, inherit from `QuerysetOptimizationMixin`.

3. Specify the fields you want to defer or include using the `defer_fields` and `only_fields` class attributes.

Example
-------
Here's a basic example of how you can use the package in your project:

```
from drf_queryset_optimization.mixins import QuerysetOptimizationMixin
from rest_framework.viewsets import ModelViewSet
from .models import YourModel
from .serializers import YourSerializer

class OptimizedModelViewSet(QuerysetOptimizationMixin, ModelViewSet):
    defer_fields = ["field1", "field2"]  # Fields to defer
    only_fields = []  # Fields to include

    queryset = YourModel.objects.all()
    serializer_class = YourSerializer
```

License
-------
MIT License