stubber.publish.database

Module Contents

Functions

get_database(→ pysondb.PysonDB)

Open the json database at the given path.

stubber.publish.database.get_database(publish_path: Union[pathlib.Path, str], production: bool = False) pysondb.PysonDB

Open the json database at the given path.

The database should be located in a subfolder /publish of the root path. The database name is determined by the production flag as package_data[_test].jsondb

Parameters
Return type

pysondb.PysonDB