Metadata-Version: 2.1
Name: witchy
Version: 0.0.2
Summary: this is a file tool for python
Home-page: https://github.com/hughie21/witchy
Author: Hughie
Author-email: 18028012455@163.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# Witchy

This is a python library for file processing which allow you to modify files in a simple way. Also, it provide some function that allow you to convert the format of the file or doing compression on it.

# Install
```
pip install witchy
```
> **Attention: make sure you have installed the `FFmpeg` and correctly set the path of your local environment**.

# Usage
## basic function

```python
from witchy import File # load the library

file = File("path/to/your/file") # create a File object

print(file) # show the information of the file

create_time = file("ctime") # get the attribute of the file

file["ctime"] = "2020-01-01 00:00:00" # modify the attribute of the file

file.append(b'\x00\x00\x00\x00') # append data to the file

file.save("path/your/file") # save the modified file
```

## convert function
```python
from witchy import File

file = File("yourpic.jpg")

file.convert("path/output.png","PNG") # convert jpg to png format
```



