Skip to main content

It is a library that facilitates converting CSV files to various formats (such as DataFrames or other CSV/Excel files) based on a JSON mapping

Project description

Project Title

DataForgeToolkit is a Python library for mapping CSV or Excel files based on JSON transformation mappings.

Installation

Install my-project with npm

  pip install dataforgetoolkit

Usage/Examples

    from dataforgetoolkit import datamapper

    mapped_data = datamapper.map(report_file_path, transformation_file_path)

JSON Transformation Mapping

Transformation mappings are specified using a JSON file. Example:

{
    "transformation_mapping": [
        {
            "column": "Name",
            "new_name": "Student Name",
            "value_mappings": [
                {
                    "*": "Amit Singh"
                }
            ]
        },
        {
            "column": "Age_Column",
            "new_name": "Age",
            "value_mappings": [
                {
                    "FILTER": "30"
                }
            ]
        }
    ]
}

Authors

Contributing

Contributions are always welcome!

Please adhere to this project's code of conduct.

Suggest code and open PR/MR

Used By

'Intended Audience' :: Developers , Testers , BA

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dataforgetoolkit-1.0.3-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

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