Synchronizer
A collection of utilities for CGI-VFX to copy files from one place to another, find out basic stat differences between them and handle file sequences and textures (tx files).
Installation
pip install synchronizer
Documentation
Basic Usage:
- Copies src_path to trg_path. Takes both files and directories as source. If given source is a file and it's part of a sequence it'll find and copy the entire sequence of files.
from synchronizer import copier
copier.process_paths(src_path, trg_path, force_overwrite=True, **kwargs)
kwargs: include_tx = True only_tx = True find_sequence = True
- Compares two files or directory paths and return sync status. Sync status refers to name and os.stat() comparisons
from synchronizer import syncstatus
syncstatus.get_sync_status(
src_path, trg_path,
ignore_name=False,
ignore_stats=['st_uid', 'st_gid', 'st_atime',
'st_ctime', 'st_ino', 'st_dev'])
- Compares two paths and returns whichever has the most recent stat time. Default stat used for comparison is st_mtime which is: Time of most recent content modification.
from synchronizer import syncstatus
syncstatus.get_most_recent(src_path, trg_path, use_stat='st_mtime')
- Find and return all files that are part of a sequence matching file_path. If no sequence found, returns None. Two files are enough to make a sequence, even if they're not sequential. This assumes the sequence digits are right beside the file extension. ie: C_myfile_v568.jpg MJ_thisisafileseq_455868.dpx MB_udimsforthewin.1008.tx
from synchronizer import utils
utils.get_sequence_files(file_path)
Metadata
Release files for synchronizer 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| synchronizer-2.0.2.tar.gz | 9.9 kB | Without provenance | Details for synchronizer-2.0.2.tar.gz |
Release files / synchronizer-2.0.2.tar.gz
| Download URL | synchronizer-2.0.2.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f973b577bc74ec73ebe0aa5eb25a1f8a1c546f4917ac151f421dd09c071527bf
|
|
BLAKE2b-256 checksum How to use checksums |
8820bb496cfdaccc0c7a23e1d0c85c7bdac475afb24ab7ca35778a4c7a3e4446
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
|
Security for synchronizer 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.