Skip to main content

Upload Files to DMS

Project description

DMS Uploader!

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

  • 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

options = {
    "username": None, 
    "password":None,
    "mode": "slt", 
    "webdavurl": "", 
    "chunkSize": 400, # 400MB
    "zip": True, 
    "path":None,
    "logLevel":logging.DEBUG, 
    "filename":None
    }

How to use DMS Uploader

First install the dmsdownloader using pip.

pip install dmsuploader

Then initialize dmsuploader as below

from dmsuploader import DMSUpload

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

uploader = DMSUpload(options)

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

uploader.upload(download_link)

Available Methods in DMSDownloader class

  • upload (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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmsuploader-0.0.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

dmsuploader-0.0.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file dmsuploader-0.0.3.tar.gz.

File metadata

  • Download URL: dmsuploader-0.0.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for dmsuploader-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d1152f56a8c823fc37027cad8abda810c5843a526b125dbea416cff5392b8b85
MD5 4220f6fab4fa5137e5e782c26c4463e3
BLAKE2b-256 2e9c7fa2cc237d523b7a224c293dda3cf64b992581561fca6853c2edecc7c66a

See more details on using hashes here.

Provenance

File details

Details for the file dmsuploader-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: dmsuploader-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for dmsuploader-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 07a73731544d0a94eebfbf93b224f1b5e910de6b97eb6ef93f0e7b4ca3bcf444
MD5 afa76e4e3052391ae2c81bffa34cbcb2
BLAKE2b-256 dd8ec04eb29a00200bcb9c85edc4af10d708d302ee12cb6f196a0f388b9e7372

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page