![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
Functions | |
execute (command, print_output=False, print_error=True, param_shell=False) | |
proc (cmd_args, pipe=True, dummy=False) | |
make (targets, pipe=True) | |
git (args, pipe=True) | |
get_git_tags () | |
create_dict (tag, dict_source_path) | |
dict_compress_sample (tag, sample) | |
compress_sample (tag, sample) | |
sha1_of_file (filepath) | |
remove_duplicates () | |
decompress_zst (tag) | |
decompress_dict (tag) | |
dict_ok (tag, dict_name, sample) | |
create_dict (tag, dict_source_path, fallback_tag=None) | |
zstd (tag, args, input_file, output_file) | |
Variables | |
str | repo_url = 'https://github.com/facebook/zstd.git' |
str | tmp_dir_name = 'tests/versionsTest' |
str | make_cmd = 'make' |
list | make_args = ['-j','CFLAGS=-O1'] |
str | git_cmd = 'git' |
str | test_dat_src = 'README.md' |
str | test_dat = 'test_dat' |
str | head = 'vdevel' |
str | dict_source = 'dict_source' |
str | dict_files = './zstd/programs/*.c ./zstd/lib/common/*.c ./zstd/lib/compress/*.c ./zstd/lib/decompress/*.c ./zstd/lib/dictBuilder/*.c ./zstd/lib/legacy/*.c ' |
int | error_code = 0 |
str | base_dir = os.getcwd() + '/..' |
str | tmp_dir = base_dir + '/' + tmp_dir_name |
str | clone_dir = tmp_dir + '/' + 'zstd' |
str | dict_source_path = tmp_dir + '/' + dict_source |
str | programs_dir = base_dir + '/programs' |
exist_ok | |
alltags = get_git_tags() + [head] | |
list | tags = [t for t in alltags if t >= 'v0.5.0'] |
str | dst_zstd = '{}/zstd.{}'.format(tmp_dir, tag) |
str | r_dir = '{}/{}'.format(tmp_dir, tag) |
param_shell | |
zstds = sorted(glob.glob('*.zst')) | |
list | dict_globs |
files = glob.glob(dict_glob, root_dir=base_dir) | |
file = os.path.join(base_dir, file) | |
compress_sample | ( | tag, | |
sample ) |
create_dict | ( | tag, | |
dict_source_path ) |
create_dict | ( | tag, | |
dict_source_path, | |||
fallback_tag = None ) |
decompress_dict | ( | tag | ) |
decompress_zst | ( | tag | ) |
dict_compress_sample | ( | tag, | |
sample ) |
dict_ok | ( | tag, | |
dict_name, | |||
sample ) |
get_git_tags | ( | ) |
git | ( | args, | |
pipe = True ) |
make | ( | targets, | |
pipe = True ) |
remove_duplicates | ( | ) |
sha1_of_file | ( | filepath | ) |
zstd | ( | tag, | |
args, | |||
input_file, | |||
output_file ) |
Zstd compress input_file to output_file. Need this helper because 0.5.0 is broken when stdout is not a TTY. Throws an exception if the command returns non-zero.
alltags = get_git_tags() + [head] |
str base_dir = os.getcwd() + '/..' |
str dict_files = './zstd/programs/*.c ./zstd/lib/common/*.c ./zstd/lib/compress/*.c ./zstd/lib/decompress/*.c ./zstd/lib/dictBuilder/*.c ./zstd/lib/legacy/*.c ' |
list dict_globs |
str dict_source = 'dict_source' |
str dict_source_path = tmp_dir + '/' + dict_source |
int error_code = 0 |
exist_ok |
file = os.path.join(base_dir, file) |
files = glob.glob(dict_glob, root_dir=base_dir) |
str head = 'vdevel' |
list make_args = ['-j','CFLAGS=-O1'] |
param_shell |
str repo_url = 'https://github.com/facebook/zstd.git' |
str test_dat = 'test_dat' |
str test_dat_src = 'README.md' |
str tmp_dir = base_dir + '/' + tmp_dir_name |
str tmp_dir_name = 'tests/versionsTest' |
zstds = sorted(glob.glob('*.zst')) |