django-import-export Documentation

Size: px
Start display at page:

Download "django-import-export Documentation"

Transcription

1 django-import-export Documentation Release Bojan Mihelac August 27, 2013

2

3 CONTENTS i

4 ii

5 django-import-export is a Django application and library for importing and exporting data with included admin integration. Features: support multiple formats (Excel, CSV, JSON,... and everything else that tablib support) admin integration for importing preview import changes admin integration for exporting export data respecting admin filters CONTENTS 1

6 2 CONTENTS

7 CHAPTER ONE USER GUIDE 1.1 Installation django-import-export is on the Python Package Index (PyPI), so it can be installed with standard Python tools like pip or easy_install: $pip install django-import-export 1.2 Configuration The only mandatory configuration is adding import_export to your INSTALLED_APPS. This isn t necessary, if admin integration is not used. 1.3 Getting started For example purposes, we ll be use simplified book app, here is our core.models.py: class Author(models.Model): name = models.charfield(max_length=100) def unicode (self): return self.name class Category(models.Model): name = models.charfield(max_length=100) def unicode (self): return self.name class Book(models.Model): name = models.charfield( Book name, max_length=100) author = models.foreignkey(author, blank=true, null=true) author_ = models. field( Author , max_length=75, blank=true) imported = models.booleanfield(default=false) published = models.datefield( Published, blank=true, null=true) price = models.decimalfield(max_digits=10, decimal_places=2, null=true, blank=true) 3

8 categories = models.manytomanyfield(category, blank=true) def unicode (self): return self.name Creating import-export resource To integrate django-import-export with Book model, we will create resource class that will describe how this resource can be imported or exported. from import_export import resources from core.models import Book class BookResource(resources.ModelResource): class Meta: model = Book Exporting data Now that we have defined resource class, we can export books: >>> dataset = BookResource().export() >>> print dataset.csv id,name,author,author_ ,imported,published,price,categories 2,Some book,1,,0, ,8.85, Customize resource options By default ModelResource introspects model fields and creates import_export.fields.field attribute with appopriate widget for each field. To affect which model fields will be included in import-export resource, use fields option to whitelist fields or exclude option for to blacklist fields: class BookResource(resources.ModelResource): class Meta: model = Book exclude = ( imported, ) When defining ModelResource fields it is possible to follow model relationships: class BookResource(resources.ModelResource): class Meta: model = Book fields = ( author name,) Note: Following relationship fields sets field as readonly, meaning this field will be skipped when importing data. See Also: 4 Chapter 1. User Guide

9 Resources Declaring fields It is possible to override resource fields to change some of it s options: from import_export import fields class BookResource(resources.ModelResource): published = fields.field(column_name= published_date ) class Meta: model = Book Other fields, that are not existing in target model may be added: from import_export import fields class BookResource(resources.ModelResource): myfield = fields.field(column_name= myfield ) See Also: class Meta: model = Book Fields Available field types and options Advanced data manipulation Not all data can be easily pull off an object/model attribute. In order to turn complicated data model into a (generally simpler) processed data structure, dehydrate_<fieldname> method should be defined: from import_export import fields class BookResource(resources.ModelResource): full_title = fields.field() class Meta: model = Book def dehydrate_full_title(self, book): return %s by %s % (book.name, book.name.author) Customize widgets ModelResource creates field with default widget for given field type. If widget should be initialized with different arguments, set widgets dict. In this example widget for published field is overriden to use different date format. This format will be used both for importing and exporting resource. class BookResource(resources.ModelResource): class Meta: model = Book 1.3. Getting started 5

10 See Also: widgets = { published : { format : %d.%m.%y }, } Widgets available widget types and options Importing data Let s import data: >>> import tablib >>> from import_export import resources >>> from core.models import Book >>> book_resource = resources.modelresource_factory(model=book)() >>> dataset = tablib.dataset([, New book ], headers=[ id, name ]) >>> result = book_resource.import_data(dataset, dry_run=true) >>> print result.has_errors() False >>> result = book_resource.import_data(dataset, dry_run=false) In 4th line we use modelresource_factory to create default ModelResource. ModelResource class created this way is equal as in Creating import-export resource. In 5th line Dataset with subset of Book fields is created. In rest of code we first pretend to import data with dry_run set, then check for any errors and import data. See Also: Import data workflow for detailed import workflow descripton and customization options. Deleting data To delete objects during import, implement for_delete method on resource class. Example resource with delete field: class BookResource(resources.ModelResource): delete = fields.field(widget=widgets.booleanwidget()) def for_delete(self, row, instance): return self.fields[ delete ].clean(row) class Meta: model = Book Import of this resource will delete model instances for rows that have column delete set to Admin integration Admin integration is achived by subclassing ImportExportModelAdmin or one of mixins: from import_export.admin import ImportExportModelAdmin 6 Chapter 1. User Guide

11 class BookAdmin(ImportExportModelAdmin): # resouce_class = BookResource pass See Also: Admin available mixins and options. 1.4 Import data workflow This document describes import data workflow, with hooks that enable customization of import process import_data method arguments import_data method of import_export.resources.resource class is responsible for import data from given dataset. import_data expect following arguments: dataset REQUIRED. should be Tablib Dataset object with header row. dry_run If True, import should not change database. Default is False. raise_errors If True, import should raise errors. Default is False, which means that eventual errors and traceback will be saved in Result instance import_data method workflow 1. import_data intialize new import_export.results.result instance. Result instance holds errors and other information gathered during import. 2. InstanceLoader responsible for loading existing instances is intitalized. Different InstanceLoader class can be specified with instance_loader_class option of import_export.resources.resourceoptions. import_export.instance_loaders.cachedinstanceloader can be used to reduce number of database queries. See import_export.instance_loaders for available implementations. 3. Process each row in dataset (a) get_or_init_instance method is called with current InstanceLoader and current row returning object instance and Boolean variable that indicates if object instance is new. get_or_init_instance tries to load instance for current row or calls init_instance to init object if object does not exists yet. Default ModelResource.init_instance initialize Django Model without arguments. You can override init_instance method to manipulate how new objects are initialized (ie: to set default values). (b) for_delete method is called to determine if current instance should be deleted: OR i. current instance is deleted 1.4. Import data workflow 7

12 i. import_obj method is called with current object instance and current row. import_obj loop through all Resource fields, skipping many to many fields and calls import_field for each. (Many to many fields require that instance have a primary key, this is why assigning them is postponed, after object is saved). import_field calls field.save method, if field has both attribute and field column_name exists in given row. ii. save_instance method is called. save_instance receives dry_run argument and actually saves instance only when dry_run is False. save_instance calls two hooks methods that by default does not do anything but can be overriden to customize import process: before_save_instance after_save_instance Both methods receive instance and dry_run arguments. iii. save_m2m method is called to save many to many fields. (c) RowResult is assigned with diff between original and imported object fields as well as import type(new, updated). 4. result is returned. If exception is raised inside row processing, and raise_errors is False (default), traceback is appended to RowResult Transaction support If transaction support is enabled, whole import process is wrapped inside transaction and rollbacked or committed respectively. All methods called from inside of import_data (create / delete / update) receive False for dry_run argument. 1.5 Example app cd tests &&./manage.py runserver Username and password for admin are admin, password. 1.6 Settings IMPORT_EXPORT_USE_TRANSACTIONS Global setting controls if resource importing should use database transactions. Default is False. 8 Chapter 1. User Guide

13 1.7 TODO 1.8 Contributing Code guidelines As most projects, we try to follow PEP8 as closely as possible Most pull requests will be rejected without proper unit testing 1.9 Change Log Use field_name instead of column_name for field dehydration, FIX #36 Handle OneToOneField, FIX #17 - Exception when attempting access something on the related_name. FIX #23 - export filter not working Fix packaging DB transactions support for importing data support for deleting objects during import bug fixes Allowing a field to be dehydrated with a custom method added documentation added ExportForm to admin integration for choosing export file format refactor admin integration to allow better handling of specific formats supported features and better handling of reading text files include all avialable formats in Admin integration bugfixes Refactor api 1.7. TODO 9

14 10 Chapter 1. User Guide

15 CHAPTER TWO API DOCUMENTATION 2.1 Resources Resource class import_export.resources.resource Resource defines how objects are mapped to their import and export representations and handle importing and exporting data. after_delete_instance(instance, dry_run) Override to add additional logic. after_save_instance(instance, dry_run) Override to add additional logic. before_delete_instance(instance, dry_run) Override to add additional logic. before_save_instance(instance, dry_run) Override to add additional logic. export(queryset=none) Exports a resource. for_delete(row, instance) Returns True if row importing should delete instance. Default implementation returns False. Override this method to handle deletion. get_diff(original, current, dry_run=false) Get diff between original and current object when import_data is run. dry_run allows handling special cases when object is not saved to database (ie. m2m relationships). get_diff_headers() Diff representation headers. classmethod get_field_name(field) Returns field name for given field. get_fields() Returns fields in export_order order. import_data(dataset, dry_run=false, raise_errors=false, use_transactions=none) Imports data from dataset. 11

16 use_transactions If True import process will be processed inside transaction. If dry_run is set, or error occurs, transaction will be rolled back. import_obj(obj, data) save_m2m(obj, data, dry_run) Saves m2m fields. Model instance need to have a primary key value before a many-to-many relationship can be used ModelResource class import_export.resources.modelresource ModelResource is Resource subclass for handling Django models. classmethod widget_from_django_field(f, default=<class import_export.widgets.widget >) Returns the widget that would likely be associated with each Django type. classmethod widget_kwargs_for_field(field_name) Returns widget kwargs for given field_name ResourceOptions (Meta) class import_export.resources.resourceoptions The inner Meta class allows for class-level configuration of how the Resource should behave. The following options are available: fields - Controls what introspected fields the Resource should include. A whitelist of fields. exclude - Controls what introspected fields the Resource should NOT include. A blacklist of fields. model - Django Model class. It is used to introspect available fields. instance_loader_class - Controls which class instance will take care of loading existing objects. import_id_fields - Controls which object fields will be used to identify existing instances. export_order - Controls export order for columns. widgets - dictionary defines widget kwargs for fields. use_transactions - Controls if import should use database transactions. Default value is None meaning settings.import_export_use_transactions will be evaluated. 2.2 Fields class import_export.fields.field(attribute=none, column_name=none, widget=none, readonly=false) Field represent mapping between object field and representation of this field. attribute string of either an instance attribute or callable off the object. column_name let you provide how this field is named in datasource. widget defines widget that will be used to represent field data in export. readonly boolean value defines that if this field will be assigned to object during import. clean(data) Takes value stored in the data for the field and returns it as appropriate python object. 12 Chapter 2. API documentation

17 export(obj) Returns value from the provided object converted to export representation. get_value(obj) Returns value for this field from object attribute. save(obj, data) Cleans this field value and assign it to provided object. 2.3 Widgets class import_export.widgets.widget Widget takes care of converting between import and export representations. Widget objects have two functions: converts object field value to export representation converts import value and converts it to appropriate python representation clean(value) Returns appropriate python objects for import value. render(value) Returns export representation of python value. class import_export.widgets.integerwidget Widget for converting integer fields. class import_export.widgets.decimalwidget Widget for converting decimal fields. class import_export.widgets.charwidget Widget for converting text fields. class import_export.widgets.booleanwidget Widget for converting boolean fields. class import_export.widgets.datewidget(format=none) Widget for converting date fields. Takes optional format parameter. class import_export.widgets.foreignkeywidget(model, *args, **kwargs) Widget for ForeignKey model field that represent ForeignKey as integer value. Requires a positional argument: the class to which the field is related. class import_export.widgets.manytomanywidget(model, *args, **kwargs) Widget for ManyToManyField model field that represent m2m field as comma separated pk values. Requires a positional argument: the class to which the field is related. 2.4 Instance loaders class import_export.instance_loaders.baseinstanceloader(resource, dataset=none) Base abstract implementation of instance loader Widgets 13

18 class import_export.instance_loaders.modelinstanceloader(resource, dataset=none) Instance loader for Django model. Lookup for model instance by import_id_fields. class import_export.instance_loaders.cachedinstanceloader(*args, **kwargs) Loads all possible model instances in dataset avoid hitting database for every get_instance call. This instance loader work only when there is one import_id_fields field. 2.5 Admin import_export.admin.default_formats = (<class import_export.formats.base_formats.csv >, <class import_export import / export formats class import_export.admin.exportmixin Export mixin. change_list_template = admin/import_export/change_list_export.html template for change_list view export_template_name = admin/import_export/export.html template for export view formats = (<class import_export.formats.base_formats.csv >, <class import_export.formats.base_formats.xls >, <cl available import formats get_export_formats() Returns available import formats. get_export_queryset(request) Returns export queryset. Default implementation respects applied search and filters. resource_class = None resource class to_encoding = utf-8 export data encoding class import_export.admin.importexportmixin Import and export mixin. change_list_template = admin/import_export/change_list_import_export.html template for change_list view class import_export.admin.importexportmodeladmin(model, admin_site) Subclass of ModelAdmin with import/export functionality. class import_export.admin.importmixin Import mixin. change_list_template = admin/import_export/change_list_import.html template for change_list view formats = (<class import_export.formats.base_formats.csv >, <class import_export.formats.base_formats.xls >, <cl available import formats from_encoding = utf-8 import data encoding 14 Chapter 2. API documentation

19 get_import_formats() Returns available import formats. import_action(request, *args, **kwargs) Perform a dry_run of the import to make sure the import will not result in errors. If there where no error, save the user uploaded file to a local temp file that will be used by process_import for the actual import. import_template_name = admin/import_export/import.html template for import view process_import(request, *args, **kwargs) Perform the actual import action (after the user has confirmed he wishes to import) resource_class = None resource class 2.6 Results Result class import_export.results.result(*args, **kwargs) 2.6. Results 15

20 16 Chapter 2. API documentation

21 PYTHON MODULE INDEX i import_export.admin,?? import_export.instance_loaders,?? 17

django-import-export Documentation

django-import-export Documentation django-import-export Documentation Release 0.7.1.dev0 Bojan Mihelac Feb 06, 2018 User Guide 1 Installation and configuration 3 1.1 Settings.................................................. 3 1.2 Example

More information

django-import-export Documentation

django-import-export Documentation django-import-export Documentation Release 0.6.1 Bojan Mihelac Dec 11, 2017 User Guide 1 Installation and configuration 3 1.1 Settings.................................................. 3 1.2 Example app...............................................

More information

django-model-report Documentation

django-model-report Documentation django-model-report Documentation Release 0.2.1 juanpex Nov 06, 2017 Contents 1 Demo 3 1.1 User Guide................................................ 3 1.2 Modules.................................................

More information

django-audit-log Documentation

django-audit-log Documentation django-audit-log Documentation Release 0.8.0 Vasil Vangelovski (Atomidata) Jul 21, 2017 Contents 1 Installation 3 2 Tracking Users that Created/Modified a Model 5 2.1 Tracking Who Created a Model.....................................

More information

django-autocomplete-light Documentation

django-autocomplete-light Documentation django-autocomplete-light Documentation Release 3.0.4 James Pic & contributors March 08, 2016 Contents 1 Features 1 2 Resources 3 3 Basics 5 3.1 Install django-autocomplete-light v3...................................

More information

wagtailtrans Documentation

wagtailtrans Documentation wagtailtrans Documentation Release 0.1.0 LUKKIEN Jul 27, 2018 Contents 1 Table of contents 3 1.1 Getting started.............................................. 3 1.2 Migrate your existing Wagtail site....................................

More information

databuild Documentation

databuild Documentation databuild Documentation Release 0.0.10 Flavio Curella May 15, 2015 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Quickstart................................................

More information

django-conduit Documentation

django-conduit Documentation django-conduit Documentation Release 0.0.1 Alec Koumjian Apr 24, 2017 Contents 1 Why Use Django-Conduit? 3 2 Table of Contents 5 2.1 Filtering and Ordering.......................................... 5

More information

Django Data Importer Documentation

Django Data Importer Documentation Django Data Importer Documentation Release 2.2.1 Valder Gallo May 15, 2015 Contents 1 Django Data Importer 3 1.1 Documentation and usage........................................ 3 1.2 Installation................................................

More information

Graphene Documentation

Graphene Documentation Graphene Documentation Release 1.0.dev Syrus Akbary Nov 09, 2017 Contents 1 Introduction tutorial - Graphene and Django 3 1.1 Set up the Django project........................................ 3 1.2 Hello

More information

Python Schema Generator Documentation

Python Schema Generator Documentation Python Schema Generator Documentation Release 1.0.0 Peter Demin June 26, 2016 Contents 1 Mutant - Python code generator 3 1.1 Project Status............................................... 3 1.2 Design..................................................

More information

Easy-select2 Documentation

Easy-select2 Documentation Easy-select2 Documentation Release 1.2.2 Lobanov Stanislav aka asyncee September 15, 2014 Contents 1 Installation 3 2 Quickstart 5 3 Configuration 7 4 Usage 9 5 Reference 11 5.1 Widgets..................................................

More information

Django Extras Documentation

Django Extras Documentation Django Extras Documentation Release 0.2.7.b1 Tim Savage September 22, 2017 Contents 1 Django Extras documentation 1 1.1 Project Status............................................... 1 1.2 Getting help...............................................

More information

CE419 Web Programming. Session 15: Django Web Framework

CE419 Web Programming. Session 15: Django Web Framework CE419 Web Programming Session 15: Django Web Framework Web Applications & Databases In modern Web applications, the arbitrary logic often involves interacting with a database. Behind the scenes, a database-driven

More information

Bricks Documentation. Release 1.0. Germano Guerrini

Bricks Documentation. Release 1.0. Germano Guerrini Bricks Documentation Release 1.0 Germano Guerrini January 27, 2015 Contents 1 Requirements 3 2 Contents 5 2.1 Getting Started.............................................. 5 2.2 Basic Usage...............................................

More information

canary Documentation Release 0.1 Branton K. Davis

canary Documentation Release 0.1 Branton K. Davis canary Documentation Release 0.1 Branton K. Davis August 18, 2012 CONTENTS 1 Installation 3 1.1 Installing Canary Reports........................................ 3 1.2 Running the Demo Project........................................

More information

django-model-utils Documentation

django-model-utils Documentation django-model-utils Documentation Release 3.1.1 Carl Meyer Jan 10, 2018 Contents 1 Contents 3 1.1 Setup................................................... 3 1.1.1 Installation...........................................

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 0.7.stable Juda Kaleta December 21, 2013 Contents i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on

More information

django-oauth2-provider Documentation

django-oauth2-provider Documentation django-oauth2-provider Documentation Release 0.2.7-dev Alen Mujezinovic Aug 16, 2017 Contents 1 Getting started 3 1.1 Getting started.............................................. 3 2 API 5 2.1 provider.................................................

More information

Django Extra Views Documentation

Django Extra Views Documentation Django Extra Views Documentation Release 0.12.0 Andrew Ingram Nov 30, 2018 Contents 1 Features 3 2 Table of Contents 5 2.1 Getting Started.............................................. 5 2.2 Formset Views..............................................

More information

Runtime Dynamic Models Documentation Release 1.0

Runtime Dynamic Models Documentation Release 1.0 Runtime Dynamic Models Documentation Release 1.0 Will Hardy October 05, 2016 Contents 1 Defining a dynamic model factory 1 1.1 Django models.............................................. 1 1.2 Django s

More information

django-autocomplete-light Documentation

django-autocomplete-light Documentation django-autocomplete-light Documentation Release 3.0.4 James Pic & contributors March 05, 2016 Contents 1 Features 1 2 Resources 3 3 Basics 5 3.1 Install django-autocomplete-light v3...................................

More information

Django File Picker Documentation

Django File Picker Documentation Django File Picker Documentation Release 0.5 Caktus Consulting Group LLC Nov 06, 2017 Contents 1 Dependencies 3 1.1 Required................................................. 3 1.2 Optional.................................................

More information

Django Groups Manager Documentation

Django Groups Manager Documentation Django Groups Manager Documentation Release 0.3.0 Vittorio Zamboni May 03, 2017 Contents 1 Documentation 3 1.1 Installation................................................ 3 1.2 Basic usage................................................

More information

Django REST Framework JSON API Documentation

Django REST Framework JSON API Documentation Django REST Framework JSON API Documentation Release 2.0.0-alpha.1 Jerel Unruh Jan 25, 2018 Contents 1 Getting Started 3 1.1 Requirements............................................... 4 1.2 Installation................................................

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 0.6.stable Juda Kaleta October 04, 2013 CONTENTS i ii Django app for easy embeding YouTube and Vimeo videos and music from SoundCloud. Repository is located on

More information

Django File Picker Documentation

Django File Picker Documentation Django File Picker Documentation Release 0.5 Caktus Consulting Group LLC Oct 31, 2017 Contents 1 Dependencies 3 1.1 Required................................................. 3 1.2 Optional.................................................

More information

django-baton Documentation

django-baton Documentation django-baton Documentation Release 1.3.1 abidibo Nov 05, 2018 Contents 1 Features 3 2 Getting started 5 2.1 Installation................................................ 5 2.2 Configuration...............................................

More information

django-auditlog Documentation

django-auditlog Documentation django-auditlog Documentation Release 0.4.3 Jan-Jelle Kester Jul 05, 2017 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

CSV Importer Documentation

CSV Importer Documentation CSV Importer Documentation Release 0.1 Anthony TRESONTANI Jul 18, 2017 Contents 1 Installation 3 2 Basic sample 5 3 Django Model 7 4 Fields 9 5 Meta options 11 6 Importer option 13 7 Grouped CSV 15 8

More information

django-avatar Documentation

django-avatar Documentation django-avatar Documentation Release 2.0 django-avatar developers Oct 04, 2018 Contents 1 Installation 3 2 Usage 5 3 Template tags and filter 7 4 Global Settings 9 5 Management Commands 11 i ii django-avatar

More information

Django Admin Sortable Documentation

Django Admin Sortable Documentation Django Admin Sortable Documentation Release 1.7.0 Brandon Taylor September 28, 2016 Contents 1 Supported Django Versions 3 1.1 Django 1.4.x............................................... 3 1.2 Django

More information

Accelerating Information Technology Innovation

Accelerating Information Technology Innovation Accelerating Information Technology Innovation http://aiti.mit.edu Rwanda Summer 2011 Django 01: Models Models Suppose we want to create a web application to manage data about thousands of movies What

More information

django-embed-video Documentation

django-embed-video Documentation django-embed-video Documentation Release 1.1.2-stable Juda Kaleta Nov 10, 2017 Contents 1 Installation & Setup 3 1.1 Installation................................................ 3 1.2 Setup...................................................

More information

django-composite-foreignkey Documentation

django-composite-foreignkey Documentation django-composite-foreignkey Documentation Release 1.0.1 Darius BERNARD Mar 08, 2018 Contents 1 Installation 3 2 Quickstart 5 2.1 Example simple composite ForeignKey models.............................

More information

Awl Documentation. Release Christopher Trudeau

Awl Documentation. Release Christopher Trudeau Awl Documentation Release 0.19.0 Christopher Trudeau Jan 09, 2018 Contents 1 Installation 3 2 Supports 5 3 Docs & Source 7 4 Contents 9 4.1 Admin Tools............................................... 9

More information

django-composite-foreignkey Documentation

django-composite-foreignkey Documentation django-composite-foreignkey Documentation Release 1.0.0a10 Darius BERNARD Nov 08, 2017 Contents 1 Installation 3 2 Quickstart 5 2.1 Example simple composite ForeignKey models.............................

More information

django-avatar Documentation

django-avatar Documentation django-avatar Documentation Release 2.0 django-avatar developers Sep 27, 2017 Contents 1 Installation 3 2 Usage 5 3 Template tags and filter 7 4 Global Settings 9 5 Management Commands 11 i ii django-avatar

More information

Django-CSP Documentation

Django-CSP Documentation Django-CSP Documentation Release 3.0 James Socol, Mozilla September 06, 2016 Contents 1 Installing django-csp 3 2 Configuring django-csp 5 2.1 Policy Settings..............................................

More information

django-image-cropping Documentation

django-image-cropping Documentation django-image-cropping Documentation Release 1.1.0 Jonas und der Wolf Nov 06, 2017 Contents 1 Installation 3 2 Configuration 5 3 Admin Integration 7 4 Backends 9 5 Frontend 11 5.1 easy_thumbnails.............................................

More information

7401ICT eservice Technology. (Some of) the actual examination questions will be more precise than these.

7401ICT eservice Technology. (Some of) the actual examination questions will be more precise than these. SAMPLE EXAMINATION QUESTIONS (Some of) the actual examination questions will be more precise than these. Basic terms and concepts Define, compare and discuss the following terms and concepts: a. HTML,

More information

Connexion Sqlalchemy Utils Documentation

Connexion Sqlalchemy Utils Documentation Connexion Sqlalchemy Utils Documentation Release 0.1.4 Michael Housh Apr 17, 2017 Contents 1 Connexion Sqlalchemy Utils 3 1.1 Features.................................................. 3 1.2 Running example

More information

Pulp Python Support Documentation

Pulp Python Support Documentation Pulp Python Support Documentation Release 1.0.1 Pulp Project October 20, 2015 Contents 1 Release Notes 3 1.1 1.0 Release Notes............................................ 3 2 Administrator Documentation

More information

9 Common Patterns for Forms

9 Common Patterns for Forms 9 Common Patterns for Forms Django forms are powerful, exible, extensible, and robust For this reason, the Django admin and CBVs use them extensively In fact, all the major Django API frameworks use ModelForms

More information

Lotus IT Hub. Module-1: Python Foundation (Mandatory)

Lotus IT Hub. Module-1: Python Foundation (Mandatory) Module-1: Python Foundation (Mandatory) What is Python and history of Python? Why Python and where to use it? Discussion about Python 2 and Python 3 Set up Python environment for development Demonstration

More information

Tablo Documentation. Release Conservation Biology Institute

Tablo Documentation. Release Conservation Biology Institute Tablo Documentation Release 1.0.2 Conservation Biology Institute May 15, 2017 Contents 1 Tablo 3 1.1 What is Tablo?.............................................. 3 1.2 Goals...................................................

More information

Pypeline Documentation

Pypeline Documentation Pypeline Documentation Release 0.2 Kyle Corbitt May 09, 2014 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Quick Start................................................

More information

Django Service Objects Documentation

Django Service Objects Documentation Django Service Objects Documentation Release 0.5.0 mixxorz, c17r Sep 11, 2018 User Documentation 1 What? 1 2 Installation 3 2.1 Philosophy................................................ 3 2.2 Usage...................................................

More information

Django Synctool Documentation

Django Synctool Documentation Django Synctool Documentation Release 1.0.0 Preston Timmons November 01, 2014 Contents 1 Basic usage 3 1.1 How it works............................................... 4 2 Installation 5 3 Contents 7 3.1

More information

Friday, 11 April 14. Advanced methods for creating decorators Graham Dumpleton PyCon US - April 2014

Friday, 11 April 14. Advanced methods for creating decorators Graham Dumpleton PyCon US - April 2014 Advanced methods for creating decorators Graham Dumpleton PyCon US - April 2014 Intermission Rant about the history of this talk and why this topic matters. Python decorator syntax @function_wrapper def

More information

django-slim Documentation

django-slim Documentation django-slim Documentation Release 0.5 Artur Barseghyan December 24, 2013 Contents i ii django-slim Contents 1 2 Contents CHAPTER 1 Description Simple implementation of multi-lingual

More information

Django Admin Cookbook Release 2.0

Django Admin Cookbook Release 2.0 Django Admin Cookbook Release 2.0 Agiliq May 22, 2018 Contents 1 Django Admin Cookbook - How to do things with Django admin. 1 2 Text and Design 2 3 Calculated fields 10 4 Bulk and custom actions 17 5

More information

nacelle Documentation

nacelle Documentation nacelle Documentation Release 0.4.1 Patrick Carey August 16, 2014 Contents 1 Standing on the shoulders of giants 3 2 Contents 5 2.1 Getting Started.............................................. 5 2.2

More information

flask-jwt-simple Documentation

flask-jwt-simple Documentation flask-jwt-simple Documentation Release 0.0.3 vimalloc rlam3 Nov 17, 2018 Contents 1 Installation 3 2 Basic Usage 5 3 Changing JWT Claims 7 4 Changing Default Behaviors 9 5 Configuration Options 11 6 API

More information

open-helpdesk Documentation

open-helpdesk Documentation open-helpdesk Documentation Release 0.9.9 Simone Dalla Nov 16, 2017 Contents 1 Overview 3 1.1 Dependencies............................................... 3 1.2 Documentation..............................................

More information

django-crucrudile Documentation

django-crucrudile Documentation django-crucrudile Documentation Release 0.9.1 Hugo Geoffroy (pstch) July 27, 2014 Contents 1 Installation 1 1.1 From Python package index....................................... 1 1.2 From source...............................................

More information

Archan. Release 2.0.1

Archan. Release 2.0.1 Archan Release 2.0.1 Jul 30, 2018 Contents 1 Archan 1 1.1 Features.................................................. 1 1.2 Installation................................................ 1 1.3 Documentation..............................................

More information

django-scaffold Documentation

django-scaffold Documentation django-scaffold Documentation Release 1.1.1 James Stevenson May 27, 2015 Contents 1 Installation 3 2 Creating an app to extend scaffold 5 2.1 1. Create a new application........................................

More information

TastyTopping Documentation

TastyTopping Documentation TastyTopping Documentation Release 1.2.5 Christian Boelsen August 10, 2015 Contents 1 Contents 3 1.1 Getting Started.............................................. 3 1.2 Authentication..............................................

More information

django-cron Documentation

django-cron Documentation django-cron Documentation Release 0.3.5 Tivix Inc. Mar 04, 2017 Contents 1 Introduction 3 2 Installation 5 3 Configuration 7 4 Sample Cron Configurations 9 4.1 Retry after failure feature........................................

More information

django-baton Documentation

django-baton Documentation django-baton Documentation Release 1.0.7 abidibo Nov 13, 2017 Contents 1 Features 3 2 Getting started 5 2.1 Installation................................................ 5 2.2 Configuration...............................................

More information

alphafilter Documentation

alphafilter Documentation alphafilter Documentation Release 0.6 coordt September 09, 2013 CONTENTS i ii alphafilter Documentation, Release 0.6 Contents: CONTENTS 1 alphafilter Documentation, Release 0.6 2 CONTENTS CHAPTER ONE

More information

django-stored-messages Documentation

django-stored-messages Documentation django-stored-messages Documentation Release 1.4.0 evonove Nov 10, 2017 Contents 1 Features 3 2 Compatibility table 5 3 Contents 7 3.1 Installation................................................ 7 3.2

More information

API Wrapper Documentation

API Wrapper Documentation API Wrapper Documentation Release 0.1.7 Ardy Dedase February 09, 2017 Contents 1 API Wrapper 3 1.1 Overview................................................. 3 1.2 Installation................................................

More information

django-contact-form Documentation

django-contact-form Documentation django-contact-form Documentation Release 1.4.2 James Bennett Aug 01, 2017 Installation and configuration 1 Installation guide 3 2 Quick start guide 5 3 Contact form classes 9 4 Built-in views 13 5 Frequently

More information

django-filter Documentation

django-filter Documentation django-filter Documentation Release 2.0.0 Alex Gaynor and others. Dec 17, 2018 User Guide 1 Installation 3 1.1 Requirements............................................... 3 2 Getting Started 5 2.1 The

More information

django-sticky-uploads Documentation

django-sticky-uploads Documentation django-sticky-uploads Documentation Release 0.2.0 Caktus Consulting Group October 26, 2014 Contents 1 Requirements/Installing 3 2 Browser Support 5 3 Documentation 7 4 Running the Tests 9 5 License 11

More information

Django-Select2 Documentation. Nirupam Biswas

Django-Select2 Documentation. Nirupam Biswas Nirupam Biswas Mar 07, 2018 Contents 1 Get Started 3 1.1 Overview................................................. 3 1.2 Installation................................................ 3 1.3 External Dependencies..........................................

More information

Django PAM Documentation

Django PAM Documentation Django PAM Documentation Release 1.4.1 Carl J. Nobile Aug 01, 2018 Contents 1 Contents 3 1.1 Installation................................................ 3 1.2 Configuration...............................................

More information

DDF Documentation. Release Paulo Cheque

DDF Documentation. Release Paulo Cheque DDF Documentation Release 1.7.0 Paulo Cheque Aug 31, 2017 Contents 1 Getting Started 3 1.1 Basic Example of Usage......................................... 3 1.2 Installation................................................

More information

django-intercom Documentation

django-intercom Documentation django-intercom Documentation Release 0.0.12 Ken Cochrane February 01, 2016 Contents 1 Installation 3 2 Usage 5 3 Enable Secure Mode 7 4 Intercom Inbox 9 5 Custom Data 11 6 Settings 13 6.1 INTERCOM_APPID...........................................

More information

django-debreach Documentation

django-debreach Documentation django-debreach Documentation Release 1.4.1 Luke Pomfrey October 16, 2016 Contents 1 Installation 3 2 Configuration 5 2.1 CSRF token masking (for Django < 1.10)................................ 5 2.2 Content

More information

Django CBTools Documentation

Django CBTools Documentation Django CBTools Documentation Release 1.2.0 Viacheslav Iutin August 05, 2016 Contents 1 Installation 3 1.1 Pre-requisite............................................... 3 1.2 Requirements...............................................

More information

django-dynamic-db-router Documentation

django-dynamic-db-router Documentation django-dynamic-db-router Documentation Release 0.1.1 Erik Swanson August 24, 2016 Contents 1 Table of Contents 3 1.1 Installation................................................ 3 1.2 Quickstart................................................

More information

Mantis STIX Importer Documentation

Mantis STIX Importer Documentation Mantis STIX Importer Documentation Release 0.2.0 Siemens February 27, 2014 Contents 1 Mantis STIX Importer 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

django-password-reset Documentation

django-password-reset Documentation django-password-reset Documentation Release 1.0 Bruno Renié Sep 21, 2017 Contents 1 Quickstart 3 1.1 Installation................................................ 3 1.2 Usage...................................................

More information

Django Wordpress API Documentation

Django Wordpress API Documentation Django Wordpress API Documentation Release 0.1.0 Swapps Jun 28, 2017 Contents 1 Django Wordpress API 3 1.1 Documentation.............................................. 3 1.2 Quickstart................................................

More information

Gearthonic Documentation

Gearthonic Documentation Gearthonic Documentation Release 0.2.0 Timo Steidle August 11, 2016 Contents 1 Quickstart 3 2 Contents: 5 2.1 Usage................................................... 5 2.2 API....................................................

More information

django-modeltranslation Documentation

django-modeltranslation Documentation django-modeltranslation Documentation Release 0.12.2 Dirk Eschler Jul 02, 2018 Contents 1 Features 3 1.1 Project Home............................................... 3 1.2 Documentation..............................................

More information

django-pgfields Documentation

django-pgfields Documentation django-pgfields Documentation Release 1.0 Luke Sneeringer July 31, 2013 CONTENTS i ii This is django-pgfields, a pluggable Django application that adds support for several specialized PostgreSQL fields

More information

django-permission Documentation

django-permission Documentation django-permission Documentation Release 0.8.8 Alisue October 29, 2015 Contents 1 django-permission 1 1.1 Documentation.............................................. 1 1.2 Installation................................................

More information

Python Utils Documentation

Python Utils Documentation Python Utils Documentation Release 2.2.0 Rick van Hattem Sep 27, 2017 Contents 1 Useful Python Utils 3 1.1 Links................................................... 3 1.2 Requirements for installing:.......................................

More information

staff Documentation Release 1.2

staff Documentation Release 1.2 staff Documentation Release 1.2 me February 06, 2016 Contents 1 Goals 3 2 Contents 5 2.1 Getting Started.............................................. 5 2.2 Customizing StaffMember........................................

More information

DISQUS. Continuous Deployment Everything. David

DISQUS. Continuous Deployment Everything. David DISQUS Continuous Deployment Everything David Cramer @zeeg Continuous Deployment Shipping new code as soon as it s ready (It s really just super awesome buildbots) Workflow Commit (master) Integration

More information

neo4django Documentation

neo4django Documentation neo4django Documentation Release 0.1.8-dev Matt Luongo Sep 09, 2017 Contents 1 Details 3 1.1 Getting Started.............................................. 3 1.2 Writing Models..............................................

More information

django-geoip Documentation

django-geoip Documentation django-geoip Documentation Release 0.5dev coagulant March 02, 2017 Contents 1 Contents 3 2 Contributing 15 i ii App to figure out where your visitors are from by their IP address. Detects country, region

More information

nidm Documentation Release 1.0 NIDASH Working Group

nidm Documentation Release 1.0 NIDASH Working Group nidm Documentation Release 1.0 NIDASH Working Group November 05, 2015 Contents 1 Why do I want to use this? 3 2 Under Development 5 2.1 Installation................................................ 5 2.2

More information

django-renderit Documentation

django-renderit Documentation django-renderit Documentation Release 1.2 jsoares Nov 20, 2017 Contents 1 Installation 3 2 Getting Started 5 2.1 Basic Usage............................................... 5 2.2 Extra Arguments.............................................

More information

Airoscript-ng Documentation

Airoscript-ng Documentation Airoscript-ng Documentation Release 0.0.4 David Francos Cuartero January 22, 2015 Contents 1 Airoscript-ng 3 1.1 Features.................................................. 3 1.2 TODO..................................................

More information

tolerance Documentation

tolerance Documentation tolerance Documentation Release Alisue Apr 1, 217 Contents 1 tolerance 1 1.1 Features.................................................. 1 1.2 Installation................................................

More information

CSE : Python Programming. Decorators. Announcements. The decorator pattern. The decorator pattern. The decorator pattern

CSE : Python Programming. Decorators. Announcements. The decorator pattern. The decorator pattern. The decorator pattern CSE 399-004: Python Programming Lecture 12: Decorators April 9, 200 http://www.seas.upenn.edu/~cse39904/ Announcements Projects (code and documentation) are due: April 20, 200 at pm There will be informal

More information

Python Finite State Machine. Release 0.1.5

Python Finite State Machine. Release 0.1.5 Python Finite State Machine Release 0.1.5 Sep 15, 2017 Contents 1 Overview 1 1.1 Installation................................................ 1 1.2 Documentation..............................................

More information

Django Groups Manager Documentation

Django Groups Manager Documentation Django Groups Manager Documentation Release 0.3.0 Vittorio Zamboni January 03, 2017 Contents 1 Documentation 3 1.1 Installation................................................ 3 1.2 Basic usage................................................

More information

Kaiso Documentation. Release 0.1-dev. onefinestay

Kaiso Documentation. Release 0.1-dev. onefinestay Kaiso Documentation Release 0.1-dev onefinestay Sep 27, 2017 Contents 1 Neo4j visualization style 3 2 Contents 5 2.1 API Reference.............................................. 5 3 Indices and tables

More information

django mail admin Documentation

django mail admin Documentation django mail admin Documentation Release 0.1.1 Denis Bobrov Mar 11, 2018 Contents 1 Django Mail Admin 3 1.1 Features.................................................. 3 1.2 Documentation..............................................

More information

django-parler Documentation

django-parler Documentation django-parler Documentation Release 1.9.1 Diederik van der Boor and contributors Dec 06, 2017 Contents 1 Getting started 3 1.1 Quick start guide............................................. 3 1.2 Configuration

More information

bzz Documentation Release Rafael Floriano and Bernardo Heynemann

bzz Documentation Release Rafael Floriano and Bernardo Heynemann bzz Documentation Release 0.1.0 Rafael Floriano and Bernardo Heynemann Nov 15, 2017 Contents 1 Getting Started 3 2 Flattening routes 5 3 Indices and tables 7 3.1 Model Hive................................................

More information

DISBi Documentation. Release Rüdiger Frederik Busche

DISBi Documentation. Release Rüdiger Frederik Busche DISBi Documentation Release 0.0.2 Rüdiger Frederik Busche December 22, 2016 Programmer s Guide 1 Setting up Django 3 1.1 Setting up a virtual environment..................................... 3 1.2 Setting

More information

django-users2 Documentation

django-users2 Documentation django-users2 Documentation Release 0.2.1 Mishbah Razzaque Mar 16, 2017 Contents 1 django-users2 3 1.1 Features.................................................. 3 1.2 Documentation..............................................

More information

South Documentation. Release 1.0. Andrew Godwin

South Documentation. Release 1.0. Andrew Godwin South Documentation Release 1.0 Andrew Godwin Jul 10, 2017 Contents 1 Support 3 2 Contents 5 2.1 About South............................................... 5 2.2 What are migrations?...........................................

More information