Metadata-Version: 2.1
Name: htreader
Version: 1.0.0
Summary: htreader is a file treatment
Home-page: UNKNOWN
Author: RAKOTONIAINA Harry Yves
Author-email: iharrysh.rakotoniaina@gmail.com
License: MIT License
        
        Copyright (c) 2022 hizart.soft
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
        THE SOFTWARE.
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Utilities
Requires-Python: >3.10, <3.11
Description-Content-Type: text/markdown
License-File: LICENSE

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

```


