semvec/pypi-packages huggingface dataset:
spfwhitelister 0.0.1
Library/utility to maintain a list of while listed domains.
License: MIT
Keywords: greylist,MTA

# spfwhitelister

spfwhitelister is very simple Python library/utility.

Given a list of domains, it will query SPF records
for those domains and retrieve the list of IP addresses
authorized to send email for those domains.  It can then
manage that list in a file.

This can be used when using greylistd. One could schedule
(crontab) this utility to run once or twice a day and manage
the list of whitelisted hosts.

I am using Exim on Debian. Exim4 is very powerfull but it can be
a real pain to configure, especially on Debian with the solit config.
I think this is easier. With greylistd any address missed because of
the delay would simply be greylisted.

This was tested on Debian with Exim4.

# Installation

We are on PyPi so

     pip3 install spfwhitelister


You can then run:

     spfwhitelister -o -d google.com amazon.com
foliantcontrib.multilinetables 1.2.3
Markdown tables convertor to a multiline and grid format.
License: MIT

# Multiline and grid tables for Foliant

This preprocessor converts tables to multiline and grid format before creating document (very useful especially for pandoc processing). It helps to make tables in doc and pdf formats more proportional — column with more text in it will be more wide. Also it helps whith processing of extremely wide tables with pandoc. Convertation to the grid format allows arbitrary cell' content (multiple paragraphs, code blocks, lists, etc.).


## Installation

```shell
$ pip install foliantcontrib.multilinetables
```


## Config

To enable the preprocessor with default options, add `multilinetables` to `preprocessors` section in the project config:

```yaml
preprocessors:
  - multilinetables
```

The preprocessor has a number of options (best values set by default):

```yaml
preprocessors:
    - multilinetables:
        rewrite_src_files: false
        min_table_width: 100
        keep_narrow_tables: true
        table_columns_to_scale: 3
        enable_hyphenation: false
        hyph_combination: '<br>'
        convert_to_grid: false
        targets:
            - docx
            - pdf
```

`rewrite_src_file`
:   You can update source files after each use of preprocessor. Be careful, previous data will be deleted.

`min_table_width`
:   Wide markdown tables will be shrinked to this width in symbols. This parameter affects scaling - change it if table columns are merging.

`keep_narrow_tables`
:   If `true` narrow tables will not be stretched to minimum table width.

`table_columns_to_scale`
:   Minimum amount of columns to process the table.

`enable_hyphenation`
:   Switch breaking text in table cells with the tag set in `hyph_combination`. Good for lists, paragraphs, etc.

`hyph_combination`
:   Custom tag to break a text in multiline tables.

`convert_to_grid`
:   If `true` tables will be converted to the grid format, that allows arbitrary cell' content (multiple paragraphs, code blocks, lists, etc.).

`targets`
:   Allowed targets for the preprocessor. If not specified (by default), the preprocessor applies to all targets.


## Usage

Just add preprocessor to the project config and enjoy the result.