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
    250e6,  # 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
    250e6,  # 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.1.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.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: frilement-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 58b1c3f40e6a88680f926e8321abc85b3432024ccd72860b6fc8c744c8840faf
MD5 ffb1ffc6cc752fcd5ba75c7d7ce89e6e
BLAKE2b-256 e42b53ef5d6cceda7049bc5a3181094d57da73c8ab88f8340dd82f9f9d593c26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: frilement-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa21c1c6db65021f1f616fb2f1cffa6d505af82e8e5f9faf123cda1e075d1757
MD5 de7917b4e543ca4d207c9fb9ab20a1c8
BLAKE2b-256 4ed1c1ec66a01af431fc701b8e38262d076043728ddac1d9ba6a4a8a9409b0d1

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