Skip to content
A generic python converter using pandas to convert data into aito format
Python Shell
Branch: master
Clone or download
Latest commit ba4eaae Dec 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci refactor, remove test entry point Oct 11, 2019
aito move argcomplete to proper place Dec 3, 2019
docs fix header link Dec 4, 2019
scripts fix a bug that do not convert readme to rst, upload prod to proper place Dec 3, 2019
tests more file path test Dec 3, 2019
.gitignore add test infra, add converter tests Sep 16, 2019
LICENSE Initial commit Jun 20, 2019
Pipfile use add subparser function instead of subparser class for subaction Dec 2, 2019
Pipfile.lock use add subparser function instead of subparser class for subaction Dec 2, 2019
README.md
requirements.txt update requirements Dec 2, 2019
setup.py add tab completion instructions Dec 4, 2019

README.md

aito-python-tools

PyPI PyPI version

A useful library for Aito users containg:

  • CLI for using Aito
  • Integration with Pandas

Installation

To install with pip, run: pip install aitoai

To install from source, first clone the repository and then run: python setup.py install

Basic Usage

Command line interface support tools

aito -h
usage: aito [-h] <action> ...

optional arguments:
  -h, --help          show this help message and exit

action:
  action to perform

  <action>
    infer-table-schema
                      infer an Aito table schema from a file
    convert           convert a file into ndjson|json format
    database          perform operations with your Aito database instance

NOTE: For database action, remember to set up your Aito instance credentials.

The CLI supports tab completion using argcomplete. More instructions can be found here

For addition guide of the CLI tool, see the CLI documentations

Integrating with pandas DataFrame

  • Generate Aito Schema from a pandas DataFrame:
    from aito.utils.schema_handler import SchemaHandler
    
    schema_handler = SchemaHandler()
    schema_handler.generate_table_schema_from_pandas_dataframe(df)

Feedback & bug reports

We take our quality seriously and aim for the smoothest developer experience possible. If you run into problems, please send an email to support@aito.ai containing reproduction steps and we'll fix it as soon as possible.

License

MIT License

Change logs

You can’t perform that action at this time.