Django Export XLS
Django Export XLS is a simple Django app to export data to a xls file.
Detailed documentation is in the “docs” directory on github https://github.com/Daiech/django-export-xls
Instalation
Install from PyPi:
$ pip install django-export-xls
Quick start
Add “export_xls” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'export_xls', )Be sure to have the MEDIA_ROOT and MEDIA_URL vars defined. eg:
import os MEDIA_ROOT = os.sep.join([os.path.dirname(os.path.dirname(__file__)), 'media']) MEDIA_URL = '/media/'
The only thing that you must to do is create an excel file is:
* Define a name for your file * Define a Python list with the fields you want in your excel (xls headers). * Create a python list with the values you want to add to your xls file.
How to use
Import the function:
from export_xls.views import export_xlwt
‘export_xlwt’ function needs:
3 mandatory parameters:
filename fields values_list
2 optional parameters:
save : save the xls file on settings.MEDIA_ROOT folder : save the xls file on settings.MEDIA_ROOT/folder
‘export_xlwt’ function return the string:
MEDIA_URL + folder + filename eg: /media/xls/filename.xls
Example
from export_xls.views import export_xlwt return export_xlwt(filename, fields, values_list, save=True, folder=”xls/”)
view the real example. Clone de github repo:
git clone https://github.com/Daiech/django-export-xls cd django-export-xls/example python manage.py runserver Credentians for database: * user: daiech * pass: 1
Metadata
Release files for django-export-xls 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-export-xls-0.1.1.tar.gz | 3.2 kB | Without provenance | Details for django-export-xls-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django-export-xls-0.1.1.linux-i686.exe | Details for django-export-xls-0.1.1.linux-i686.exe |
Total release size: 71.2 kB
Release files / django-export-xls-0.1.1.tar.gz
| Download URL | django-export-xls-0.1.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2de342cb8eb3b22b563e8ad5924d00cff4ef91c1d3f6a44eec54a6ce06a719c
|
|
BLAKE2b-256 checksum How to use checksums |
9e834051d493d83a4ac4e24a649fa872bda20b6a1ce2e52e6ba1ee321fd8c463
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django-export-xls-0.1.1.linux-i686.exe
| Download URL | django-export-xls-0.1.1.linux-i686.exe |
|---|---|
| Size | 68.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5ba52d7094c078deef735dddf7aa442cdb72108312d69d70885b5c8de80168e
|
|
BLAKE2b-256 checksum How to use checksums |
7db0b776dade219c71fc2384d9c8478fb3936b9fababd3b8eeeb168770c21b10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-export-xls 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.