Module yapapi.storage.webdav
Classes
DavResource
class DavResource(
/,
*args,
**kwargs
)
DavResource(path, length, collection, last_modified)
Ancestors (in MRO)
- builtins.tuple
Instance variables
collection
Alias for field number 2
last_modified
Alias for field number 3
length
Alias for field number 1
path
Alias for field number 0
Methods
count
def count(
...
)
T.count(value) -> integer -- return number of occurrences of value
index
def index(
...
)
T.index(value, [start, [stop]]) -> integer -- return first index of value. Raises ValueError if the value is not present.
DavStorageProvider
class DavStorageProvider(
client:aiohttp.client.ClientSession,
base_url:str,
auth:Union[aiohttp.helpers.BasicAuth, NoneType]=None
)
DavStorageProvider(client:aiohttp.client.ClientSession, base_url:str, auth:Union[aiohttp.helpers.BasicAuth, NoneType]=None)
Ancestors (in MRO)
- yapapi.storage.StorageProvider
- yapapi.storage.InputStorageProvider
- yapapi.storage.OutputStorageProvider
- abc.ABC
Class variables
auth
Static methods
for_directory
def for_directory(
client:aiohttp.client.ClientSession,
base_url:str,
directory_name:str,
auth:Union[aiohttp.helpers.BasicAuth, NoneType]=None,
**kwargs
) -> 'DavStorageProvider'
Methods
new_destination
def new_destination(
self,
destination_file:Union[os.PathLike, NoneType]=None
) -> yapapi.storage.Destination
Creates slot for receiving file.
Parameters
destination_file: Optional hint where received data should be placed.
prop_find
def prop_find(
self
)
upload_bytes
def upload_bytes(
self,
data:bytes
) -> yapapi.storage.Source
upload_file
def upload_file(
self,
path:os.PathLike
) -> yapapi.storage.Source
upload_stream
def upload_stream(
self,
length:int,
stream:AsyncIterator[bytes]
) -> yapapi.storage.Source