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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| django-db-xlsx-1.0.1.tar.gz | 4.5 kB | Without provenance | Details for django-db-xlsx-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_db_xlsx-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_db_xlsx-1.0.1-py2.py3-none-any.whl |
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 |
Security for django-db-xlsx 1.0.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.