No project description provided
Project description
Replace values in txt and csv
Library to replace the values in a ".txt" and ".csv" files.
Install
pip install replace-value-txt
Import:
import replace_value_txt
Function:
replace_value_txt(input_path, dict_replace, output_path=None, encoding='utf-8')
- input_path: String with the name of the path you want to replace the value with. Example:
C:/Users/example.csv - dict_replace: Dict with the data you want replace. Example:
{';': ',', 'ã':'a'} - output_path: String with the name of the path you want to save. Defaults to
input_path. Example:C:/Users/example_output.csv - encoding: String with the name of the encoding. Defaults to
utf-8. You can useutf-8, cp1252, ISO-8859-1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file replace_value_txt-1.0.0.tar.gz.
File metadata
- Download URL: replace_value_txt-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a794b9ecf56c2f1525f645d0d14b385104c8554a5ae553d216229ea50ac61d1
|
|
| MD5 |
326234b5d52da8267005ee915c3fae8b
|
|
| BLAKE2b-256 |
4668886931e999d428adadd11bf0bbbca39a66026fd8cc50b8c3f1a17813e67b
|
File details
Details for the file replace_value_txt-1.0.0-py3-none-any.whl.
File metadata
- Download URL: replace_value_txt-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e2e359c2464f42f8b4455af2aaa821b639cec9d0019a196a0da478350d98800
|
|
| MD5 |
0a757a2c22612b202649659d9f28460b
|
|
| BLAKE2b-256 |
a053771b67036d9876218e00224ebb1b7d24bf574172f2cd44f392fffed9a311
|