Skip to main content

htreader is a file treatment

Project description

htreader

Installation

pip install htreader

from htreader.htreader import (
    ReadText,
    WriteText,
    UpdateText,
    DeleteFiles,
    CreateFiles
)

Usage

To open and read content of files: ReadText()

from htreader.htreader import ReadText

files = './example.txt'
read = ReadText(files)
print(read)

"""You can try with this::"""
ReadText(file_name = files##)

To create a new file and write on it: CreateFiles()

from htreader.htreader import ReadText, WriteText, UpdateText,DeleteFiles, CreateFiles

files = './example.txt'
use = CreateFiles(
    file_name=files,
    create="this is the content of files"
)

To write files: WriteText()

from htreader.htreader import ReadText, WriteText

files = './example.txt'

use = WriteText(
    file_name = files, 
    contents = "i am prood of me\n i have knowledge."
)
print(files)

To Update files content: UpdateText()

from htreader.htreader import ReadText, WriteText, UpdateText

files = './example.txt'
text = "\n this is a new text for updated"

use = UpdateText(
    file_name=files,
    update_contents=text
)

print(use)

To Delete files: DeleteFiles()

from htreader.htreader import ReadText, WriteText, UpdateText,DeleteFiles

files = './example.txt'
use = DeleteFiles(file_name=files)
print(use)

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

htreader-1.0.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

htreader-1.0.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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