Skip to main content

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 the MoveHandler 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


Download files

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

Source Distribution

crimson_folder_sync-0.2.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

crimson_folder_sync-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file crimson_folder_sync-0.2.0.tar.gz.

File metadata

  • Download URL: crimson_folder_sync-0.2.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for crimson_folder_sync-0.2.0.tar.gz
Algorithm Hash digest
SHA256 10fa42d8834ea61d11a68aa516bb3c831445b87b9f0fad67d55b3457923e12b2
MD5 e7ae7e60febf4c453ee25c8df6477526
BLAKE2b-256 2a6edb2572e05757fa276973444c62edbbb4f9eb44070158190daf54e98920fc

See more details on using hashes here.

File details

Details for the file crimson_folder_sync-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crimson_folder_sync-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e36d37d33324be8627c894c4f45d30cda8a323190f013510087a9c2a60c72fdb
MD5 3a5977e4217e018088c7306b6476437d
BLAKE2b-256 0ea69a58220a6012156f6e3f86b5531d0f6a7c8f0fc1986d655e2f2ea2588a91

See more details on using hashes here.

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