dmsdownloader


Namedmsdownloader JSON
Version 1.0.4 PyPI version JSON
download
home_page
SummaryDownload and Upload Files to DMS
upload_time2023-11-07 17:38:48
maintainer
docs_urlNone
authorMTLM
requires_python
license
keywords python dms downloader
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# DMS Downloader!

This python package contains required methods to download files from a direct link and upload them in to DMS (Document Management System) or any WebDav server with authentication:

## Required Information

Well, first you need few configurations before start:

* Required Parameters 
    * Username of the DMS
    * Password of the DMS
    * DMS URL (EX: https://dms.***.**/remote.php/dav/files/bf4f27ce-7d83-11ee-b962-0242ac120002/)

* Optional Parameters
    * zip - Wether you want to zip the file or not
    * path - Download path
    * logLevel - Log level you want (default: logging.DEBUG)
    * filename - Custom file name to download the file (default: Actual File Name)

Options Dict is as follows

```python
options = {
    "username": None, 
    "password":None, 
    "dmsUrl": "", 
    "zip": True, 
    "path":None,
    "logLevel":logging.DEBUG, 
    "filename":None
    }
```

## How to use DMS Downloader

First install the dmsdownloader using pip.

```sh
pip install dmsdownloader
```
Then initialize dmsdownloader as below

```python
from dmsdownload import DMSDownloader

options = {
    "username": "testuser",
    "password": "testpassword",
    "dmsUrl: "https://dms.***.**/remote.php/dav/files/bf4f27ce-7d83-11ee-b962-0242ac120002/",
    .......
}

downloder = DMSDownloader(options)

download_link = "https://rs20.seedr.cc/ff_get/1657431157/************.mkv?st=s5UIkvBEH1T3WKaMTKpxRg&e=1699458900"

downloader.upload_to_dms(download_link)

``` 

# Available Methods in DMSDownloader class

* upload_to_dms (url)
* download_file (url)
* zip_file (file_path, extension)
* upload_file(file_path)


License
----

MIT License

Copyright (c) 2023 MTLM

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "dmsdownloader",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,dms,downloader",
    "author": "MTLM",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/6c/09/59139dfab4c1222f7f98ef2b12a619d1e71285ada95f559714b54358e6a9/dmsdownloader-1.0.4.tar.gz",
    "platform": null,
    "description": "\n# DMS Downloader!\n\nThis python package contains required methods to download files from a direct link and upload them in to DMS (Document Management System) or any WebDav server with authentication:\n\n## Required Information\n\nWell, first you need few configurations before start:\n\n* Required Parameters \n    * Username of the DMS\n    * Password of the DMS\n    * DMS URL (EX: https://dms.***.**/remote.php/dav/files/bf4f27ce-7d83-11ee-b962-0242ac120002/)\n\n* Optional Parameters\n    * zip - Wether you want to zip the file or not\n    * path - Download path\n    * logLevel - Log level you want (default: logging.DEBUG)\n    * filename - Custom file name to download the file (default: Actual File Name)\n\nOptions Dict is as follows\n\n```python\noptions = {\n    \"username\": None, \n    \"password\":None, \n    \"dmsUrl\": \"\", \n    \"zip\": True, \n    \"path\":None,\n    \"logLevel\":logging.DEBUG, \n    \"filename\":None\n    }\n```\n\n## How to use DMS Downloader\n\nFirst install the dmsdownloader using pip.\n\n```sh\npip install dmsdownloader\n```\nThen initialize dmsdownloader as below\n\n```python\nfrom dmsdownload import DMSDownloader\n\noptions = {\n    \"username\": \"testuser\",\n    \"password\": \"testpassword\",\n    \"dmsUrl: \"https://dms.***.**/remote.php/dav/files/bf4f27ce-7d83-11ee-b962-0242ac120002/\",\n    .......\n}\n\ndownloder = DMSDownloader(options)\n\ndownload_link = \"https://rs20.seedr.cc/ff_get/1657431157/************.mkv?st=s5UIkvBEH1T3WKaMTKpxRg&e=1699458900\"\n\ndownloader.upload_to_dms(download_link)\n\n``` \n\n# Available Methods in DMSDownloader class\n\n* upload_to_dms (url)\n* download_file (url)\n* zip_file (file_path, extension)\n* upload_file(file_path)\n\n\nLicense\n----\n\nMIT License\n\nCopyright (c) 2023 MTLM\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Download and Upload Files to DMS",
    "version": "1.0.4",
    "project_urls": null,
    "split_keywords": [
        "python",
        "dms",
        "downloader"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38b83c3c2df7d85c9b356f4c37080d98521b92855303f49125ad098f5cf4ca5b",
                "md5": "375ae6a09f53accc2de7d6e3bfe824a9",
                "sha256": "7572e159976cb11160c0ca4975c3cc846b504540a5af1186fcd1fd60afb4c0a5"
            },
            "downloads": -1,
            "filename": "dmsdownloader-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "375ae6a09f53accc2de7d6e3bfe824a9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7939,
            "upload_time": "2023-11-07T17:38:47",
            "upload_time_iso_8601": "2023-11-07T17:38:47.668797Z",
            "url": "https://files.pythonhosted.org/packages/38/b8/3c3c2df7d85c9b356f4c37080d98521b92855303f49125ad098f5cf4ca5b/dmsdownloader-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6c0959139dfab4c1222f7f98ef2b12a619d1e71285ada95f559714b54358e6a9",
                "md5": "63e208377fbead9485b5da8e67049ffe",
                "sha256": "beac459feecad30b5d33bbe736bb0fe603bdd94e5a0b9ccd04afca87799d5254"
            },
            "downloads": -1,
            "filename": "dmsdownloader-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "63e208377fbead9485b5da8e67049ffe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8501,
            "upload_time": "2023-11-07T17:38:48",
            "upload_time_iso_8601": "2023-11-07T17:38:48.650071Z",
            "url": "https://files.pythonhosted.org/packages/6c/09/59139dfab4c1222f7f98ef2b12a619d1e71285ada95f559714b54358e6a9/dmsdownloader-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-07 17:38:48",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "dmsdownloader"
}
        
Elapsed time: 0.15039s