{"id":16624273,"url":"https://github.com/dcramer/django-data-tools","last_synced_at":"2025-07-07T11:12:42.509Z","repository":{"id":57419673,"uuid":"2601549","full_name":"dcramer/django-data-tools","owner":"dcramer","description":null,"archived":false,"fork":false,"pushed_at":"2013-02-21T22:45:19.000Z","size":138,"stargazers_count":38,"open_issues_count":3,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-15T15:17:39.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcramer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-18T19:56:40.000Z","updated_at":"2023-09-08T16:30:52.000Z","dependencies_parsed_at":"2022-08-31T15:52:34.338Z","dependency_job_id":null,"html_url":"https://github.com/dcramer/django-data-tools","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fdjango-data-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fdjango-data-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fdjango-data-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fdjango-data-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcramer","download_url":"https://codeload.github.com/dcramer/django-data-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244822610,"owners_count":20516136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T03:45:45.173Z","updated_at":"2025-03-21T15:31:08.700Z","avatar_url":"https://github.com/dcramer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-data-tools\n=================\n\nA set of utilities and improvements for managing data (fixtures specifically) in Django.\n\nInstall\n-------\n\n::\n\n    INSTALLED_APPS = (\n        # ...\n        'datatools',\n    )\n\nCommands\n--------\n\ndumpdata\n~~~~~~~~\n\nAn improved version of the ``manage.py dumpdata`` command:\n\n* Adds a --limit option to specify the maximum number of objects per model to fetch.\n* Adds a --sort option to specify ascending or descending order for serialization.\n* Automatically follows the dependency graph for ForeignKeys and ManyToManyFields.\n\n::\n\n    # Retrieve the latest 10000 thread objects with all their required dependencies\n    python manage.py dumpdata forums.thread --limit=10000 --sort=desc\n\nUtilities\n---------\n\nRangeQuerySetWrapper\n~~~~~~~~~~~~~~~~~~~~\n\nEfficient iteration over a large collection of database objects, using a standard range\npattern on the primary key.\n\n::\n\n    from datatools.query import RangeQuerySetWrapper\n\n    qs = RangeQuerySetWrapper(Model.objects.all(), limit=100000)\n    for obj in qs:\n        print \"Got %r!\" % obj\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcramer%2Fdjango-data-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcramer%2Fdjango-data-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcramer%2Fdjango-data-tools/lists"}