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)"""

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

Append content to the end

from stringty import Stringty

content = """
a = "ab2c"


print(a)"""

Stringty().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.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: stringty-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 11afe2f981f42ceb9eaa8002d8f927a0190c1e557766e95520b71772086dd0d7
MD5 80be45ebc546d64125470e4275060550
BLAKE2b-256 d497140ab01860f99e30a225a1877e186b10d6b1d99e619159ef2c63c616ac66

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