neptune.git_info

Module Contents

Classes

GitInfo(commit_id, message=’‘, author_name=’‘, author_email=’‘, commit_date=’‘, repository_dirty=True, active_branch=’‘, remote_urls=None)

Class that keeps information about a git repository in experiment.

class neptune.git_info.GitInfo(commit_id, message='', author_name='', author_email='', commit_date='', repository_dirty=True, active_branch='', remote_urls=None)[source]

Bases: object

Class that keeps information about a git repository in experiment.

When create_experiment() is invoked, instance of this class is created to store information about git repository. This information is later presented in the experiment details tab in the Neptune web application.

Parameters
  • commit_id (str) – commit id sha.

  • message (str, optional, default is "") – commit message.

  • author_name (str, optional, default is "") – commit author username.

  • author_email (str, optional, default is "") – commit author email.

  • commit_date (datetime.datetime, optional, default is "") – commit datetime.

  • repository_dirty (bool, optional, default is True) – True, if the repository has uncommitted changes, False otherwise.

__eq__(self, o)[source]

Return self==value.

__ne__(self, o)[source]

Return self!=value.

__str__(self)[source]

Return str(self).

__repr__(self)[source]

Return repr(self).