Skip to main content

django-db-xlsx

https://badge.fury.io/py/django-db-xlsx.png https://travis-ci.org/narfman0/django-db-xlsx.png?branch=master

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)

Source distribution for django-db-xlsx 1.0.1
File Size Uploaded
django-db-xlsx-1.0.1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-db-xlsx 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page