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)
Example #5
0
 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)
Example #6
0
 def setUp(self):
     path_provider.add(GitPath, HgPath, HttpPath, SftpPath, LocalPath)
Example #7
0
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))
Example #8
0
 def setUp(self):
     path_provider.add(LocalPath, HttpPath, SftpPath, GitPath, HgPath)
     self.deps = []