Compression#
- remote_compression.compression.compress(source, settings)[source]#
- Parameters:
- Returns:
Names to be added to the keep file
- Return type:
Examples
>>> big = Path('data/big.mp4') >>> from remote_compression.settings import Settings >>> with tempfile.TemporaryDirectory() as d: ... big_copy = Path(d) / big.name ... _ = big_copy.write_bytes(big.read_bytes()) ... compress(big_copy, Settings()) big.mp4 Size: 628516 => 380885, new size: 60.60% {...}