Import/export django models via xlsx
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-db-xlsx-1.0.1.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file django-db-xlsx-1.0.1.tar.gz
.
File metadata
- Download URL: django-db-xlsx-1.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d6f49038e28ca963a45331a4d0bc38751ffdd613f722335911df0be7364d2f |
|
MD5 | 5ed6be007f0996246ac38757cf8df964 |
|
BLAKE2b-256 | 85bf902cff7fb67349c16724076bbc7d31e6dbc1d51049d3f7d3e6367235da29 |
File details
Details for the file django_db_xlsx-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_db_xlsx-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69349d0e715defa7748c5958184f31ccc94a08437fadf2148d1d06d2439812c0 |
|
MD5 | c574239a82d540d81998dcfd77a1f8b9 |
|
BLAKE2b-256 | a5069a8a498d025f39c0c2b9cd10635b356c89f61d46ac6c5c2bc8546588e166 |