Metadata-Version: 2.1
Name: db_queryset_tools_pkg
Version: 0.0.2
Summary: A package to convert Django Queryset to list, dictionary, json and dataset for charts
Home-page: https://github.com/Hariharan-Sathiyamoorthy/db_queryset_tools
Author: Hariharan Sathiyamoorthy
Author-email: hari.rn03@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django

# DB_queryset_tools

Db_queryset_tools_pkg is a Python package that provides funtionalities for converting Django QuerySets into different formats. 

## Instalation

```sh
pip install Db_queryset_tools_pkg
```

## Usage

```py
from db_queryset_tools import DB_queryset_tools


tool = DB_queryset_tools()

# Convert a QuerySet to a list
list_data = tool.queryset_to_list(queryset)

# Convert a QuerySet to a dictionary
dict_data = tool.queryset_to_dict(queryset)

# Convert a QuerySet to JSON
json_data = tool.queryset_to_json(queryset)

# Get a dataset for charts from a QuerySet - two required parameters identifier_x & identifier_y according to your chart requirment
chart_data = tool.get_dataset_for_charts(queryset,'month','count')
```

## Contribution
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
