semvec/pypi-packages huggingface dataset:
simple-file-handler 0.0.1
An easy to use interface for basic file handling operations.
Requires Python: >=3.7
Keywords: file,file-handling,file-handler,file-handlers,file-handling-operations,file-handling-operation,write-to-file,read-from-file,copy-file,move-file,delete-file

## simple_file_handler

The `FileHandler` class provides an interface to perform most file operations easily and intuitively. All you need is the file path.

```python
import simple_file_handler as sfh

# Use in a with statement to ensure the file is closed after use
with sfh.FileHandler('path/to/file.txt') as hdl:
    try:
        # Read the handled file's content
        data = hdl.read_file(mode='r')
        # Write to the handled file
        hdl.write_file(b'Hello World!', mode='ab')
        # Make a copy of the handled file
        copy_hdl = hdl.make_copy('path/to/directory', filename='file_copy')
        print(copy_hdl.file_path)
        # Delete the handled file
        hdl.delete_file()
    except sfh.FileError as exc:
        print(exc)
```

## Installation

Do a pip install from the command line:

```bash
pip install simple-file-handler
```
amps-py 0.1.8
Package for Interfacing with AMPS from Agile Data Inc.
Requires Python: >=3.6

# AMPS Python

This package serves as an interface to the [Agile Message Processing System (AMPS)]() by providing Action, Endpoint, and Service classes that can be used in AMPS Actions, Gateways, and Custom Services, respectively. 

The package documentation is available [here](https://mft-labs.github.io/amps-py)