Skip to main content

A simple utility that converts and combines a folder of .ini files with identical keys into one csv file.

Project description

INI2CSV



A simple utility that converts and combines a folder of .ini files with identical keys into one csv file. The keys of the .ini files become the headers of the csv file, and the values of each file become a row.

Package Installation and Usage

ini2csv is available on PyPI and can be installed using pip:

pip install ini2csv

To use ini2csv, the library needs to first be imported in your project:

import ini2csv

Included functions

ini2csv has two main interface functions: process_folder and process_files Each of these functions take two arguments. process_folder takes in the folder name and output .csv file name as arguments. process_files similarly takes a list of file names and output .csv file name as arguments.

# Argument list
process_folder(folder_name: str, output_filename: str)
process_files(file_names: List[str], output_filename: str)

Use Case

Suppose you have a folder of .ini files, where each file contains data for one instance of an item. Each file thus represents one row in a .csv file, and each key in the file represents the headers in the .csv file. A folder of such .ini files can then be converted into a csv file and saved for ease of other pre-existing data-processing pipelines.

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

ini2csv-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

ini2csv-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ini2csv-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ini2csv-1.0.0.tar.gz
Algorithm Hash digest
SHA256 84d751d8b90ef6d6530d77d3366c521b8f603da130f2fbc28af0bc2f1e97e875
MD5 0c0a633ce646dededa8c6037f34836cf
BLAKE2b-256 522925f4caeba5b633c402c22deef9ddeaf2658de9d5ef993534fa6c636edfb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ini2csv-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ini2csv-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28c3853708c5f518221aece33c9d254fad8ebca042df934a62c373366f6c56b7
MD5 b48613d27f8ffc8ab5fc038c22845296
BLAKE2b-256 93c749c18020886868d0e21cc8859c3c3df87175ee45fdbb9262ef7391d8045b

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