taskHandker pakage will distribute all file present in give directory
Project description
About
This taskHandker package will distribute all file present in give directory in the newly create foldes according to there file extension
how to use
md = ManageDownloads()
for windos C:\Users\<userName>\Downloads\ is the default path
and for Linux 'home/<userName>/Downloads' is the default path
or we can chagne path like this:-
download_path = r"C:\Users\<userName>\Downloads\Images"
md.set_download_path(download_path)
then call organize_downloads
md.organize_downloads()
file distributed according to key valse define in whitlist varable
newWhitlist={
'Media': {'mp3', 'mp4'},
'Images': {'jpg', 'jpeg', 'gif', 'png'},
'Web': {'html', 'css'},
'MS-Office': {'docx', 'xlsx', 'ppt'},
'Scripts': {'py', 'pyc', 'c++', 'cpp', 'c', 'java', 'js'},
"Pdf&csv": {'pdf', 'csv'},
'Application': {'exe', 'bat'}
}
this whitlist can be modified
newWhitlist={
'Media': {'mp3'},
'Images': {'jpg','gif', 'png'},
'Web': {'html', 'css'},
'MS-Office': {'docx', 'xlsx', 'ppt'},
'Scripts': {'py', 'pyc', 'c', 'java', 'js'},
"PdfCsv": {'pdf', 'csv'}
}
md.set_whitelist(newWhitlist)
also importing pwd is necessary for Linux
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file taskHandler-0.1.1.tar.gz.
File metadata
- Download URL: taskHandler-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fa6b4c8f3acc68e3001a5bca2805cbeb5b8d0a272cc05913989c698ca95dbb8
|
|
| MD5 |
596478f811fb6d6b7674cb8c05f18a3e
|
|
| BLAKE2b-256 |
4e115febe02b3201edd5c239e0bc16fd51f7a2cc1b0648cfb71300e16b694587
|
File details
Details for the file taskHandler-0.1.1-py3-none-any.whl.
File metadata
- Download URL: taskHandler-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b77c36884b3b87fac70d08491c1fb387fd910647b6ba11c49e7f00987694cc85
|
|
| MD5 |
5d433940af8a5975c8ce1f9c43a36f4c
|
|
| BLAKE2b-256 |
9c54b5a98367799445e4d8b3046f021665b9073c2eb5aef38da983d7ae95896a
|