Skip to main content

this is a file tool for python

Project description

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

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

from witchy import File

file = File("yourpic.jpg")

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

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

witchy-0.0.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

witchy-0.0.2-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file witchy-0.0.2.tar.gz.

File metadata

  • Download URL: witchy-0.0.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for witchy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8b3c93da4379461f618cffadc3fe266b8547b9b44d492e3205603e7b3da4e508
MD5 3d189be1944d4a2606b8aeaf6bdea183
BLAKE2b-256 800ddd42a805a012fc1f28086114f3d6baf289e8fe8a5cbcf8f1e1775154169a

See more details on using hashes here.

File details

Details for the file witchy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: witchy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for witchy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6559b04e100cc3d44d0a53c48db498cf07c7bf548fd803c7ca5315feb1d0ed8
MD5 5af475cd858756cdd8841b2d538e3aff
BLAKE2b-256 fb501e202a1c096e70dfd317bfad66efe3978718683c3301ce9363fb80c36cfb

See more details on using hashes here.

Supported by

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