Skip to main content

Extensions for Django

Project description

nicedjango

Nice django tools

Build Status Documentation Status Downloads Latest Version Supported Python versions Supported Python implementations Development Status Wheel Status Egg Status Download format License

ModelGraph

Selective dumping and loading of only the needed model data for all objects and their related objects of one or more querysets.

This is done by
  • getting a graph of all relations between models,

  • than getting all pks first chunked in steps of 10k

  • and than dump them in an order that enables correct loading.

For now the serialization is handled by django’s yaml decoder to enable queries in chunks for big data.

Examples

# show model graph parts that would be dumped and those which not:
./manage.py dump_graph -s -q 'a'
 a1.a:
   ignored subs:
     a1.a.b > a1.b

# add relations to the to be dumped graph
./manage.py dump_graph -s -q 'a' -e 'a.b'
  a1.a:
    subs:
      a1.a.b > a1.b
  a1.b:
    parents:
      a1.b.a_ptr > a1.a
    ignored subs:
      a1.b.c > a1.c

# dump all objects from myapp.models.MyModel.objects.filter(..)
./manage.py dump_graph -d dump.yaml -q 'myapp.mymodel.filter(..)'

# load dump.yaml
./manage.py load_graph dump.yaml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

nicedjango-1.1.0.zip (24.5 kB view details)

Uploaded Source

nicedjango-1.1.0.tar.gz (15.1 kB view details)

Uploaded Source

nicedjango-1.1.0.tar.bz2 (13.2 kB view details)

Uploaded Source

Built Distribution

nicedjango-1.1.0-py2.py3-none-any.whl (12.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nicedjango-1.1.0.zip.

File metadata

  • Download URL: nicedjango-1.1.0.zip
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nicedjango-1.1.0.zip
Algorithm Hash digest
SHA256 eeee18956bf3df6391916dd0b27d910650881d2a6b45169745741684472396ef
MD5 c4727a8648a25f74ab488c33c4e8c9b8
BLAKE2b-256 963ac93e270b1001e323176d060834701ddaace0e4c7fffec0c27a61bf75f174

See more details on using hashes here.

File details

Details for the file nicedjango-1.1.0.tar.gz.

File metadata

  • Download URL: nicedjango-1.1.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nicedjango-1.1.0.tar.gz
Algorithm Hash digest
SHA256 27cd22776b4a05eb0f8e4b22b9ed3ee68a29a649cd09f2e8d7a9a34094ad4ca5
MD5 c3a74456ae40301e4cff714f67100d17
BLAKE2b-256 4f1024a6a327e0c955337b3bb5da7459f399d49956e86d4cd750d7afea4bcd4a

See more details on using hashes here.

File details

Details for the file nicedjango-1.1.0.tar.bz2.

File metadata

  • Download URL: nicedjango-1.1.0.tar.bz2
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nicedjango-1.1.0.tar.bz2
Algorithm Hash digest
SHA256 5ba268df65903cee40e197ee53999163620f515c9bda5715eab21bc720b84dd3
MD5 1f88b1b1744667c573e9ab88770dfb9c
BLAKE2b-256 80ff50e5ce6acea0823b7523a3ad6fb0a261473a7529097a600156c1f13217fe

See more details on using hashes here.

File details

Details for the file nicedjango-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nicedjango-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f3f61f478a312e072d6708e2ea1bac9640eb124c2a2ff06a2c32f48c2bdc7ba1
MD5 b51175b39ccef035b7cd592fb8d2d51e
BLAKE2b-256 6836fb43f29bb16dca603c70023de7de50ee71fe2eb4845f3164bc7fc8f0ac06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page