Skip to main content

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 use utf-8, cp1252, ISO-8859-1

Metadata

Release files for replace-value-txt 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for replace-value-txt 1.0.0
File Size Uploaded Provenance Actions
replace_value_txt-1.0.0.tar.gz 3.0 kB Without provenance Details for replace_value_txt-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for replace-value-txt 1.0.0
File Interpreter ABI Platform Actions
replace_value_txt-1.0.0-py3-none-any.whl Python 3 none any Details for replace_value_txt-1.0.0-py3-none-any.whl

Total release size: 6.5 kB

Release files / replace_value_txt-1.0.0.tar.gz

Download URL replace_value_txt-1.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a794b9ecf56c2f1525f645d0d14b385104c8554a5ae553d216229ea50ac61d1
BLAKE2b-256 checksum
How to use checksums
4668886931e999d428adadd11bf0bbbca39a66026fd8cc50b8c3f1a17813e67b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / replace_value_txt-1.0.0-py3-none-any.whl

Download URL replace_value_txt-1.0.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e2e359c2464f42f8b4455af2aaa821b639cec9d0019a196a0da478350d98800
BLAKE2b-256 checksum
How to use checksums
a053771b67036d9876218e00224ebb1b7d24bf574172f2cd44f392fffed9a311
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for replace-value-txt 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page