django-db-xlsx
Import/export django models from/to xlsx
Quickstart
Install django-db-xlsx:
pip install django-db-xlsx
Invoke export:
from django_db_xlsx import dump_models return dump_models()
Invoke import (note: can import exported file):
from django_db_xlsx import load_models <load workbook from whatever, e.g. FileField in form> load_models(wb)
Optional setting for default models saved:
DJANGO_DB_XLSX_MODELS = [
('auth', 'User'),
]
Features
Import models via xlsx
Export models via xlsx
TODO
Beef up woefully lacking tests
Running Tests
Does the code actually work?:
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
License
Copyright Jon Robison 2017, see LICENSE for details
Release files for django-db-xlsx 1.0.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 | |
|---|---|---|---|
| django-db-xlsx-1.0.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_db_xlsx-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 10.4 kB
Release files / django-db-xlsx-1.0.1.tar.gz
| Download URL | django-db-xlsx-1.0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11d6f49038e28ca963a45331a4d0bc38751ffdd613f722335911df0be7364d2f
|
|
BLAKE2b-256 checksum How to use checksums |
85bf902cff7fb67349c16724076bbc7d31e6dbc1d51049d3f7d3e6367235da29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_db_xlsx-1.0.1-py2.py3-none-any.whl
| Download URL | django_db_xlsx-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
69349d0e715defa7748c5958184f31ccc94a08437fadf2148d1d06d2439812c0
|
|
BLAKE2b-256 checksum How to use checksums |
a5069a8a498d025f39c0c2b9cd10635b356c89f61d46ac6c5c2bc8546588e166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |