Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

File merger

Merge multiple files into one. Support inserting code as markdown code blocks.

Configuration file

Key Description Default value
files array with input files names 1 -
folder sub-folder, where files located -
output output file name with optional path, relative to config location -
extension extension for all input and output files 2 -
add_file_names add file name before its text, or not false
file_label what write before file name File:
remove_folder extract from 'folder/file.txt' only 'file.txt', for use in file name 3 false
code_in_md write code in markdown file between back-tics ``` with file extension for highlighting false
ask_overwrite ask for overwrite or not false
empty generate empty file by path 4 false
use use this config file or not true

1 All the contents of the files are combined in the order of the files. In this list you can use key text instead of file name for inserting any text between file's content:

files:
  - text: 'some text'

2 If specified, you should write the names of all files without extensions.

3 Used with the add_file_names flag enabled.

4 If specified, no other parameters are needed:

empty: path/to/result/file

Running

python path/to/file_merger.py -f FOLDER -c CONFIG_NAME

-f - Absolute path to folder with project, default is from where script run.

-c - Config file name, default is file-merger.yaml (e.g. folder/config.yaml).

Metadata

Release files for file-merger 0.1.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for file-merger 0.1.0rc2
File Size Uploaded
file-merger-0.1.0rc2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for file-merger 0.1.0rc2
File Interpreter ABI Platform
file_merger-0.1.0rc2-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / file-merger-0.1.0rc2.tar.gz

Download URL file-merger-0.1.0rc2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3111aa5fa9e0807af89c0e7260c6e9abd31fe88d66bee535be0ace869eaa2d3d
BLAKE2b-256 checksum
How to use checksums
74a20e9d4d112067a04a26b8a4c5bce591d8176e5a077ef40a271a1115055ea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.18.1-arch1-1

Release files / file_merger-0.1.0rc2-py3-none-any.whl

Download URL file_merger-0.1.0rc2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dac888f527c8d076a41895fc9771f900195377d0df876264fd166894a7a0752a
BLAKE2b-256 checksum
How to use checksums
ccd7617985941daac4e9e703e38b1f5e782640390f008f936f97a7a1fb6b65ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.18.1-arch1-1

Release history Release notifications | RSS feed

This release

0.1.0rc2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page