Commit f10d546d authored by jacquemier's avatar jacquemier
Browse files

first import

parent 3a4834b3
.idea
Notebooks/.ipynb_checkpoints/
webdavacc.egg-info/
__pycache__/
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import webdavacc"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
from setuptools import setup
setup(name='webdavacc',
version='0.1',
description='webDav Access for LAPP accelerator Team',
url='https://gitlab.in2p3.fr/jacquem/webdavacc',
author='Jean Jacquemier',
author_email='jacquem@lapp.in2p3.fr',
license='CeCILL',
packages=['webdavacc'])
\ No newline at end of file
import easywebdav
import argparse
'''
cd(path)
ls(path=None)
exists(remote_path)
mkdir(path, safe=False)
mkdirs(path)
rmdir(path, safe=False)
delete(file_path)
upload(local_path_or_fileobj, remote_path)
download(remote_path, local_path_or_fileobj)
'''
def connect(server, username, password, protocol='https'):
"""WebDav Connection.
Parameters
----------
server : string
WebDav server.
username : string
WebDav username.
password : string
WebDav password.
protocol : string
webdav protocol default=https
cert : string default=None
Description of parameter.
Returns
-------
WebDav connection
"""
return easywebdav.connect(server,
username,
password,
protocol)
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("--verbose", help="increase output verbosity",
action="store_true")
args = parser.parse_args()
if args.verbose:
print("verbosity turned on")
print(webdav.ls())#
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment