This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

App for export data in csv files from models with selected fields and custom filtration.

Useful for create reports and calculate some statistic data for external sources.

Requires

Python 2.6 or 2.7 and Django 1.3 and higher.

Installation

Install using pip:

$ pip install django-exportdata

Add exportdata in INSTALLED_APPS.

Examples Of Usage

Create ~/exportdata/auth.User.csv file with all model data:

$ python manage.py exportdata auth.User

Set fields for export:

$ python manage.py exportdata app.model –fields=pk,model_field,get_absolute_url,method_property,fk__field

Set custom filtration (based on model manager methods and filter(field=value) filtration):

$ python manage.py exportdata app.model –filters=active,paid,field=value,fk__field__gte=value

Set custom ordering:

$ python manage.py exportdata app.model –ordering=-created_on,title

Set “from and to” range values primary keys (pks) for export:

$ python manage.py exportdata app.model –range=1-100

Or set range with comma-separated values:

$ python manage.py exportdata app.model –range=1,2,3,4,5

Set custom file path for save:

$ python manage.py exportdata app.model –filepath=directory/filename.extension

Set fields when decorated models.permalink (by default get_absolute_url field). For adding the domain before data:

$ python manage.py exportdata app.model –permalinks=get_absolute_url,get_absolute_admin_url

Changes

###0.2 (2013-07-20)

  • Moved many operations in methods with improvements
  • Added advanced fitration for --filters option
  • Added support --range option
  • Added --filepath option for set file for save data
  • Added --permalinks option for get models.permalink decorated fields
  • Added help for all options and for the command
  • Added package documentation on ReadTheDocs

###0.1 (2013-07-13)

Initial release

Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-exportdata-0.2.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Jul 20, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting