Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
f1ceed13
Commit
f1ceed13
authored
Oct 03, 2018
by
jvoisin
Browse files
Bump the changelog
parent
5a5c642a
Pipeline
#19318
passed with stages
in 4 minutes and 48 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
f1ceed13
# 0.4.0 - 2018-10-03
-
There is now a policy, for advanced users, to deal with unknown embedded fileformats
-
Improve the documentation
-
Various minor refactoring
-
Improve how corrupted PNG are handled
-
Dangerous/advanced cli's options no longer have short versions
-
Significant improvements to office files anonymisation
-
Archive members are sorted lexicographically
-
XML attributes are sorted lexicographically too
-
RSID are now stripped
-
Dangling references in [Content_types].xml are now removed
-
Significant improvements to office files support
-
Anonimysed office files can now be opened by MS Office without warnings
-
The CLI isn't threaded anymore, for it was causing issues
-
Various misc typo fix
# 0.3.1 - 2018-09-01
-
Document how to install MAT2 for various distributions
...
...
README.md
View file @
f1ceed13
...
...
@@ -44,20 +44,27 @@ $ python3 -m unittest discover -v
# How to use MAT2
```
bash
usage: mat2
[
-h
]
[
-v
]
[
-l
]
[
-s
|
-L
]
[
files
[
files ...]]
usage: mat2
[
-h
]
[
-v
]
[
-l
]
[
--check-dependencies
]
[
-V
]
[
--unknown-members
policy]
[
-s
|
-L
]
[
files
[
files ...]]
Metadata anonymisation toolkit 2
positional arguments:
files
files
the files to process
optional arguments:
-h
,
--help
show this
help
message and
exit
-v
,
--version
show program
's version number and exit
-l, --list list all supported fileformats
-s, --show list all the harmful metadata of a file without removing
them
-L, --lightweight remove SOME metadata
-h
,
--help
show this
help
message and
exit
-v
,
--version
show program
's version number and exit
-l, --list list all supported fileformats
--check-dependencies check if MAT2 has all the dependencies it needs
-V, --verbose show more verbose status information
--unknown-members policy
how to handle unknown members of archive-style files
(policy should be one of: abort, omit, keep)
-s, --show list harmful metadata detectable by MAT2 without
removing them
-L, --lightweight remove SOME metadata
```
Note that MAT2
**will not**
clean files in-place, but will produce, for
...
...
doc/mat2.1
View file @
f1ceed13
.TH MAT2 "1" "
Septem
ber 2018" "MAT2 0.
3.1
" "User Commands"
.TH MAT2 "1" "
Octo
ber 2018" "MAT2 0.
4.0
" "User Commands"
.SH NAME
mat2 \- the metadata anonymisation toolkit 2
.SH SYNOPSIS
mat2 [\-h] [\-v] [\-l] [\-
c
] [
\
-s |
\
-L]
\fR [files [
files ...]]
\fB
mat2
\fR
[\-h] [\-v] [\-l] [\-
V
] [-s | -L]
[\fIfiles\fR [\fI
files ...
\fR
]]
.SH DESCRIPTION
.B mat2
...
...
@@ -31,9 +31,15 @@ show program's version number and exit
\fB\-l\fR, \fB\-\-list\fR
list all supported fileformats
.TP
fB\-c\fR,
\fB\-\-check\-dependencies\fR
\fB\-\-check\-dependencies\fR
check if MAT2 has all the dependencies it needs
.TP
\fB\-V\fR, \fB\-\-verbose\fR
show more verbose status information
.TP
\fB\-\-unknown-members\fR \fIpolicy\fR
how to handle unknown members of archive-style files (policy should be one of: abort, omit, keep)
.TP
\fB\-s\fR, \fB\-\-show\fR
list harmful metadata detectable by MAT2 without
removing them
...
...
mat2
View file @
f1ceed13
...
...
@@ -14,7 +14,7 @@ except ValueError as e:
print
(
e
)
sys
.
exit
(
1
)
__version__
=
'0.
3.1
'
__version__
=
'0.
4.0
'
def
__check_file
(
filename
:
str
,
mode
:
int
=
os
.
R_OK
)
->
bool
:
if
not
os
.
path
.
exists
(
filename
):
...
...
setup.py
View file @
f1ceed13
...
...
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools
.
setup
(
name
=
"mat2"
,
version
=
'0.
3.1
'
,
version
=
'0.
4.0
'
,
author
=
"Julien (jvoisin) Voisin"
,
author_email
=
"julien.voisin+mat2@dustri.org"
,
description
=
"A handy tool to trash your metadata"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment