sqlalchemyseed.cli

Command-line interface for seeding a database from data files.

Module Contents

sqlalchemyseed.cli.build_parser() argparse.ArgumentParser

Build the argument parser for the sqlalchemyseed command.

sqlalchemyseed.cli.collect_files(paths) list

Expand each path into data files, walking directories in sorted order.

sqlalchemyseed.cli.load_file(path: pathlib.Path, model=None) dict

Load entities from a single data file, dispatching on its extension.

sqlalchemyseed.cli.main(argv=None) int

Entry point for the sqlalchemyseed command.