Skip to main content

Split a text file into parts of the same filesize

Project description

cmem-plugin-splitfile

Split a text file into parts with a specified size.

eccenca Corporate Memory

This is a plugin for eccenca Corporate Memory. You can install it with the cmemc command line clients like this:

cmemc admin workspace python install cmem-plugin-splitfile

Parameters

Input filename

The input file to be split.
Example: An input file with the name input.nt will be split into files with the names input_000000001.nt, input_000000002.nt, input_000000003.nt, etc.
⚠️ Existing files will be overwritten!

Chunk size

The maximum size of the chunk files.

Size unit

The unit of the size value: kilobyte (KB), megabyte (MB), gigabyte (GB), or number of lines (Lines).

Include header

Include the header in each split. The first line of the input file is treated as the header.

Delete input file

Delete the input file after splitting.

Use internal projects directory

Use the internal projects directory of DataIntegration to fetch and store files, instead of using the API. If enabled, the "Internal projects directory" parameter has to be set.

Internal projects directory

The path to the internal projects directory. If "Use internal projects directory" is disabled, this parameter has no effect.

poetry ruff mypy copier

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmem_plugin_splitfile-1.0.2.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmem_plugin_splitfile-1.0.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file cmem_plugin_splitfile-1.0.2.tar.gz.

File metadata

  • Download URL: cmem_plugin_splitfile-1.0.2.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for cmem_plugin_splitfile-1.0.2.tar.gz
Algorithm Hash digest
SHA256 64a3bee52e029bdddbf90ea56608f106817df044c4c1b3ef607319584e9a45b6
MD5 769b5326d4e588c144ba9c96c36c26f0
BLAKE2b-256 2add2152970b9ed240d1b791de39c8bc38ced7d5d36d27dfe22e52f2663bbd3e

See more details on using hashes here.

File details

Details for the file cmem_plugin_splitfile-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cmem_plugin_splitfile-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f843a4ffb09fc93ead97fa473e6f46d7b73ceb49716da69d47b943d66bb9003
MD5 378432c3ac37070de3348ad84f61df4a
BLAKE2b-256 a9bc32affe7ea30379f1979959aa7e64410275f627a845796b6e2f092e68c4f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page