# CSV Remapper
**CSV Remapper** is a powerful Python library designed to easily transform and manipulate CSV files using customizable mapping files. Streamline your data workflows and automate common CSV cleaning and transformation tasks.
## Key Features
- **Rename columns:** Effortlessly rename columns based on your mapping rules.
- **Remove columns:** Effortlessly rename columns based on your mapping rules.
- **Merge columns:** Combine values from multiple columns, choosing the order and separator.
- **Convert values to positive:** Transform numeric values to their absolute value by key.
- **Convert values to negative:** Transform numeric values to negative by key.
- **Normalize dates:** Standardize date formats in selected columns.
- **Convert to JSON:** Convert CSV format to JSON.
## Why use CSV Remapper?
- **Easy to use:** Intuitive API and clear documentation.
- **Flexible:** Adapt CSV transformations to any workflow.
- **Automatable:** Perfect for data pipelines and batch processing.
- **Open Source:** Community-maintained and open source.
## Installation
```bash
pip install csv-remapper-lib
```
## Usage Example
```python
from csv_remapper_lib import CsvRemapper
csv = CsvRemapper("data.csv")
csv.rename_key("example_key", "new_key")
csv.save("data.csv")
```
## Contributing
Contributions are welcome! See the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information.
---
## License
This project is licensed under the GNU Affero General Public License v3.0. See the [LICENSE](LICENSE) file for details.
**Keywords:** csv, python, data transformation, data cleaning, csv processing, automation, data engineering
Raw data
{
"_id": null,
"home_page": "https://github.com/MyNameIsClown/csv_remapper_lib",
"name": "csv_remapper_lib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "csv, remap, data",
"author": "V\u00edctor Carrasco",
"author_email": "vc.business.oo@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4d/ac/86e09cc32ae81debf0ca186ab47a4f48302ce6bf99da1a6f62b8f45948f3/csv_remapper_lib-1.2.0.tar.gz",
"platform": null,
"description": "# CSV Remapper\n\n**CSV Remapper** is a powerful Python library designed to easily transform and manipulate CSV files using customizable mapping files. Streamline your data workflows and automate common CSV cleaning and transformation tasks.\n\n## Key Features\n\n- **Rename columns:** Effortlessly rename columns based on your mapping rules.\n- **Remove columns:** Effortlessly rename columns based on your mapping rules.\n- **Merge columns:** Combine values from multiple columns, choosing the order and separator.\n- **Convert values to positive:** Transform numeric values to their absolute value by key.\n- **Convert values to negative:** Transform numeric values to negative by key.\n- **Normalize dates:** Standardize date formats in selected columns.\n- **Convert to JSON:** Convert CSV format to JSON.\n\n## Why use CSV Remapper?\n\n- **Easy to use:** Intuitive API and clear documentation.\n- **Flexible:** Adapt CSV transformations to any workflow.\n- **Automatable:** Perfect for data pipelines and batch processing.\n- **Open Source:** Community-maintained and open source.\n\n## Installation\n\n```bash\npip install csv-remapper-lib\n```\n\n## Usage Example\n\n```python\nfrom csv_remapper_lib import CsvRemapper\n\ncsv = CsvRemapper(\"data.csv\")\ncsv.rename_key(\"example_key\", \"new_key\")\ncsv.save(\"data.csv\")\n```\n\n## Contributing\n\nContributions are welcome! See the [CONTRIBUTING.md](CONTRIBUTING.md) file for more information.\n\n---\n## License\n\nThis project is licensed under the GNU Affero General Public License v3.0. See the [LICENSE](LICENSE) file for details.\n\n**Keywords:** csv, python, data transformation, data cleaning, csv processing, automation, data engineering\n",
"bugtrack_url": null,
"license": "AGPL v3",
"summary": "A library for remapping CSV files based on a mapping file.",
"version": "1.2.0",
"project_urls": {
"Homepage": "https://github.com/MyNameIsClown/csv_remapper_lib",
"Repository": "https://github.com/MyNameIsClown/csv_remapper_lib"
},
"split_keywords": [
"csv",
" remap",
" data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "886baf9ae1b476d32f2bb3864b0997ca06ed5b4c6a1ea593f7531b59eb942ea8",
"md5": "a392c041b59f17f4b50475bb5bef4619",
"sha256": "5869e54d25c3f4e63fb34f2c05b9f785946b1145fd456d35d8d15a30fb933488"
},
"downloads": -1,
"filename": "csv_remapper_lib-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a392c041b59f17f4b50475bb5bef4619",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 9239,
"upload_time": "2025-08-07T18:41:13",
"upload_time_iso_8601": "2025-08-07T18:41:13.355286Z",
"url": "https://files.pythonhosted.org/packages/88/6b/af9ae1b476d32f2bb3864b0997ca06ed5b4c6a1ea593f7531b59eb942ea8/csv_remapper_lib-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4dac86e09cc32ae81debf0ca186ab47a4f48302ce6bf99da1a6f62b8f45948f3",
"md5": "9d2fd8f893f0523bf8e5a88d1af7b2a7",
"sha256": "94c82e9aa60adeb845e67f179c000ef6ec050847c9a93e0555e18558e198fbf4"
},
"downloads": -1,
"filename": "csv_remapper_lib-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "9d2fd8f893f0523bf8e5a88d1af7b2a7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 9028,
"upload_time": "2025-08-07T18:41:14",
"upload_time_iso_8601": "2025-08-07T18:41:14.508246Z",
"url": "https://files.pythonhosted.org/packages/4d/ac/86e09cc32ae81debf0ca186ab47a4f48302ce6bf99da1a6f62b8f45948f3/csv_remapper_lib-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-07 18:41:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MyNameIsClown",
"github_project": "csv_remapper_lib",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "csv_remapper_lib"
}