Splitgraph has been acquired by EDB! Read the blog post.

splitgraph.utils package

Submodules

splitgraph.utils.docker module

splitgraph.utils.docker.copy_dir_to_container(container: Container, source_path: str, target_path: str, exclude_names: Optional[List[str]] = None) None
splitgraph.utils.docker.copy_to_container(container: Container, source_path: Optional[str], target_path: str, data: Optional[bytes] = None) None

Copy a file into a Docker container

Parameters
  • container – Container object

  • source_path – Source file path

  • target_path – Target file path (in the container)

Returns

splitgraph.utils.docker.get_docker_client()

Wrapper around client.from_env() that also pings the daemon to make sure it can connect and if not, raises an error.

splitgraph.utils.docker.get_file_from_container(container: Container, source_path: str) IO[bytes]

splitgraph.utils.yaml module

splitgraph.utils.yaml.safe_dump(obj: Any, stream, **kwargs) None
splitgraph.utils.yaml.safe_load(stream) Any

Module contents