def init(username, reponame, setup,<EOL>force=False, options=None,<EOL>noinput=False):
mgr = plugins_get_mgr()<EOL>repomgr = mgr.get(what='<STR_LIT>', name='<STR_LIT>')<EOL>backendmgr = None<EOL>if setup == '<STR_LIT>':<EOL><INDENT>backendmgr = mgr.get(what='<STR_LIT>', name='<STR_LIT>')<EOL><DEDENT>repo = repomgr.init(username, reponame, force, backendmgr)<EOL>(handle, gitignore) = tempfile.mkstemp()<EOL>with open(gitignore, '<STR_LIT:w>') as fd:<EOL><INDENT>fd.write("<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>filename = bootstrap_datapackage(repo, force, options, noinput)<EOL><DEDENT>except Exception as e:<EOL><INDENT>repomgr.drop(repo,[])<EOL>os.unlink(gitignore)<EOL>raise e<EOL><DEDENT>repo.run('<STR_LIT>',<EOL>[<EOL>{<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': filename,<EOL>},<EOL>{<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': gitignore,<EOL>},<EOL>])<EOL>os.unlink(filename)<EOL>os.unlink(gitignore)<EOL>args = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>repo.run('<STR_LIT>', args)<EOL>return repo<EOL>
Initialize an empty repository with datapackage.json

Parameters
----------

username: Name of the user
reponame: Name of the repo
setup: Specify the 'configuration' (git only, git+s3 backend etc)
force: Force creation of the files
options: Dictionary with content of dgit.json, if available.
noinput: Automatic operation with no human interaction