Skip to content

tinkertechnology/django-sql-queries-to-excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python raw sql to excel using XlxsWriter

Basic Usage

In any View import example:

from django_sql_query_to_excel import SqlQueryToExcel

def somefunc_view(): #any view , apiview , view etc sql_query = "" #define your sql as show below """ for orm , convert your objects to string queries , sql_query = obj.query.str() or simple raw query: sql_query = f""" select * from yourtable """"

"""

return SqlQueryToExcel.query_to_excel(sql_query) 
"""return to get your response result"""

Installation

$ pip install django-sql-query-to-excel

Documentation

"refer basic usage"

Contribution

Please send your PR

About

Converts django sql queries to excel, all SQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages