A docums plugin that lets you exclude files or trees.
Project description
File exclude plugin for docums
docums-exclude
is a
docums plugin that allows you
to exclude files from your input using unix-style wildcards (globs) or
regular expressions (regexes).
Quick start
-
Install the module using pip:
pip3 install docums-exclude
-
In your project, add a plugin configuration to
docums.yml
:plugins: - exclude: glob: - exclude/this/path/* - "*.tmp" - "*.pdf" - "*.gz" regex: - '.*\.(tmp|bin|tar)$'
You can provide zero or more patterns of each type. (If you don't provide any patterns, then nothing will happen!)
Note! Because of peculiarity of yaml syntax, the glob:
and regex:
lines
must not start with a dash, but the lines under them must start with
a dash.
Also because of yaml, patterns that start with a punctuation mark must be quoted.
When writing regexes, it's best to use single quotes rather than double quotes, so that your regex backslash escapes are preserved correctly without having to be doubled up.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file docums-exclude-1.0.2.tar.gz
.
File metadata
- Download URL: docums-exclude-1.0.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13eb5584dac2891e4b22927d2a34575acd4ccbc37e2adf58694309268933ea3b |
|
MD5 | 39fdbaadaa80218e1c7fe55574493200 |
|
BLAKE2b-256 | c3db237bad4a0bd4c325b7ac4c61c5fd27cbb0aeb4fe312c366ff8dfb05a65a2 |