southwark.config

Utilities for repository configuration.

New in version 0.5.0.

Functions:

get_remotes(config)

Returns a dictionary mapping remote names to URLs.

set_remote_http(config, domain, username, repo)

Set the remote url for the repository, using HTTP.

set_remote_ssh(config, domain, username, repo)

Set the remote url for the repository, using SSH.

get_remotes(config)[source]

Returns a dictionary mapping remote names to URLs.

Parameters:

config (ConfigFile)

Return type:

Dict[str, str]

set_remote_http(config, domain, username, repo, name='origin')[source]

Set the remote url for the repository, using HTTP.

Parameters:
  • config (ConfigFile)

  • domain (str)

  • username (str)

  • repo (str)

  • name (str) – The name of the remote to set. Default 'origin'.

set_remote_ssh(config, domain, username, repo, name='origin')[source]

Set the remote url for the repository, using SSH.

Parameters:
  • config (ConfigFile)

  • domain (str)

  • username (str)

  • repo (str)

  • name (str) – The name of the remote to set. Default 'origin'.