Your package description.
Project description
Crimson Folder Sync
Crimson Folder Sync is a Python package designed to help you synchronize directories and automate certain system tasks with scripts.
Installation
Install the package using pip:
pip install crimson-folder-sync
Usage
Directory Synchronization
To use the directory synchronization feature, import MoveHandler
and start_watching
from the package:
from crimson.folder_sync.syncer import MoveHandler, start_watching
# Example usage
source_path = "/path/to/source"
base_source = "/path/to/base_source"
base_destination = "/path/to/base_destination"
start_watching(source_path, base_source, base_destination)
MoveHandler
: Handles file creation and modification events, copying the files from the source to the destination directory.start_watching
: Watches the specified directory for changes and triggers theMoveHandler
to copy files to the destination.
Scripts
The package also includes utility scripts that can be accessed through the Scripts
class.
from crimson.folder_sync.load_script import Scripts
scripts = Scripts()
# Access the content of the linux_link_folders.sh script
print(scripts.linux_link_folders)
linux_link_folders.sh
: This script creates a symbolic link between two paths, allowing you to easily reference the target path from the symbolic path.
This package is designed to be a simple and effective tool for directory synchronization and basic system automation tasks.
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
File details
Details for the file crimson_folder_sync-0.3.0.tar.gz
.
File metadata
- Download URL: crimson_folder_sync-0.3.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e332c9775161307eafecd998fd03283a7c7ea8d24e64793e98d1e06ed9ed16 |
|
MD5 | 71c7aa838fdb73e6e6fe727f25babf2b |
|
BLAKE2b-256 | 033c75dfdad1fdb2deaac76e07d7b132e8cbc568f6b88eaba8a26325fbceb9e2 |
File details
Details for the file crimson_folder_sync-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: crimson_folder_sync-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 593827df1f7d195693d9e377cdca6f34bd9776c4df8da31d8ba3c42f2b4c41fb |
|
MD5 | b1c6c2c36385f42c71d7a324d1d25cf9 |
|
BLAKE2b-256 | 7bc9a16d2ba39b8188ff9a3283e1bc3fdbaf4ec9214221943d238db90cde8a40 |