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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file htreader-1.0.0.tar.gz.

File metadata

  • Download URL: htreader-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for htreader-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ab8f05f59eab6e0c293630014939d45aa0a6e12205109953260200b361ffaa94
MD5 5ddcbdae8cd69462d572e94c9ba09d86
BLAKE2b-256 e1e9c1b72f2fbb6ac4f817a9f6dc0f978d1992e1d5308fc592761e1f4c33a7f9

See more details on using hashes here.

File details

Details for the file htreader-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: htreader-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for htreader-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85826481248e57f03f7ae9b67caa0f219e4e6801eb0350ea13f9e124ad8458ed
MD5 dfb337e58c2bfaf8899115b7470f361b
BLAKE2b-256 7a7711870c5e74aa522d4572d6e69f9864bfa6e6c2e7046fec3f918680bf76fa

See more details on using hashes here.

Supported by

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