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.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

cmem_plugin_splitfile-1.0.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmem_plugin_splitfile-1.0.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for cmem_plugin_splitfile-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d732da4052d60682f70c41cc371128fef131c5c7cfbd0d4087e7c199090de2ab
MD5 b0c1c15d278d63438e147c5af99356e5
BLAKE2b-256 132cbb1fc69c50a06c5750b4c7ce73bafac6860390f34a4ab2bcea2199bbee84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cmem_plugin_splitfile-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a1d4f6dfc79f617c7ec1cc4fd3540513988ac3af45dfe1d710059e20460fbb
MD5 a94793498f58e80f084b6a849d693d00
BLAKE2b-256 d54cc4f473edd0b10c8c3b6e64075f54035166c81169800477b3bdcca9b77a35

See more details on using hashes here.

Supported by

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