Skip to main content

Removing microsoft office files' metadata

Project description


Table of contents

Overview

DMeta is an open source Python package that removes metadata of Microsoft Office files.

PyPI Counter
Github Stars
Branch main dev
CI

Installation

PyPI

Source code

Usage

In Python

Clear metadata for a .docx file

import os
from dmeta.functions import clear

DOCX_FILE_PATH = os.path.join(os.getcwd(), "sample.docx")
clear(DOCX_FILE_PATH)

Clear metadata for all existing .docx files in the current directory

from dmeta.functions import clear_all
clear_all()

Update metadata for a .docx file

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.docx")
update(CONFIG_FILE_PATH, DOCX_FILE_PATH)

Update metadata for all existing .docx files in the current directory

import os
from dmeta.functions import update_all

CONFIG_FILE_PATH = os.path.join(os.getcwd(), "config.json") 
update_all(CONFIG_FILE_PATH)

CLI

⚠️ You can use dmeta or python -m dmeta to run this program

Version

dmeta -v
dmeta --version

Clear metadata for a .docx file

dmeta --clear "./test_a.docx"

Clear metadata for all existing .docx files in the current directory

dmeta --clear-all

Update metadata for a .docx file

dmeta --update "./test_a.docx" --config "./config.json"

Update metadata for all existing .docx files in the current directory

dmeta --update-all --config "./config.json"

Supported files

File format support
Microsoft word office(.docx)

Issues & bug reports

Just fill an issue and describe it. We'll check it ASAP! or send an email to dmeta@openscilab.com.

  • Please complete the issue template

You can also join our discord server

Discord Channel

Show Your Support

Star this repo

Give a ⭐️ if this project helped you!

Donate to our project

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 ;-) .

DMeta Donation

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased

Added

Changed

[0.1] - 2024-06-19

Added

  • CLI handler
  • main function in __main__.py
  • README.md
  • clear function functions.py
  • clear_all function in functions.py
  • update function functions.py
  • update_all function functions.py
  • run_dmeta function functions.py
  • dmeta_help function functions.py
  • extract_namespaces function in util.py
  • remove_format function in util.py
  • extract_docx function in util.py
  • read_json function in util.py

[0.1]: https://github.com/openscilab/dmeta/compare/9a4ad10 ...v0.1

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmeta-0.1.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

DMeta-0.1-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

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