Git Product home page Git Product logo

data-importer's People

Contributors

caramdache avatar dependabot[bot] avatar guimesmo avatar hohenstaufen avatar johnfraney avatar loco0321 avatar pidelport avatar quantifiedcode-bot avatar salemandreus avatar sparlane avatar teolemon avatar valdergallo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

data-importer's Issues

Getting error on generic.py

I'm Getting an ImoprtError "cannot import name UnsuportedFile"

It's on import line "from data_importer.core.exceptions import UnsuportedFile" on file generic.py

Add descriptor from xml/json/yaml file

Use descriptor file to importer like Meta.model.

Ex.:

import_test.json

{
  'app_name': 'mytest.Contact',
    { 
    // field name / name on import file or key index
    'name': 'My Name',
    'year': 'My Year',
    'last': 3
    }
}

model.py

class Contact(models.Model):
  name = models.CharField(max_length=50)
  year = models.CharField(max_length=10)
  laster = models.CharField(max_length=5)

importer.py

class MyImpoter(BaseImpoter):
  class Meta:
    config_file = 'import_test.json'
    model = Contact
    delimiter = ','
    ignore_first_line = True

content_file.csv


name,year,last
Test,12,1
Test2,13,2
Test3,14,3

Get File Header

Create get_file_header, and udpate data with file header.

pip install error [reported by Wenze van Klink]

Wenze van Klink

I have a problem with installing your app.

When using Pip:
IOError: [Errno 2] No such file or directory: '/tmp/pip-build-wenze/data-importer/README.rst'

And when I install it manually I cannot import it in my IDE (PyCharm), but all the requirements are installed correctly:
ImportError: No module named data_importer

Hope you can help me out.

Add importer as task

Data-importer don't need Celery. But if you has instaled Celery or need use importer as Task. Default FileUploadHistoryForm must have one option to use Data-importer as Task.

Memory Control

cleaned_data is one tuple with all file data, in large files, cleaned_data will use alot memory.
Need create one leazy object to cleaned_data that don't use memory

Packages not found

File base.py has a bug. This says the console:

except StopImporter, e: in line 198.

cleaned_data and cleaned_line

Need create one cleaned_line, that contains only data in row to validate.

cleaned_data contains all lines that was cleaned.

Remove chardet

Change charset to UTF-8 to defult value in settings used by django

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.