Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@click.version_option(version=__version__, prog_name="Jovian")
@click.pass_context
def main(ctx, log_level="info"):
"""Keep track of your Jupyter notebooks using Jovian.
Use within your Jupyter notebooks:
[1] import jovian
[2] jovian.commit()
Or try out a demo with:
$ jovian clone aakashns/jovian-tutorial
"""
pass
def _h(fresh):
"""Create a header to provide library metadata"""
api_key, _ = read_api_key_opt()
headers = {"x-jovian-source": "library",
"x-jovian-library-version": __version__,
"x-jovian-command": "clone" if fresh else "pull",
"x-jovian-guest": get_guest_key(),
"x-jovian-org": read_org_id()}
if api_key is not None:
headers["Authorization"] = "Bearer " + api_key
return headers
def version():
return __version__
def _h():
"""Create a header to provide library metadata"""
return {"Authorization": "Bearer " + get_api_key(),
"x-jovian-source": "library",
"x-jovian-library-version": __version__,
"x-jovian-command": "add-slack",
"x-jovian-guest": get_guest_key(),
"x-jovian-org": read_org_id()}
def _h():
"""Create authorization header with API key"""
return {"Authorization": "Bearer " + get_api_key(),
"x-jovian-source": "library",
"x-jovian-library-version": __version__,
"x-jovian-guest": get_guest_key(),
"x-jovian-org": read_org_id()}