Skip to content

Latest commit

 

History

History
66 lines (37 loc) · 1.65 KB

README.md

File metadata and controls

66 lines (37 loc) · 1.65 KB

Smart Import

pypi

travis

readthedocs

github

Smart file import with auto type detection.

Installation

For now you can clone the repository then in your favorite python>=3.6 virtualenv in the clone dir :

$ python setup.py develop

This install a dev version of smartimport package.

Now you can execute smartimport but you should create a directory where you will copy all your data/models.

$ mkdir project && cd project
$ touch settings_local.py

You can change variable in the settings_local.py file. More information on this will comme later.

Training

First you need some training data. Must be a csv file named after the settings.TRAINING_DATA_PATH configuration. This CSV must contains two cols (data, type). Then execute ::

$ smartimport train # --confusion option to show confusion plot

A model will be saved in settings.MODEL_PATH.

Usage

When a model file have been created, you can run smartimport on any CSV file :

$ smartimport load <path_to_your_file>

and json should describe your file.

Legal information

This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _audreyr/cookiecutter-pypackage: https://github.com/audreyr/cookiecutter-pypackage