Coder Social home page Coder Social logo

libraryofcongress / django-tabular-export Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 11.0 46 KB

Utilities used to export data into spreadsheets from Django applications. Currently used internally at the Library of Congress in the WDL cataloging application.

License: Creative Commons Zero v1.0 Universal

Makefile 4.50% Python 95.50%

django-tabular-export's People

Contributors

acdha avatar joshuastegmaier avatar rested avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-tabular-export's Issues

Django LTS upgrades

Currently the tests will fail on Django 2.2 because they're not using the updated include syntax:

 File "/Users/cadams/Projects/django-tabular-export/tests/urls.py", line 7, in <module>
    urlpatterns = [url(r"^admin/", include(admin.site.urls))]
  File "/Users/cadams/Projects/django-tabular-export/.tox/py37/lib/python3.7/site-packages/django/urls/conf.py", line 27, in include
    'provide the namespace argument to include() instead.' % len(arg)
django.core.exceptions.ImproperlyConfigured: Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.

Update for Django 4.0 support

Are there any plans to update for django 4.0 ? If I opened a pull request with the needed changes, would someone be able to review and make a new release, or is this project no longer being maintained and I should look at switching to an alternate library?

[feature request] add ability to export __str__ version of foreign keys

Hi !

Awesome module that works great !

In many cases, it would be nice to have foreign keys represented as str rather than the key itself. It allows for easier analysis of data without requiring one further join step.

It would be nice if there was a way to choose how to export foreign key, maybe even be able to have both representations (in two columns).

Might work on a PR for this if you think it's a good addition.

Cheers,

Olivier

Documentation update in the README

Rather than:

from tabular_export import export_to_csv_response, export_to_xlsx_response, flatten_queryset

It should be:

from tabular_export.core import export_to_csv_response, export_to_excel_response, flatten_queryset

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.