Skip to main content

Uma biblioteca PYTHON para editar conteúdo de arquivos, substitua todo o conteúdo ou adicione algo a mais.

Project description

The Stringty is a Python library for manipulating file content in a simple way — either replacing all content or appending new content.

Installation

pip install stringty

Replace the entire content

from stringty import Stringty

content = """
a = "ab2c"

print(a)"""

Redacty().rescript("test.py", content)

Append content to the end

from stringty import Stringty

content = """
a = "ab2c"


print(a)"""

Redacty().imprement("test.py", content)

Project details


Download files

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

Source Distribution

stringty-0.0.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file stringty-0.0.2.tar.gz.

File metadata

  • Download URL: stringty-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for stringty-0.0.2.tar.gz
Algorithm Hash digest
SHA256 af076fa8882713ce8023e02252bbdcc7787d947f29270e77f2a1c08f5261adae
MD5 3b5a6f5cecf31fc1fb1d3fcc99c9445d
BLAKE2b-256 b205b5c2620730f5c000afd7d8c7b13b61c163349855e029255007637ffe5ffd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page