django-database-size
Adds a page to Django admin that lists the size of all tables in the database.
Installation
python setup.py install
Or via pip with:
pip install django-database-size
Install the appropriate view in /sql (currently only PostgreSQL and MySQL supported).
Add to your INSTALLED_APPS.
Usage
Browse to /admin/database_size/.
Development
To run unittests across multiple Python versions, install:
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python-dev python3-dev python3.3-minimal python3.3-dev python3.4-minimal python3.4-dev python3.5-minimal python3.5-dev python3.6 python3.6-dev
To run all tests:
export TESTNAME=; tox
To run tests for a specific environment (e.g. Python 2.7 with Django 1.4):
export TESTNAME=; tox -e py39-django2
To run a specific test:
export TESTNAME=.test_example; tox -e py27-django15
To run the documentation server locally:
mkdocs serve -a :9999
To deploy documentation, run:
mkdocs gh-deploy --clean
To build and deploy a versioned package to PyPI, verify all unittests are passing, and then run:
python setup.py sdist
python setup.py sdist upload
Metadata
Release files for django-database-size 1.0.6
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_database_size-1.0.6.tar.gz | 6.8 kB | Without provenance | Details for django_database_size-1.0.6.tar.gz |
Release files / django_database_size-1.0.6.tar.gz
| Download URL | django_database_size-1.0.6.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5af2ef1c6016b997ff39a04b4aebbedf1b6ec3ed47069c82a9c6c509df5d3474
|
|
BLAKE2b-256 checksum How to use checksums |
79a2dad5564b90132865b81d5018fe36cb9ff281719ebd81aaff9eb3e25049a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15rc1
|
Security for django-database-size 1.0.6
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.