No project description provided
Project description
Aqueduc
Aqueduc is a small script used to move or copy files and folders using preconfigured parameters.
It is usefull to automate recurring file transfers.
Requirement
- Python 3 (tested with python 3.7.2)
How to get
git clone https://github.com/Mozenn/Aqueduc.git
How to use
-
create a JSON configuration file following Configuration-file or by checking the example files in data/ folder
-
From the directory where the script file is located, run :
python aqueduc.py RelativePath/To/ConfigFile
Tips
Configuration file
Configurations files are in JSON format following this structure:
- target (str): Path of the destination folder where source items will be moved to
- sources (array)
- path (str): Path of the file or folder to move
- options
- overwrite (boolean): true to overwrite the file in target destination if it already exists
- removeExisting (boolean): true to remove the file in target destination if it already exists
- move (boolean): true to move, false to copy
- size_limit (number): size limit in bytes. Files having a size above this limit will not be moved/copied to target
- forbidden_extensions(array): file having one of the specified extension will not be moved/copied to target
- last_date_allowed (str): file not modified since the specified date will not be moved/copied to target
Other
- You can put the aqueduc.py file wherever you want and execute it from there, or add it to your PATH.
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 aqueduc-1.0.5.tar.gz.
File metadata
- Download URL: aqueduc-1.0.5.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
488ae94bdc94e342b4e60f8efcc85dae9d2e9019367fe2e94bd711244d32322b
|
|
| MD5 |
0a8166eb0f10c3ae7475a9962e844bec
|
|
| BLAKE2b-256 |
96cb48ae401af5d7bbf6fbaabb348931dd2d3d150234d248a604b3508f76e44f
|
File details
Details for the file aqueduc-1.0.5-py3-none-any.whl.
File metadata
- Download URL: aqueduc-1.0.5-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63e3bb7df03d12bd6a9f22f45c39e72baef889a74f1d16a35ef2c07944ae70bb
|
|
| MD5 |
b6f1cfa333b8e00bd91810d8a54ddbdb
|
|
| BLAKE2b-256 |
84d362f3ded12a3008e59985635126a1c06b06efb5e91c5fa037de20003a7c95
|