Skip to main content

django-jsonfilter

Django’s dumpdata management command allows you to dump objects from a given application, but sometimes you’ll want to extract all objects of a given model from a much larger file containing objects from many models.

This package provides the jsonfilter.py commandline utility, which will allow you to do just that.

Ultimately the idea would be to also add options to be able to search on different model fields to extract the objects you want before importing them again into the database.

Although it loads the entire json in memory, it’s actually quite fast. On a 41.6MB json file containing 131515 objects, it takes about 3s to extract 10341 objects of a given type. The 3s is actually fairly constant, however many objects there are of the model it’s extracting.

See jsonfilter.py --help for usage.

You can install this package through easy_install and pip.

© Copyright 2010 Éric St-Jean, email: esj a-t w w d d-o-t c a

This file is part of django-jsonfilter.

django-jsonfilter is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

django-jsonfilter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with django-jsonfilter. If not, see <http://www.gnu.org/licenses/>.

Metadata

Release files for django-jsonfilter 0.1.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-jsonfilter 0.1.1
File Size Uploaded Provenance Actions
django-jsonfilter-0.1.1.tar.gz 3.2 kB Without provenance Details for django-jsonfilter-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-jsonfilter 0.1.1
File Interpreter ABI Platform Actions
django-jsonfilter-0.1.1.linux-i686.exe Details for django-jsonfilter-0.1.1.linux-i686.exe

Total release size: 70.7 kB

Release files / django-jsonfilter-0.1.1.tar.gz

Download URL django-jsonfilter-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
616aa835e72a099b656b46da2aff70ef233b801208cf3d1b7ee240041a424529
BLAKE2b-256 checksum
How to use checksums
bf1b790e8ca524865269688244a4239c98d90036b28a9fcf9076ef9c41fb975d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django-jsonfilter-0.1.1.linux-i686.exe

Download URL django-jsonfilter-0.1.1.linux-i686.exe
Size 67.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9668c609e12060c27c651530608fbd28c5846ff17fe48712ca398b1da7345abc
BLAKE2b-256 checksum
How to use checksums
299e92369a84cdcb94bc700af9a3d8bc37dc8ca4a92558ea84447ff6c35e4202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-jsonfilter 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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