-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancements #29
enhancements #29
Changes from 7 commits
287e2f1
b800a46
2a34ca8
5f6b934
c736a81
eeff46f
b521a93
9661aee
586ebef
486a99a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
|
||
## Overview | ||
<p align="justify"> | ||
DMeta is an open source Python package that provides ... TODO | ||
DMeta is an open source Python package that removes metadata of microsoft office files. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will change it to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, go ahead. |
||
</p> | ||
<table> | ||
<tr> | ||
|
@@ -84,30 +84,68 @@ DMeta is an open source Python package that provides ... TODO | |
- Run `pip install .` | ||
|
||
## Usage | ||
### Programmatically | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Go ahead and apply yourself, then finally ping me, I will review them. |
||
#### Clear metadata for a .docx file | ||
```python | ||
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 | ||
```python | ||
from dmeta.functions import clear_all | ||
clear_all() | ||
``` | ||
#### Update metadata for a .docx file | ||
```python | ||
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(DOCX_FILE_PATH, DOCX_FILE_PATH) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One of them should be config, I will fix it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shit, yes you are right, the first one I guess. |
||
``` | ||
|
||
### Update metadata for all existing .docx files in the current directory | ||
```python | ||
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 | ||
```console | ||
dmeta -v | ||
dmeta --version | ||
``` | ||
### Clear metadata for a .docx file | ||
```pycon | ||
>>> TODO | ||
```console | ||
dmeta --clear "./test_a.docx" | ||
``` | ||
### Clear metadata for all existing .docx files | ||
```pycon | ||
>>> TODO | ||
### Clear metadata for all existing .docx files in the current directory | ||
```console | ||
dmeta --clear-all | ||
``` | ||
### Update metadata for a .docx file | ||
```pycon | ||
>>> TODO | ||
```console | ||
dmeta --update "./test_a.docx" --config "./config.json" | ||
``` | ||
### Update metadata for all existing .docx files | ||
```pycon | ||
>>> TODO | ||
### Update metadata for all existing .docx files in the current directory | ||
```console | ||
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 [[email protected]](mailto:[email protected] "[email protected]"). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change it to
handler
, is that OK?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.