{ "info": { "author": "yoarch", "author_email": "yo.managements@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# replacefs\nSearch and replace tool for strings on the all system.\n\nThe replacefs tool permits to perform massive and controlled string replacements in files over the all file system in an intuitive and pleasant way. You will be able to replace a defined string to another recursively from a path, or locally in a defined path or in a list of files.\n\n# installation\n```sh\nwith pip:\nsudo pip3 install replacefs\n\nwith yay:\nyay -a replace\n\nwith yaourt:\nyaourt -a replace\n```\n\n# compatibility\npython >= 3\n\n# usage\n
\nreplacefs [-h] [-l] [-r] [-s] [-a] [-c]\n [--initial_string INITIAL_STRING]\n [--destination_string DESTINATION_STRING]\n [--directory_path FOLDER_PATH]\n [--file_paths_list FILE_PATH_01 FILE_PATH_02 ...]\n [--filename_must_end_by END_STRING_01 END_STRING_02 ...]\n [--no_ask_confirmation] [--case_insensitive ]\n [--extension_filter] [--all_extensions]\n [--add_excluded_extensions END_STRING_01 END_STRING_02 ...]\n [--add_excluded_strings STRING_01 STRING_02 ...]\n [--excluded_paths EXCLUDED_PATH_01 EXCLUDED_PATH_01 ...]\n [--binary_exclusion] [--binary_accepted]\n [--symlink_exclusion] [--symlink_accepted] [--end_param]\noptions:\n -h, --help show this help message and exit\n -l perform local replacement in FOLDER_PATH. Enabled by default\n -r perform recursive replacement from FOLDER_PATH\n -s perform specific replacement on FILE_PATH_01 FILE_PATH_02 given by --list_files_paths_to_apply\n -a, --ask_confirmation, --ask ask for confirmation to perform replacement at any INITIAL_STRING occurrence. Enabled by default\n -c, --case_sensitive, --case_respect respect case when searching for occurrences. Enabled by default\n --initial_string, --initial, --init INITIAL_STRING precise the string to search and replace\n --destination_string, --destination, --dest DESTINATION_STRING precise the string to replace the INITIAL_STRING strings found\n --directory_path, --dirpath, --path FOLDER_PATH precise the path of the directory to perform the replacement from\n --file_paths_list, --file_paths FILE_PATH_01 FILE_PATH_02 ... precise the list of file paths to perform the replacement on\n --filename_must_end_by, --end_by END_STRING_01 END_STRING_02 ... precise the list of acceptable end string to filter the files regarding their end names\n --no_ask_confirmation, --no_ask enable no asking mode. Perform replacement without asking confirmation\n --case_insensitive, --no_case_respect enable case insensitive. Search for INITIAL_STRING string in insensitive case mode\n --extension_filter, --no_all_extensions enable blacklist extension filter. The blacklist extension owns more than 60 audio, image and video extensions such as \"mp3\", \"jpg\" or \"mp4\". This mode is enabled by default\n --all_extensions, --no_extension_filter disable blacklist extension filter.\n --add_excluded_extensions, --filter_extensions END_STRING_01 END_STRING_02 ... precise the unacceptable end strings to filter the files regarding their end names\n --add_excluded_strings, --filter_strings STRING_01 STRING_02 ... precise the unacceptable strings to filter the files regarding their names\n --excluded_paths EXCLUDED_PATH_01 EXCLUDED_PATH_01 precise the paths to exclude when searching for the INITIAL_STRING in the file system\n --binary_exclusion, --no_binary refuse binary files. Enabled by default\n --binary_accepted, --no_binary_exclusion, --binary accept binary files\n --symlink_accepted, --no_symlink_exclusion, --symlink refuse symlinks. Enabled by default\n --symlink_exclusion, --no_symlink accept symlinks\n -end_param, --end precise the end of a parameter enumeration\n\n\n\n# examples\nfor help: