def setUp(self): path_provider.add(SftpPath)
def setUp(self): path_provider.add(LocalPath)
def setUp(self): path_provider.add(HgPath)
def setUp(self): path_provider.add(GitPath)
def __init__(self, key, value, parent, setup): self.key = key self.value = value self.parent = Path(parent) if parent else Path() path_provider.add(HttpPath, GitPath, HgPath, LocalPath, SftpPath)
def setUp(self): path_provider.add(GitPath, HgPath, HttpPath, SftpPath, LocalPath)
from anypath.anypath import AnyPath, path_provider from anypath.pathprovider.git import GitPath from anypath.pathprovider.http import HttpPath path_provider.add(HttpPath, GitPath) path_provider.check_requirements() with AnyPath('http://example.org') as path: content = path.read_text() print(len(content)) with AnyPath('git+https://github.com/vaubarth/anypath.git') as path: content = path.glob('*') print(list(content))
def setUp(self): path_provider.add(LocalPath, HttpPath, SftpPath, GitPath, HgPath) self.deps = []