DMeta is an open source Python package that removes metadata of Microsoft Office files.
PyPI Counter | |
Github Stars |
Branch | main | dev |
CI |
- Check Python Packaging User Guide
- Run
pip install dmeta==0.2
- Download Version 0.2 or Latest Source
- Run
pip install .
in_place
to apply the changes directly to the original file.
in_place
flag is False
by default.
import os
from dmeta.functions import clear
DOCX_FILE_PATH = os.path.join(os.getcwd(), "sample.docx")
clear(DOCX_FILE_PATH, in_place=True)
from dmeta.functions import clear_all
clear_all()
import os
from dmeta.functions import update
CONFIG_FILE_PATH = os.path.join(os.getcwd(), "config.json")
DOCX_FILE_PATH = os.path.join(os.getcwd(), "sample.pptx")
update(CONFIG_FILE_PATH, DOCX_FILE_PATH, in_place=True)
import os
from dmeta.functions import update_all
CONFIG_FILE_PATH = os.path.join(os.getcwd(), "config.json")
update_all(CONFIG_FILE_PATH)
dmeta
or python -m dmeta
to run this program
--inplace
to apply the changes directly to the original file.
dmeta -v
dmeta --version
dmeta --clear "./test_a.docx" --inplace
dmeta --clear-all
dmeta --update "./test_a.xlsx" --config "./config.json" --inplace
dmeta --update-all --config "./config.json"
File format | support |
---|---|
Microsoft Word (.docx) | ✅ |
Microsoft PowerPoint (.pptx) | ✅ |
Microsoft Excel (.xlsx) | ✅ |
Just fill an issue and describe it. We'll check it ASAP! or send an email to [email protected].
- Please complete the issue template
You can also join our discord server
Give a ⭐️ if this project helped you!
If you do like our project and we hope that you do, can you please support us? Our project is not and is never going to be working for profit. We need the money just so we can continue doing what we do ;-) .