Skip to main content

No project description provided

Project description

Frilement 📂

Frilement is a Python librairy to split large data files like csv files into multiple little files, inside folders (clusters) or not.

Available file formats 📃

Input ↩️

  • CSV
  • Parquet

Output ↪️

  • CSV

How to use 💯

Create the configuration 📈

To begin you'll need to fill the config object.

from frilement import FrilementConfig

CONFIG: FrilementConfig = FrilementConfig(
    "./output",  # Path to the output folder
    500_000,  # Max amount of datas loaded in memory at a time
    250_000,  # Max size of a result file
    True,  # Determins if file clustering is enabled
    20,  # Max amount of file by cluster
    8192  # Size of datas loaded for CSV delimiter analyzer
)

NB : Here I have specified defaults values, but your free to adjust them.

Usage 📘

To use it you have two main ways to operate. You can fragment from one or multiple file source.

from frilement import FrilementConfig, FrilementService, FileFormat

CONFIG: FrilementConfig = FrilementConfig(
    "./output",  # Path to the output folder
    500_000,  # Max amount of datas loaded in memory at a time
    250_000,  # Max size of a result file
    True,  # Determins if file clustering is enabled
    20,  # Max amount of file by cluster
    8192  # Size of datas loaded for CSV delimiter analyzer
)

FrilementService.frilement("./my_single_csv.csv", CONFIG, FileFormat.CSV)  # Here the output file format is optionnal
FrilementService.frilements(["./my_csv.csv", "./my_other_csv.csv"], CONFIG, FileFormat.CSV)

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

frilement-1.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

frilement-1.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file frilement-1.0.tar.gz.

File metadata

  • Download URL: frilement-1.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for frilement-1.0.tar.gz
Algorithm Hash digest
SHA256 1c984ca35563c75a06f9294c4b5e4e337f71c60a110aa2e66bddefd180f42a12
MD5 fe21ee191506b62c3f3a3e41491548f9
BLAKE2b-256 754444a7c211169400564f092d75212feaa8f58036783ec3acabc8e431b354d8

See more details on using hashes here.

File details

Details for the file frilement-1.0-py3-none-any.whl.

File metadata

  • Download URL: frilement-1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for frilement-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3cda801a2f51c9679114067dbdb1bc71bcf9a8d9437d4283d024f817a51307b
MD5 3faf58be0fc60a514e3f522442e6ee1f
BLAKE2b-256 191c9ebf290b882cdeffd30176baf12fd1940f3cb4a19e80c45bc06ce0365e0c

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