ini2csv


Nameini2csv JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/soumildatta/ini2csv/tree/v1.0.0
SummaryA simple utility that converts and combines a folder of .ini files with identical keys into one csv file.
upload_time2023-06-21 17:47:12
maintainer
docs_urlNone
authorSoumil Datta
requires_python>=3.8
licenseMIT
keywords ini csv data-processing data-cleaning data-science
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # INI2CSV
![](https://img.shields.io/badge/python-3.9-lgreen)
</br></br>
 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.
```py
# 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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/soumildatta/ini2csv/tree/v1.0.0",
    "name": "ini2csv",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "ini,csv,data-processing,data-cleaning,data-science",
    "author": "Soumil Datta",
    "author_email": "soumildatta@email.com",
    "download_url": "https://files.pythonhosted.org/packages/52/29/25f4caeba5b633c402c22deef9ddeaf2658de9d5ef993534fa6c636edfb4/ini2csv-1.0.0.tar.gz",
    "platform": null,
    "description": "# INI2CSV\n![](https://img.shields.io/badge/python-3.9-lgreen)\n</br></br>\n 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.\n\n## Package Installation and Usage\nini2csv is available on PyPI and can be installed using __pip__:\n```\npip install ini2csv\n```\n\nTo use ini2csv, the library needs to first be imported in your project:\n```\nimport ini2csv\n```\n\n### Included functions\nini2csv has two main interface functions: `process_folder` and `process_files`\nEach 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.\n```py\n# Argument list\nprocess_folder(folder_name: str, output_filename: str)\nprocess_files(file_names: List[str], output_filename: str)\n```\n\n## Use Case\nSuppose 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.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple utility that converts and combines a folder of .ini files with identical keys into one csv file.",
    "version": "1.0.0",
    "project_urls": {
        "Download": "https://github.com/soumildatta/ini2csv/releases/tag/v1.0.0",
        "Homepage": "https://github.com/soumildatta/ini2csv/tree/v1.0.0"
    },
    "split_keywords": [
        "ini",
        "csv",
        "data-processing",
        "data-cleaning",
        "data-science"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93c749c18020886868d0e21cc8859c3c3df87175ee45fdbb9262ef7391d8045b",
                "md5": "b48613d27f8ffc8ab5fc038c22845296",
                "sha256": "28c3853708c5f518221aece33c9d254fad8ebca042df934a62c373366f6c56b7"
            },
            "downloads": -1,
            "filename": "ini2csv-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b48613d27f8ffc8ab5fc038c22845296",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4127,
            "upload_time": "2023-06-21T17:47:10",
            "upload_time_iso_8601": "2023-06-21T17:47:10.483888Z",
            "url": "https://files.pythonhosted.org/packages/93/c7/49c18020886868d0e21cc8859c3c3df87175ee45fdbb9262ef7391d8045b/ini2csv-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "522925f4caeba5b633c402c22deef9ddeaf2658de9d5ef993534fa6c636edfb4",
                "md5": "0c0a633ce646dededa8c6037f34836cf",
                "sha256": "84d751d8b90ef6d6530d77d3366c521b8f603da130f2fbc28af0bc2f1e97e875"
            },
            "downloads": -1,
            "filename": "ini2csv-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0c0a633ce646dededa8c6037f34836cf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3570,
            "upload_time": "2023-06-21T17:47:12",
            "upload_time_iso_8601": "2023-06-21T17:47:12.093319Z",
            "url": "https://files.pythonhosted.org/packages/52/29/25f4caeba5b633c402c22deef9ddeaf2658de9d5ef993534fa6c636edfb4/ini2csv-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-21 17:47:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "soumildatta",
    "github_project": "ini2csv",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ini2csv"
}
        
Elapsed time: 0.08846s